IEP-1212 Headers unresolved after build Custom Build Folder - #961
Conversation
WalkthroughThe changes across the project involve updating package names from Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (6)
- bundles/com.espressif.idf.core/src/com/espressif/idf/core/ILSPConstants.java (1 hunks)
- bundles/com.espressif.idf.core/src/com/espressif/idf/core/build/IDFBuildConfiguration.java (6 hunks)
- bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/ClangdConfigFileHandler.java (4 hunks)
- bundles/com.espressif.idf.lsp/src/com/espressif/idf/lsp/preferences/IDFClangdOptionsDefaults.java (1 hunks)
- bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/handlers/ClangdConfigCreateHandler.java (1 hunks)
- bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/wizard/NewIDFProjectWizard.java (1 hunks)
Files skipped from review due to trivial changes (3)
- bundles/com.espressif.idf.core/src/com/espressif/idf/core/ILSPConstants.java
- bundles/com.espressif.idf.lsp/src/com/espressif/idf/lsp/preferences/IDFClangdOptionsDefaults.java
- bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/handlers/ClangdConfigCreateHandler.java
Additional comments not posted (7)
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/ClangdConfigFileHandler.java (3)
5-5: Package and import statements updated to reflect new organizational structure.Also applies to: 22-22, 25-27
48-55: Updatedupdatemethod to handle dynamic build folder paths correctly.
78-81: MethodupdateCompileFlagsSectioncorrectly updated to handle dynamic build folder names.bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/wizard/NewIDFProjectWizard.java (1)
42-42: Updated import statement forClangdConfigFileHandlerto reflect new package structure.bundles/com.espressif.idf.core/src/com/espressif/idf/core/build/IDFBuildConfiguration.java (3)
38-38: Import statements forGCCToolChainandClangdConfigFileHandleradded to support new functionalities.Also applies to: 88-88
327-327:buildmethod correctly updated to include.clangdfile handling post-build.
429-447:writeConsoleNotesmethod enhanced to include detailed clangd troubleshooting steps.
|
@sigmaaa hi ! Tested under: Create project -> build with Custom Build folder -> all headers are resolved -> ✔️ LGTM 👍 |
Description
Fixed unresolved headers after build with custom build folder by editing clang file after the build. Also improved clangd Troubleshooting messages after the build
Fixes # (IEP-1212)
Type of change
Please delete options that are not relevant.
How has this been tested?
build project, check .clangd file -> CompilationDatabase should point to the build folder
add custom build folder -> rebuild the project -> CompilationDatabase points to the custom build folder
check after clangd Troubleshooting messages. Path to GCC exe and build folder should be actual
Test Configuration:
Dependent components impacted by this PR:
Checklist
Summary by CodeRabbit
Refactor
com.espressif.idf.lsptocom.espressif.idf.corefor better organization and consistency.buildmethod to include a new handler for updating project configurations.New Features
CompileFlagssection with the project's build folder name, ensuring more accurate configurations.Chores