-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
: Updatedupdate
method to handle dynamic build folder paths correctly.
78-81
: MethodupdateCompileFlagsSection
correctly 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 forClangdConfigFileHandler
to reflect new package structure.bundles/com.espressif.idf.core/src/com/espressif/idf/core/build/IDFBuildConfiguration.java (3)
38-38
: Import statements forGCCToolChain
andClangdConfigFileHandler
added to support new functionalities.Also applies to: 88-88
327-327
:build
method correctly updated to include.clangd
file handling post-build.
429-447
:writeConsoleNotes
method enhanced to include detailed clangd troubleshooting steps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self reviewed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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.lsp
tocom.espressif.idf.core
for better organization and consistency.build
method to include a new handler for updating project configurations.New Features
CompileFlags
section with the project's build folder name, ensuring more accurate configurations.Chores