VScode Arduino - Verify Code Errors - HELP

I'm trying to switch to VScode for a more robust project but having a heck of a time getting it working.
I've spent over a day looking at video tutorials and reading online stuff... but still no joy.
Thanks for any help as I really need to get this going.

  • I have the Arduino IDE installed...
  • I have VScode installed.
  • I have the the Microsoft Arduino extension installed on VScode.
  • I have the - C/C++ extension installed on VScode.
  • I have the Arduino Uno connected to the PC.
  • VScode Programmer = ArduinoISP
  • Board Config = Arduino Uno
  • Setup to Com3
  • C/C++ Config = Win32

Issue 1 - IntelliSense is not setup because I don't know how to do it or if it is even necessary

Issue 2 Verify message is as follows...
Here is the Output after attempting to Verify the code...

[Starting] Analyzing sketch 'vsc_howdy.ino'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
Error opening sketch: no valid sketch found in C:\Users\vEdit\Documents\Arduino\vsc_Howdy: missing C:\Users\vEdit\Documents\Arduino\vsc_Howdy\vsc_Howdy.ino
[Warning] Failed to generate IntelliSense configuration.
[Error] Analyzing sketch 'vsc_howdy.ino': Exit with code=1

Here is my simple coded:

void setup() {
Serial.begin(9600);
Serial.println("Howdy Folks");
}
void loop() {
}

Here is the json file:

"board": "arduino:avr:uno",
    "sketch": "vsc_howdy.ino",
    "port": "COM3",
    "programmer": "arduinoisp"

Here is the screen shot:

I use Visual Studio Code but with the platformio extension. From what I hear around the forum
The platformio extension works better than the Microsoft arduino extension. I don't have first
hand knowledge of the MS one.

PlatformIO doesn't support the Arduino Giga R1 WiFi board.
The Windows Arduino Extension uses the pre-installed Arduino IDE and therefore can work with the Arduino Giga R1 WiFi board.
That said for setting up VScode I'm using the Arduino Uno board to try and just get VScode to work.
I would really appreciate any help with this from anyone who can read my original post and walk me through getting this setup.
Thanks.

I finally got this to work by beating on it all day.
As I tried so many things I'm not sure exactly what I did.
I actually deleted everything and started over from scratch.
I also created an output folder and put the complete path to it in the json file & saved it.
I'm not sure what I did to get intelliSense to work but it is working now.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.