-
Notifications
You must be signed in to change notification settings - Fork 236
Problem in includePath with custom libraries, Verify/Upload doesn't work. #1033
Comments
Please refer to Writing a Library for Arduino to write custom library. "c_cpp_properties.json" will not impact the VERIFY result, it is only for language check. |
It's not a problem with the library, but maybe a compiler OR path problem. I am not stuck, because atm I am using VSCode to code, but to upload I need to open Arduino IDE every time, so it is kinda annoying. |
Please remove |
After doing that, I get the following errors (error message translated)... also, the src/arduino_bluenrg_ble.h is located at "C:\Users\Tacca\Documents\Arduino\libraries\STBLE\src\STBlueNRG\**" After digging a little more, I found that these errors pops up after open a file and at the first code line, always.
Then again, I went to find "sam.h", found it at 2 paths: Tried to import then both and each one separately, new errors popped up.
and a lot of "not defined" errors, at my workspaceRoot.
I still can't figure it out since it works fine on Arduino IDE. not just that, the "ctrl+click" works fine, it finds and goes to the references... I will try a cold reinstall when I get a stable version of my little project. |
Hello,
I decided to open an issue after some days trying it out, unfortunately, I am still stuck with this.
The basic examples available by Arduino IDE works fine, Blink for example, does upload/verify without a problem.
But, with custom libraries, it doesn't work. Although it works uploading it via Arduino IDE.
For my case, it's STBLE library, and UARTPassThrough example.
At start, it was showing intellisense errors about includePath, etc. After some tweaks the browsePath worked fine (ctrl+click goes to the files), no errors shown by intelliSense, but when I click VERIFY, like if the classes/methods/definitions from the libraries are not loaded.
I get errors like:
Even tho, they are found just fine by the browse.path (ctrl+click)
The STBLE library is at the user documents, like:
Even adding the custom library to includePath doesn't work.
Thank you all in advance.
My specs:
settings.json:
arduino.json:
c_cpp_properties.json:
The text was updated successfully, but these errors were encountered: