-
Notifications
You must be signed in to change notification settings - Fork 236
Support custom libraries with portable version of Arduino #946
Conversation
Please check to configure VS Code with Arduino settings for "arduino.path" as below, then the sample will get the correct custom Arduino libraries path. And the hard code one is default folder of downloaded libraries as well as the portable Arduino. |
Thanks for your feedback @hellyzh . Maybe I didn't explain clearly, the problem is when you are using a portable version of Arduino IDE (regardless whether you use a portable version of VScode or not). The purpose of installing Arduino as portable is to place it elsewhere than More generally, if you move the sketchbook from the user Documents folder, the custom libraries folder is not included... This patch points it to {arduino.sketchbook}\libraries which is always where Arduino would put it. |
Please @dooriya , can you consider this PR? |
Hi @hellyzh, I do not know what custom package tools location is. Custom board libraries are already correctly handled per selected board here. So I beleive the line could be removed. But, if you wish, I could replace |
I suggest to keep it which will not break any other usage. So please do the replace as you mentioned. |
Done! PR updated. |
Hi! |
The change looks good to me, approved :) |
BTW: All this path fiddling will become obsolete anyways with the automagical Progress can be followed here: #438 and especially here. Regards |
When running with a portable version of Adruino IDE, the custom libraries are put in:
--> arduino-1.8.10\portable\sketchbook\libraries
(and not in Documents\Arduino\libraries).
This PR replaces the hard coded ref to Documents\Arduino\libraries with a ref to _settings.sketchbookPath that works with the portable version and the installed one.