-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
IntelliSense doesn't work without #include <Arduino.h> #55
Comments
@chovanj, which board did you select? At the moment, the language features do not start until you pick a board. |
Do you see any errors in the console if you start the app from |
No, there are no messages in the status bar. |
By the way, did you install the platform for the Uno board? |
Could you please share the log files with us to make this more obvious? Thanks! |
This seems to be a conceptual/design error in the clang integration. You may see that the IDE had not even tried to parse the libraries, regardless of whether the project is using an included system library (referring to Arduino.h) or a user library (referring to nmidi.h in my example) |
Simple partial Fix:
now clangd will parse the #includes, (even by magic the <arduino.h>) please note: of course the correct solution would be to create a project configuration file (.clandgd) in the current source tree and put the well known library path , system and user in there. |
Thanks for your reports @zeroamps and @mink99 . There have been some recent improvements to the Arduino Language Server that provides this capability in the IDE. These improvements are available from the latest release of the Arduino IDE. Please try again with the latest build of the Arduino IDE and let us know whether or not the bug is fixed for you. |
Tried, and did not work.... |
The bug is not about Arduino.h. it is about all external libraries that are not in the project directory, but are used in an include <blablabla.h> statement, or as described above, the compilation path is not provided to the language parser. |
It seems you even broke the simple fix with .clangd with the latest update :) |
IntelliSense doesn't work correctly.
After adding #include <Arduino.h> it starts working fine.
Screenshots
Desktop
The text was updated successfully, but these errors were encountered: