-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Compile/Upload must retain control over started processes #3771
Comments
+1 |
[LMCHK] |
It was straight forward to make the compilation process interruptible cleanly anytime with a java written driver. Dealing with arduino-builder cleanly is not as simple. Someone will have to modify builder to support this feature. The way i did it was to introduce a CoreJob (defined in core) class which conrains a isInterrupted() method that the java builder checks regularly. There is also a EditorJob subclass that has added UI only info (defined inside app). Doing it this way has the merrit of also solving the console problem (compilation output follows the active editor instead of remaining in the console fo the editor that started the compilation) by add a simple getOutput() and getError() to CoreJob. With this in place, all thats left is to replace all the System.xxx.print() in Compiler.jave with calls to job.getOut().println(). There is bit more to it if you replace the PumpThisThatTheOtherThing(), you get the idea. |
Fixed by merging 6d5597b |
This is not fixed: Upload a (larger) program to a 32u4 and unplug the device when uploading the code. It will freeze. And you still can reconnect, select a new port and upload again. So a) two processes are started and b) you still cannot abort. |
The second time you click the upload button the stuck |
Sure I am on Linux ;) |
+1 |
Testato we got this super thumbs up github feature now. Please use it. |
I do not understand :-) |
I am not sure if this is ironie. On the upper right hit the smiley button and select a thumbs up instead of posting +1 |
now i understand, on the smartphone the new icon systems it is not visible. |
@NicoHood , I agree with you, an abort button could be far more understandable (it should only appear during upload, since compilation is going to end sooner or later). |
@facchinm, I'm also planning to revisit this part of the code as part of my debugger work, so perhaps we should have a chat, probably including the UI folks as well? |
woops, didn't mean to reopen |
Right now processes are started but they are not under user control. User cannot stop or abort them, and hitting the buttons twice starts twice the processes.
Symptoms have been acknowledged in #3568 #2718 #2574 #2417 #766
The text was updated successfully, but these errors were encountered: