-
-
Notifications
You must be signed in to change notification settings - Fork 431
Official STM32 showing many undeclared identifiers for blink sketch but compiles ok #220
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
Comments
@toogooda The LS is still in an early stage of refinement, and it's being actively worked on. For now I'm assigning this a lower priority |
No problem, happy to do what testing needs doing for STM32. |
i'd like to provide a little more info on this topic, i turned on (File > preferences) language server logging
includes.cache
^^^ the path of the core is correctly inferred, but that there is sub-directories with more include and c files preproc/ folder empty |
couldn't really figure out how |
@ag88 |
one more observation as i'm trying to figure out the root cause
pretty much an empty file apparently clangd does some form of 'background indexing' any hints on how to go about with this? e.g. should i replace that in part of the manal troubleshooting logs followed up in this thread |
the language server toolchain architecture apparently seem to be
hence compile_commands.json is actually generated by arduino-cli using the --only-compilation-database option i went into /tmp/arduino-language-server071191930 and tried
^^^ in running the above command i've removed the source override option and did the compilation in the /tmp/arduino-language-server071191930 directory however if I remove --only-compilation-database option the build completes, though with a success : false status
and it successfully generates a compile_commands.json
|
Additional info for this bug If change to board AVR nano shows this: Additional context Distribution
|
Describe the bug
LED_BUILTIN, HIGH, delay, OUTPUT all underlined in red and showing "Use of undeclared identifier". Strangely digitalWrite and pinMode are recognised OK.
If you ignore and compile it completes without exception.
To Reproduce
Steps to reproduce the behavior:
Screenshots

Desktop (please complete the following information):
Additional context
There are other issue with STM boards that I will log separately.
The text was updated successfully, but these errors were encountered: