Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • 05:23
    sofroniewn commented #690
  • Jun 18 02:31
    travipross commented #727
  • Jun 17 05:40
    JRAlvarez2017 opened #1292
  • Jun 17 05:25
    Iiqbal2000 commented #950
  • Jun 16 14:15
    dasfdlinux commented #1215
  • Jun 16 02:40
    chr233 closed #1237
  • Jun 15 21:01
    Noah-Schoonover commented #298
  • Jun 15 21:00
    Noah-Schoonover commented #298
  • Jun 15 20:59
    Noah-Schoonover commented #298
  • Jun 15 20:59
    Noah-Schoonover commented #298
  • Jun 15 20:57
    Noah-Schoonover commented #298
  • Jun 15 20:50
    Noah-Schoonover commented #298
  • Jun 15 20:22
    Noah-Schoonover commented #298
  • Jun 15 15:49
    wbadry opened #1291
  • Jun 15 15:40
    dependabot[bot] labeled #1290
  • Jun 15 15:40
    dependabot[bot] opened #1290
  • Jun 15 15:40

    dependabot[bot] on npm_and_yarn

    Bump postcss from 7.0.27 to 7.0… (compare)

  • Jun 15 15:40
    Llaves edited #1289
  • Jun 15 15:31
    Llaves opened #1289
  • Jun 15 10:06
    vidalv commented #1288
Darren Evans

I ran into all the same problems as everyone else running serial port monitor with this extension, so I made one using powershell that you can run in the terminal session: https://github.com/stevemcilwain/SerialPortMon

Same pain-point here. Very frustrating for a newcomer trying to follow the DevKit Getting Started tutorial on Microsoft Docs site with my MXChip. Uploading was fine once I manually entered "port": "COM7" into Arduino.json but trying to use the serial monitor feature threw error. In the end, to check telemetry was being sent I fired up Azure Cloud Shell in Windows Terminal and used the az iot hub monitor-events command. I eventually settled on using VS Code's integrated terminal with that azure CLI command so I could see telemtery firing up within VS Code. Also wondering if just using something like PuTTY tool would have worked. At least I managed to get past that issue and continue on through the Getting Started tutorial.

Jason Tranchida
Hi all. I've been able to locally rebuild this extension with the fixes to get serial support working again, at least on windows. I'd be happy to publish vsix packages on my github if it would be useful for others.
Looking through the commit history for the repo, it seems like there nobody is actively maintaining this project or accepting pull requests. I'm considering forking the extension and publishing updated pacakges on the marketplace as a new extension, at least until the core team for this extension can dedicate the time needed.
Jason Tranchida
Here's a build of the extension recompiled with the proper serial library versions. https://github.com/maddogjt/vscode-arduino/releases/download/v0.3.2%2Bserialfix/vscode-arduino-0.3.2+serialfix.vsix
Jonathan Lindsey
I'm new to the extension and using VS Code with Arduino. When I open the Arduino Blink example, more settings are set in the .vscode\arduino.json and .vscode\c_cpp_properties.json files than when I create a .ino file in a folder and then use the Arduino: Initialize command.
I noticed this because I had always had a red squiggle under the first line of my code and it had this error.
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (D:\Users\Jonathan\Desktop\Programming\Arduino and LabVIEW\PWM\ManualPWM.ino).C/C++(1696)
cannot open source file "avr/pgmspace.h" (dependency of "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h")C/C++(1696)
Is there a reason for more settings being set in one case over the other (particularly with the includePath)?
Jonathan Lindsey
Well I'm still having difficulty getting all the IntelliSense and red squiggles to work correctly. I'm not really sure where to look for documentation.
Pull Requests? Does anyone look at / approve PRs for this project?
Mitch Davis
Hello. I'm new to vscode-arduino. There's a library I'd like to add for my Arduino project, but the library doesn't appear in the Arduino Library Manager. How can I install that library?
Hello Im trying to use the arduino extension for vscode and i can select a serial port but when i try to change the board type it says no supported board available?, I have an arduino uno
any idea why it says that?
could it be because i dont have an official arduino uno?, this is an elego uno r3 and im able to use it with the arduino IDE so i dont think thats the issue
Cooper Baker
Hello. When building projects, is it possible to have colorized output from gcc for build errors, like it is on the command line? I can't figure out how to do this or if it's even possible with vscode-arduino... Please help.
Heinrich zur Horst-Meyer
did the latest vs code patch break it or is just something wrong with mine?
Heinrich zur Horst-Meyer
(opening the Serial port throws an Error)
Charles Griffin
Same here: Trying to open COM3: Failed to open serial port COM3 due to error: + Error: \?\c:\Users\charl.vscode\extensions\vsciot-vscode.vscode-arduino-0.3.4\out\node_modules\usb-detection\build\Release\detection.node is not a valid Win32 application. \?\c:\Users\charl.vscode\extensions\vsciot-vscode.vscode-arduino-0.3.4\out\node_modules\usb-detection\build\Release\detection.node
Jason Tranchida
@cdgriffin the January 2021 vscode release bumped up to a new version of Electron and nodejs. The vscode-arduino extension likely needs to have its native components rebuilt against this new release
Charles Griffin
@maddogjt Thank you for your comment. It appears that this Issue is being tracked, "Can't select Arduino serial port (again) #1198" Since I have vscode 1.53.0, it sounds like I need to upgrade Arduino extension version 0.3.4 to 0.3.5.
Quint van Dijk
Hi guys, I probably have a very stupid question. But really can't find a fitting solution. The c/c++ extions code checker doesn't "know" the default arduino functions and definitions. I'm getting identifier A0 is undefined, but also for "byte" , "pinMode", " OUTPUT" , "map" "Serial.write" etc.. What do I need to change to make this work?
This is my c_cpp_properties.json"
    "configurations": [
            "name": "Win32",
            "includePath": [
                "C:\\Program Files (x86)\\Arduino\\libraries\\**",
            "defines": [
            "windowsSdkVersion": "10.0.17763.0",
            "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "windows-msvc-x64",
            "forcedInclude": []
    "version": 4
The code compiles and uploads successfully
Charles Griffin
Potentially a dumb answer:
"forcedInclude": [
"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Arduino.h"Did you install the Arduino extension/
Hello. I want to use VSCode to build to edit TI Energia files(similar to Arduino, but the path of packages is "%LocalAppData%\Energia15"(1), nor "%LocalAppData%\Arduino15"(2).) I changed the "arduino.path" to the path of energia(3) and renamed energia.exe and energia_debug.exe, but VSCode can only search for the boards in (2)&(3), nor expected (1)&(3). What should I do? Energia's website is energia.nu.
Charles Griffin
Re x7890 post: I guess that you are somehow trying to use the Arduino extension. Not that I have ever used Platform IO or know how, but I would investigate using the Platform IO extension and website: docs.platformio.org/en/feature-platformio-30/index.html for information.
I don't know if anybody is interested or if I'm just slow, but I found a relatively easy workaround for the arduino-cli option not working in linux
For some reason when the arduino-cli option is chosen, the extension is still trying to use the "arduino" executable name, but with the arduino-cli syntax.
The best thing to do is point arduino-path to the arduino ide directory. Putting arduino-cli in ~bin or whatever then symlink it to inside the arduino ide root directory.
Then set arduino.commandPath to arduino-ide to force the correct executable name.
"arduino-cli" rather. Not arduino-ide
The reason for putting the symlink in the arduino ide directory is VS Code can't seem to find the builtin examples, and intellisense can't find what it needs to very well either.
That's about it.
I renamed all the executable files of Energia according to the file name under Arduino root installation path. But the directory identified in its code cannot be renamed. I guess that the vscode Arduino extension is hard coded, because when I copy the files from %LocalAppData%\Energia to %LocalAppData%\Arduino15, the extension can recognize the corresponding board. It's just that it still doesn't compile. After all, Energia is a dialect version.
How can I include a zip library?
david reid
after working well for a while now have run into this today
Failed to open serial port COM6 due to error: + Error: The module '\?\c:\Users\mail.vscode\extensions\vsciot-vscode.vscode-arduino-0.4.2\out\node_modules\usb-detection\build\Release\detection.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 87. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
any suggestions how to fix? really annoying. tried npm rebuild in the directory but it fails with the usual obtuse style of npm error
Hoolio Wobbits
I have the same error as abovei have done several compiles today no worries, rebooted and now i get this error. I'm on linux, so the com port i have is /dev/ttyUSB0
if i try any npm commands it tells me npm isnt installed
Luke Hutchison
Hi, I want to use vscode-arduino to debug code on a Teensy board. How much work would it take to extend the debugging support to another board like this?
Victor Aprea
anybody know how to get Arduino: Verify to display the compiled size info
Workspace doesn't seem to have a folder added to it yet.
what happen?
/snap/arduino/56/arduino: line 35: java: command not found
[Error] Exit with code=12
Can someone help with this error?
I am using Ubuntu + VS Code + Arduino
Hello everyone, I'm facing a problem with an automatic completion problem, when I start a new ARDUINO project (.ino file) the auto-completion only works with the C ++, with the Arduino syntax, by exemple, pinmode, serial etc .... Nothing work !in the directory .Vscode it nor has no c_cpp_properties file.json and if I add it manually it does not work either. I am under Win10-X64 with VS-Code 1.57.0 and IDE 1.8.15. Ideas ? Thank you.