arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.34k stars 397 forks source link

Allow user to terminate compilation and upload processes #1199

Open dahmadjid opened 2 years ago

dahmadjid commented 2 years ago

Describe the request

Provide a way for the user to terminate the compilation and upload processes.

Describe the current behavior

In some cases, it is clear to the user that a compile or upload process is going to fail. Currently, they must wait through what is sometimes a lengthy process until it fails before they can make another attempt.

This is especially prevalent for uploads due to the common design of upload tools (e.g., AVRDUDE, rp2040load) to pointlessly retry a failed upload over and over again, even though if the process failed the first time, it is certain to fail on the retries as well.

Arduino IDE version

d6a4b0f

Operating system

Operating system version

Additional context

Additional reports

Keywords

Issue checklist

per1234 commented 2 years ago

Thanks for your suggestion @dahmadjid. For the sake of making all the relevant information available to the interested parties, I'll add a link to the equivalent feature request for Arduino IDE 1.x: https://github.com/arduino/Arduino/issues/5928

There is some valuable discussion and information in that issue and the issues linked off it.

johnerrington commented 1 year ago

I've had a problem because of a busy port, when the upload would neither complete OR fail. A button to terminate the upload process would be very useful.

Eheran1 commented 8 months ago

I have the IDE version 2.3.2 from 2 weeks ago, this feature is missing or I did not find it. Will this come with a later version or did I not see it?

kittaakos commented 8 months ago

It's in the nightly build: https://www.arduino.cc/en/software#nightly-builds

alsavage commented 7 months ago

Really cool that it's in the nightly build of 6 weeks ago . . . but where is it documented?

IOW, what is the keystroke shortcut?

Eheran1 commented 3 months ago

Any update on this?

per1234 commented 2 months ago

Unfortunately, even though a "CANCEL" button was added in https://github.com/arduino/arduino-ide/pull/2334, it turns out that the button doesn't actually terminate the underlying process (https://github.com/arduino/arduino-ide/issues/2517), so the requested feature has not been implemented.

cmaglie commented 1 month ago

The upstream issue should be now fixed in https://github.com/arduino/arduino-cli/pull/2726.