-
-
Notifications
You must be signed in to change notification settings - Fork 17
Support additional libraries #2
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
As you can see here: The CLI includes the following library paths during the compile process
Let me check the code to see if those informations are provided explicitly somewere or they need to be exposed in some way BTW naive question, those libraries are not included in the Example sketch, did you install them before using clang? |
I loaded the example provided by the old Arduino IDE. The Keyboard and Mouse libraries are shown as installed there. Currently I'm using the |
I get the following error when I try to preprocess the KeyboardAndMouseControl example:
|
I understood that the Uno board does not work with the KeyboardAndMouseControl example. Now I used When I click on Verify in the IDE, I see the following in the Output view:
So the CLI seems to resolve the additional libraries when compiling, but not when I just do How can I use the CLI to give me the required include paths? In this case I need to know where to find
|
My preferred solution would be to have a So when calling
I would get
|
Related: bcmi-labs/arduino-editor#63 |
The current approach of including all libraries found in the sketch container seems to work quite well. We can open another issue if there are more problems related to this. |
There are still sketches that are compiled without errors by the CLI, but the language server reports errors, e.g. due to unresolved symbols. I created arduino/arduino-cli#557 to develop and discuss the idea of an additional CLI flag that I described above. |
This has been fixed with a combination of:
|
When opening the "KeyboardAndMouseControl" example, clangd does not find the
Keyboard
andMouse
symbols.Do we need additional include paths? How can we get them from the sketch configuration?
The text was updated successfully, but these errors were encountered: