VSCode Arduino can't find Arduino CLI?

4.9k views Asked by At

I'm using (trying) the VSCode Arduino extension with arduino-cli. When trying to compile a sketch, it throws this error:

Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings. Requires a restart after change.

this is the output from arduino-cli version:

arduino-cli.exe  Version: 0.21.1 Commit: 9fcbb392 Date: 2022-02-24T15:41:45Z

and these are all the arduino. settings in settings.json:

{
    "arduino.useArduinoCli": true,
    "arduino.path": " C:\\Users\\[name]\\scoop\\apps\\arduino-cli\\0.21.1",
    "arduino.defaultBaudRate": 9600,
    "arduino.logLevel": "verbose",
    "arduino.commandPath": "arduino-cli.exe"
}
1

There are 1 answers

0
Christian Grothe On

I was setting it up today and ran into the same issue. In your case try it with this path:

"arduino.path": " C:\\Users\\[name]\\scoop\\apps\\arduino-cli\\0.21.1\\bin",

I am on fedora and installed the cli with brew and this path is working for me:

/home/linuxbrew/.linuxbrew/Cellar/arduino-cli/0.26.0/bin

and I have the Command Path set to:

arduino-cli

hope this works!