Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

i verify and revived this error :Exit with code=undefined #577

Closed
Alisparrow2000 opened this issue Jun 4, 2018 · 15 comments
Closed

i verify and revived this error :Exit with code=undefined #577

Alisparrow2000 opened this issue Jun 4, 2018 · 15 comments

Comments

@Alisparrow2000
Copy link

Alisparrow2000 commented Jun 4, 2018

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

@Sneezry
Copy link
Member

Sneezry commented Jun 4, 2018

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

@Alisparrow2000
Copy link
Author

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

@Sneezry
Copy link
Member

Sneezry commented Jun 5, 2018

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.

@Alisparrow2000
Copy link
Author

Alisparrow2000 commented Jun 5, 2018

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

@eknowlton
Copy link

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",
}

@motycakjan
Copy link

motycakjan commented Jun 24, 2018

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"
}

@fengpakho
Copy link

fengpakho commented Jun 25, 2018 via email

@fengpakho
Copy link

fengpakho commented Jun 25, 2018 via email

@motycakjan
Copy link

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.

@eknowlton
Copy link

eknowlton commented Jun 28, 2018 via email

@czgtest
Copy link
Contributor

czgtest commented Aug 16, 2018

@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.

@Desertgeek
Copy link

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.

@Josh-BI-UK
Copy link

Josh-BI-UK commented Apr 6, 2020

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)\Arduino\C:\Program Files (x86)\Arduino\arduino_debug.exe

Simply using "arduino_debug.exe", resolved the problem for me.

arduino_bat_error

@Akshay1595
Copy link

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)\Arduino\C:\Program Files (x86)\Arduino\arduino_debug.exe

Simply using "arduino_debug.exe", resolved the problem for me.

arduino_bat_error

This worked for me as well! THanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants