Vscode-arduino: Suddenly can't find arduino IDE

Created on 18 Mar 2019  ·  16Comments  ·  Source: microsoft/vscode-arduino

Since yesterday, when i wanna upload the code to board or do others things, it will show
Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings.
Image

But i have already setting and worked well previously.
I checked everything settings, it's nothing wrong and i didn't change anything...
like user setting 、 worksapce setting、Folder setting 、Extentsions setting...
every "arduino.path": "D:\Arduino\arduino.exe" had set

Image
Image
// 2019/3/25
i had tried ::

"D:\\Arduino\\"
"D:\\Arduino"
"D:\\Arduino\\arduino.exe"

maybe u will say the arduino path is not in "C:\"
but it did works well previously
is it could be a bug?

Most helpful comment

Great! Then I will close this issue. Please feel free to open a new one if you have any other question.

All 16 comments

Hi @Proladon have you tried "arduino.path": "D:\Arduino"?

Hi @Proladon have you tried "arduino.path": "D:\Arduino"?

Yeah....didn't works too...

Is there a file named arduino_debug.exe in D:\Arduino folder?

Is there a file named arduino_debug.exe in D:\Arduino folder?

yeah, you can see in the image_2. under the arduino.exe

Download the zip file attached, unzip it. Open VS Code, then extension tab, click the three dots on top right corner, select Install from VSIX to install the extension, then run Arduino Path Dump command. What result can you get?

Snipaste_2019-03-25_15-53-28

vscode-arduino-path-missing-validator-0.0.1.vsix.zip

Download the zip file attached, unzip it. Open VS Code, then extension tab, click the three dots on top right corner, select Install from VSIX to install the extension, then run Arduino Path Dump command. What result can you get?

Image
Image
Image

and then it open the Arduino IDE
Image

Press F1 to open command palette, then execute Arduino Path Dump.

Snipaste_2019-03-25_21-22-25

oh..sorry i thought is terminal command lol

i got this:

Path from config: D:\Arduino\arduino.exe
  Directory exists: false
  Arduino CLI exists: false

Path from Reg: D:\Arduino
  Directory exists: true
  Arduino CLI exists: true

Path from where command: D:\Arduino\arduino.exe
  Directory exists: false
  Arduino CLI exists: false

Final path: D:\Arduino\arduino.exe
  Directroy exists: false
  Arduino CLI exists: false

Oops, Arduino extension cannot find Arduino CLI :\

so i need to use D:\Arduino ?
but i had already tired this hm...

You can just remove arduino.path from your settings, the extension can automatically find it from the registry.

You can just remove arduino.path from your settings, the extension can automatically find it from the registry.

OMG.....it works....really dumb (°ཀ°)
it confused me for two weeks....

Anyway, Thanks you very much dude !!! Your r really a nice person ~

Great! Then I will close this issue. Please feel free to open a new one if you have any other question.

Hello! I am having the same issue. I have followed the steps in this thread but it is still not working. Here are my results from the Arduino Path Dump

image

Got the same error as @bec3x
image

Got the same error as @bec3x
image

you have to use the folder contained arduino.exe

image
i have this error

Just want to precise to some users that if you download the Arduino IDE for Windows 10, you will probably end up with a Java version downloaded from the Microsoft Store, which doesn't provide any "arduino.exe". You got to download the version for Windows 7 of the IDE. I don't know if there's some way to use the Java version with this extension, i've not searched for that yet.

If you are unsure of which version you've got, install Sysinternals Process Explorer, open the IDE and use the target icon to select the IDE application. It will show you the actual process which is javaw.exe, which is located under some folder looking like this:
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\java\bin

If you see this, that's because you've got the wrong version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndreyKrupskii picture AndreyKrupskii  ·  6Comments

Hans007a picture Hans007a  ·  4Comments

justin-romano picture justin-romano  ·  3Comments

ghent360 picture ghent360  ·  3Comments

vishnumaiea picture vishnumaiea  ·  6Comments