I am using nRF Connect for VS Code V2024.7.13 and the intellisense does not work.
I am using nRF Connect for VS Code V2024.7.13 and the intellisense does not work.
Yes it turns blue:
I have tried checking out project in a new directory and restarting VSCode and Windows OS multiple times.
I would like to understand how nRF Connect does the intellisense, is it parsing the compile_commands.json or doing something else?
The basic idea is that I can try all sorts of methods to resolve the problem, but as Harrington Emerson said "The man who grasps principles can successfully select his own methods. The man who tries methods, ignoring principles, is sure to have trouble."
Right now I feel like I am trying random methods and would prefer getting information needed to root cause the issue.
I want to learn the principles behind intellisense more than I want the issue fixed.
That is fair enough.
I will ask our VS Code team if they got an explanation for intellisense and our extension.
Here is what they say:
"Yes, the extension generally uses compile_commands.json. If that's not available it uses reasonable fallbacks. As mentioned above, the C/C++ extension has a command: Log Diagnostics, which dumps the provided configuration of the active file, so the user can check whether something is not as expected."
Is this helpful?
I could not find a "Log Diagnostics" in the C/C++ extension, nor mentions of it above.