-
Notifications
You must be signed in to change notification settings - Fork 233
Arduino: Examples command displays an empty tab #533
Comments
What is your operating system? Is it Ubuntu? |
Arch Linux. Here's the output of
|
The examples work when pointing When the Arduino IDE installed by Arch's package manager is used ( If you create an empty |
That workaround didn't work for me. I've created the folder by running Here's the output of total 128
-rwxr-xr-x 1 root root 946 Oct 2 2017 arduino
lrwxrwxrwx 1 root root 24 Oct 2 2017 arduino-builder -> /usr/bin/arduino-builder
drwxr-xr-x 13 root root 4096 Jan 22 16:09 examples
drwxr-xr-x 2 root root 4096 Jan 22 16:09 hardware
-rwxr-xr-x 1 root root 9713 Oct 2 2017 install.sh
drwxr-xr-x 3 root root 4096 Jan 22 16:09 lib
drwxr-xr-x 2 root root 4096 May 3 07:55 libraries
lrwxrwxrwx 1 root root 22 Oct 2 2017 reference -> /usr/share/doc/arduino
-rw-r--r-- 1 root root 83921 Oct 2 2017 revisions.txt
drwxr-xr-x 4 root root 4096 Jan 22 16:09 tools
drwxr-xr-x 2 root root 4096 Oct 2 2017 tools-builder
-rwxr-xr-x 1 root root 86 Oct 2 2017 uninstall.sh |
Hmm, your folder looks exactly like mine. Can you take a loot at the developer console (Help -> Toggle Developer Tools) to see what error you are getting when opening the Arduino examples tab? Here is what I get when the libraries directory does NOT exist: https://i.imgur.com/WE7oYnn.png |
Well, this is bizarre. It seems like it's looking for ~/Arduino/libraries for some reason: https://i.imgur.com/lGKHX8W.png I have explicitly configured vscode to use the /usr/share/arduino path with Any idea about what could be happening? I can confirm that creating |
Afaik the offical Arduino IDE creates that folder. |
That still doesn't explain why it's looking for the folder in that path when I've explicitly set it up otherwise on the vscode settings, though. It's still looking at the default path for some reason. Could you share your vscode config (at least the config regarding this plugin) to check if there's any difference? |
I haven't changed any settings of the plugin aside from the path. I guess the extension just looks in multiple locations for libraries, examples etc. but doesn't handle missing directories gracefully. |
this issue is fix on 0.2.16, please update the latest version and use it. Thanks a lot for your feedback |
Basically, whenever I try to use the Arduino: Examples command it displays an empty tab like this.
The arduino path in the settings is set up as
"arduino.path": "/usr/share/arduino"
, and the examples are in/usr/share/arduino/examples
. the Arduino IDE lists the examples correctly.VSCode version and information:
Arduino plugin version: 0.2.12
The text was updated successfully, but these errors were encountered: