-
Notifications
You must be signed in to change notification settings - Fork 0
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
syntax highlighting does not have zephyr/.config #39
Comments
Any help? The user experience with NXP is highly impacted by this issue, and I work with other vendors who do have this issue. |
Hi, I tried your scenario and for me it seems to be working, please check below what I did and let me know if there are any diffs comparing with what you've tried:
Considering this, and the flow for IntelliSense is working as long as your source files indicates the right value for macros (which is true after saving the edited prj.conf file and the regeneration of Zephyr files is ended) I consider the highlight is correctly working. Please let me know details about your case. Regards, |
I have code in the zephyr library that is not highlighting, when debugging the code even gets executed. Perhaps only files in the app folder are getting the .config settings? The file is a custom driver for flexspi that i'm working on, but it also occurs with the lpspi driver. Is it possible I have multiple extensions provided intellisense? How do I know where intellisense gets its info? |
I think I found the problem. In C/C++ Configurations under Advanced Settings, Confguration Provider, I had a value from nordic's nrf connect extension. However I have disabled that extension while working on my nxp project. After switching to ms-vscode.cmake-tools I started getting correct values. |
Glad you found the solution! Indeed, the NXP extension relies on cmake-tools as the Intellisense configuration provider so that is the recommended option. |
I have a zephyr project imported with MCUXpresso for VSCode extension.
When I open source files from the project the intellisense highlighting shows incorrect values for preprocessor condition.
The tooltips when hovering over a preprocessor macro show the information from Kconfig but it shows the default value instead of the one set in the prj.conf.
Why isn't it using the values from the generated build/zephyr/.config? How do I fix it?
The text was updated successfully, but these errors were encountered: