Skip to content

Error on Arduino CLI opens an error message window. #3515

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

Closed
carlosperate opened this issue Jul 12, 2015 · 9 comments
Closed

Error on Arduino CLI opens an error message window. #3515

carlosperate opened this issue Jul 12, 2015 · 9 comments
Assignees
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Milestone

Comments

@carlosperate
Copy link
Contributor

Tested on Windows 8.1 x64 bits using the arduino_debug.exe hourly build 1.6.6 2015/07/10 12:34.

This happened on exit code 2, when the sketch cannot be found, and it raises an error message window. Execution stops until the window is dismissed (which could be a problem for headless interfaces). No other message is printed on the command line interface stdout or stderr to indicate this was the reason for the failure, although the exit code itself does indicate this.

I also tried to see if the same would happened on a upload error (disconnecting the board on upload), but in that case no window is opened, and works as expected.

@facchinm facchinm added the Component: IDE user interface The Arduino IDE's user interface label Jul 13, 2015
@facchinm
Copy link
Member

Hi @carlosperate , thanks for reporting! The issue will be tackled by @ffissore as soon as he is back!

@matthijskooijman
Copy link
Collaborator

This is related to #1981, but it might be easier to fix just the error message first, without removing the GUI requirement altogether.

@carlosperate
Copy link
Contributor Author

Yep, it is indeed related to #1981, but I think this case might require special consideration since people working around the X11 issue by creating a virtual display might still have the problem of this window blocking execution until it is dismissed.

@ffissore
Copy link
Contributor

As far as compilation is concerned, don't use the IDE any more. Use arduino-builder which does not require X11

@ffissore ffissore added the Waiting for feedback More information must be provided before we can proceed label Sep 25, 2015
@carlosperate
Copy link
Contributor Author

I am not too familiar with the new arduino-builder, but wouldn't we need to specify in the command line interface a lot more parameters (location of hw libraries and similar)? Is the a simple method to use it like the Arduino IDE CLI? It also does not look like it offers the option to upload the byte code to the Arduino.

@ffissore
Copy link
Contributor

Yes, it needs more params. More power, more params :)

@ffissore
Copy link
Contributor

Speaking of power, it is twice as fast as using plain arduino. Halved our CI server execution times

@carlosperate
Copy link
Contributor Author

I definitely like the idea of faster compilation, but more parameters also means that it needs a lot more effort for other applications to interface with it and maintain compatibility with different versions of the IDE. It looks like the compilation and program uploading components are currently being refactored to be able to integrate them into the upcoming Cloud IDE, which is great, but the current desktop IDE CLI was also great due to its simple interface.

Are there any plans to further refactor the compilation and uploading code outside of the java application? Ideally we could have an arduino_cli executable taking the same parameters that the current Arduino desktop IDE CLI takes, and have it interface with arduino-builder and avrdude. This program could then be invoked by the launch4j application or any other third party app.

@ffissore
Copy link
Contributor

We have no such plans

@ffissore ffissore added Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature and removed Waiting for feedback More information must be provided before we can proceed labels Nov 23, 2015
@ffissore ffissore added this to the Release 1.6.7 milestone Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Projects
None yet
Development

No branches or pull requests

4 participants