Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" [Error] Exit with code=undefined " -> too little information #611

Closed
gajop opened this issue Jul 19, 2018 · 7 comments
Closed

" [Error] Exit with code=undefined " -> too little information #611

gajop opened this issue Jul 19, 2018 · 7 comments

Comments

@gajop
Copy link

gajop commented Jul 19, 2018

I'm getting the error as mentioned ([Error] Exit with code=undefined), which is lacking information.
My arduino.path, arduino.commandPath or something else is probably wrong, but it's too hard to tell where the issue is.
Can you please increase the verbosity of the commands like Verify, so we have a chance to figure out what went wrong?
Thanks!

PS: In my case the issue was that I didn't restart VS Code after correcting the path, but this doesn't invalidate the issue (if I knew it was trying to use the wrong path, I could've figured out the reason why sooner)

@czgtest
Copy link
Contributor

czgtest commented Jul 20, 2018

@gajop Thank you for your feedback.

before use this extension, we should install Arduino IDE.
you can not set “arduino.path” , when you use this extension , it will automatically detected from your Arduino IDE installation path.

arduino.commandPath is not required too , it is only option.

for this error, we will improve the description, Can you tell us the detail of how to repro on it ?

@gajop
Copy link
Author

gajop commented Jul 20, 2018

I don't have Arduino IDE installed in the default path, which is why I specified a custom arduino.path pointing to the right location.

I think you can easily reproduce this by specifying any bogus arduino.path. This is not a bug, just lacks verbosity to help the user figure out what settings are wrong.

@czgtest
Copy link
Contributor

czgtest commented Aug 15, 2018

if not install Arduino IDE or set incorrect path for arduino.path , then you run arduino command , will get an message as bellow.

image

if arduino.commandPath is not right, we will get the error " [Error] Exit with code=undefined " when run arduino command. Thank you a lot for your feedback, we will improve the error information then

@czgtest
Copy link
Contributor

czgtest commented Aug 17, 2018

image

@czgtest czgtest closed this as completed Aug 17, 2018
@gajop
Copy link
Author

gajop commented Aug 17, 2018

I'd add some space after the ".", but otherwise it's a good error message (especially as it also includes the attempted path)

@PeterWone
Copy link
Contributor

I don't have a commandPath specified but I'm getting code=undefined, what else can it mean?

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

No branches or pull requests

4 participants
@gajop @PeterWone @czgtest and others