-
Notifications
You must be signed in to change notification settings - Fork 236
Plugging an an arduino with VSCode open to a non-arduino project causes c++ and arduino files to be added to that project #1016
Comments
Is this because you used the command |
no, the project in question is not an arduino project at all. |
I have the same issue. It occurs when I plugin an esp32 dev kit and /dev/cu.SLAB_USBtoUART is created. It does not occur when I plug in an Arduino Uno or Nano (which create /dev/cu.usbserial-xxxxxxxx). What's interesting, when this issue occurs and my non-Arduino project is "hijacked" by the VS Arduino extension, the esp32 is being mis-identified as an esp8266, and the esp8266 README.md opens in a new tab. @wilsonmfg what hardware are you connecting? Mac OS: 10.13.6 |
an adafruit Huzzah ESP8266. |
Mis-identified esp32 is due to a hard code usb mapping, It may need to manually switching board after plugged device in. But for the wrongly added arduino files, they really should be only added to project with ".ino" file. |
I've found that I can workaround the issue and avoid the hijack by adding to global settings.json: |
Arduino Extension v0.3.1 is released with the fix to not add arduino files for non-Arduino project. |
the files are:
.vscode/arduino.json
.vscode/c_cpp_properties.json
these really do not belong in a nodejs or python project. the extension should check for an .ino file before adding them.
The text was updated successfully, but these errors were encountered: