Vscode-arduino: i verify and revived this error :Exit with code=undefined

Created on 4 Jun 2018  Â·  15Comments  Â·  Source: microsoft/vscode-arduino

screenshot 25
help help
don't know what to do ????

code ready enhancement

Most helpful comment

screenshot 25
help help

> don't know what to do ????

I had the same issue using windows 10 and resolved it as follows:

1) In Visual Studio Code, click File > Preference > Settings.

2) Type “Arduino” in the search textbox; the Arduino settings page should display.

3) In the field entitled [Arduino: Command Path] simply type in "_arduino_debug.exe_", nothing more.

I found that if I typed in the full path, VSCode would prefix the base file path again, automatically, ending up with an incorrect path like this;

C:\Program Files (x86)\ArduinoC:\Program Files (x86)\Arduinoarduino_debug.exe

Simply using "_arduino_debug.exe_", resolved the problem for me.

arduino_bat_error

All 15 comments

Did you install Arduino IDE? If yes, did you install it from Windows App Store?

yes i installed arduino IDE .no i installed from arduino;s web site

This error usually appears when the extension cannot find Arduino IDE. The extension looks for Arduino IDE in two places:

  1. arduino.path in user settings of VSCode
  2. default path of Arduino IDE. For Windows, the default path is C:\Program Files (x86)\Arduino.

So please check if you have set an incorrect Arduino path in VSCode user settings (open VSCode, File - Preferences - Settings). If you didn't set arduino.path in VSCode user settings, check if Arduino IDE is installed in C:\Program Files (x86)\Arduino.

i checked every thing you said but the issue didnot solve
screenshot 26
screenshot 27

I get this issue as well, but on mac. I may be configuring it wrong.

I've managed to get it working on Mac with:

{
    "arduino.path": "/Applications/Arduino.app",
    "arduino.commandPath": "Contents/MacOS/Arduino",
}

Hi, this setting works for me (Mac), where the _C_Cpp.intelliSenseEngine_ was the main reason of my issue.

{
"arduino.path": "/Applications",
"arduino.commandPath": "Contents/MacOS/Arduino",
"arduino.additionalUrls": "",
"arduino.logLevel": "info",
"C_Cpp.intelliSenseEngine": "Tag Parser"
}

I don't understand.

On 2018-06-25 04:51 , motycakjannotifications@github.com Wrote:

Hi, this setting works for me, where the C_Cpp.intelliSenseEngine was the main reason of my issue.

{ "arduino.path": "/Applications", "arduino.commandPath": "Contents/MacOS/Arduino", "arduino.additionalUrls": "", "arduino.logLevel": "info", "C_Cpp.intelliSenseEngine": "Tag Parser" }

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode-arduino/issues/577#issuecomment-399786764, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbvIQh_vYzr6HF6Wlsr7RPDEbldGh2IVks5t__vrgaJpZM4UY2XM.

Don't send this mail to me

On 2018-06-25 04:51 , motycakjannotifications@github.com Wrote:

Hi, this setting works for me, where the C_Cpp.intelliSenseEngine was the main reason of my issue.

{ "arduino.path": "/Applications", "arduino.commandPath": "Contents/MacOS/Arduino", "arduino.additionalUrls": "", "arduino.logLevel": "info", "C_Cpp.intelliSenseEngine": "Tag Parser" }

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode-arduino/issues/577#issuecomment-399786764, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbvIQh_vYzr6HF6Wlsr7RPDEbldGh2IVks5t__vrgaJpZM4UY2XM.

I did not send you this email, this is notification email from this channel.

You are receiving this because you are subscribed to this thread.

Lmao

On Thu, Jun 28, 2018, 11:47 AM motycakjan notifications@github.com wrote:

I did not send you this email, this is notification email from this
channel.

You are receiving this because you are subscribed to this thread.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode-arduino/issues/577#issuecomment-401081448,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhQFxqzqUjV8dmYoh0yi44cpWhLbn9nks5uBPqigaJpZM4UY2XM
.

@Alisparrow2000 , the error was caused by command path, please remove "arduino.commandPath": "run-arduino.bat" in your vscode settings. restart vscode after change.

arduino.commandPath" is only option setting, the default value is "C:/Program Files (x86)/Arduino/arduino_debug.exe" on windows , so we can not set it .
if you set "arduino.commandPath": "run-arduino.bat", you should put "run-arduino.bat" file in path "/Program Files (x86)/Arduino" , then run arduino command, the error will resolve.

I ran into the same problem in my Arduino UNO project that I am developing on my MacBook Pro. I can confirm that the suggestion offered by eknowlton above works and allows the package index to update successfully. I also incorporated the suggestion by motycakjan re: the intellisense engine.

@Alisparrow2000 Is your problem solved? I also encountered the same problem, please help!

screenshot 25
help help

> don't know what to do ????

I had the same issue using windows 10 and resolved it as follows:

1) In Visual Studio Code, click File > Preference > Settings.

2) Type “Arduino” in the search textbox; the Arduino settings page should display.

3) In the field entitled [Arduino: Command Path] simply type in "_arduino_debug.exe_", nothing more.

I found that if I typed in the full path, VSCode would prefix the base file path again, automatically, ending up with an incorrect path like this;

C:\Program Files (x86)\ArduinoC:\Program Files (x86)\Arduinoarduino_debug.exe

Simply using "_arduino_debug.exe_", resolved the problem for me.

arduino_bat_error

screenshot 25
help help

don't know what to do ????

I had the same issue using windows 10 and resolved it as follows:

  1. In Visual Studio Code, click File > Preference > Settings.
  2. Type “Arduino” in the search textbox; the Arduino settings page should display.
  3. In the field entitled [Arduino: Command Path] simply type in "_arduino_debug.exe_", nothing more.

I found that if I typed in the full path, VSCode would prefix the base file path again, automatically, ending up with an incorrect path like this;

C:\Program Files (x86)\ArduinoC:\Program Files (x86)\Arduinoarduino_debug.exe

Simply using "_arduino_debug.exe_", resolved the problem for me.

arduino_bat_error

This worked for me as well! THanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CodeNameHawk picture CodeNameHawk  Â·  67Comments

rei-vilo picture rei-vilo  Â·  20Comments

ameer1234567890 picture ameer1234567890  Â·  22Comments

mundodisco8 picture mundodisco8  Â·  104Comments

Proladon picture Proladon  Â·  16Comments