6

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"
}
4
  • 1
    Odd, I had the same issue (also installed via scoop), but forgot to tick the 'useArduinoCli' option in the extension settings. After that, it worked. One thing I can think of: did you do arduino-cli config init after installing the CLI? Maybe that makes a difference? Commented Mar 21, 2022 at 13:58
  • @mxt3 I have a config Commented Mar 21, 2022 at 16:07
  • 1
    Just FYI, I have "arduino.path": "C:\\Users\\[name]\\scoop\\apps\\arduino-cli\\current","arduino.useArduinoCli": true and no commandPath. That's all. No idea if that matters. Commented Mar 21, 2022 at 16:29
  • @mxt3 I removed arduino.commadPath, and now it works. Thanks! Commented Mar 21, 2022 at 20:05

1 Answer 1

4

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!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.