Skip to content

"Default" (USB bootloader) upload protocol missing from nightly #1418 #1423

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
jskubick opened this issue Dec 16, 2021 · 5 comments
Closed
Labels
domain: configuration Configuring Sloeber does not work as docummented domain: gui OS: all status: fixed in 4.4.1

Comments

@jskubick
Copy link

The default (USB bootloader) upload protocol is missing from the "Upload Protocol" dropdown when creating a new Arduino project in nightly #1418:

whichProtocol

In contrast, here's the same dialog from the latest official release version (4.4.0):

protocol2

I'm not sure whether it's a related or unrelated bug, but when I tried creating the new Mega2560 project in 1418 with the board connected, it didn't detect the USB com port, either. A few minutes earlier, I had an open project with an ESP32 on com8. When I went to create the new project for the Mega2560 (with the ESP32 disconnected, and the Mega2560 connected on com5), the dropdown showed only com1 and com8.

For what it's worth, I encountered a similar bug a year and a half ago when I tried using CLion with Vladimir Schneider's Arduino plugin. Hopefully, the fact that it works fine in Sloeber 4.4.0, and the breakage occurred somewhere after that point, will make it easier to track down the problem. It's kind of a guess, but maybe the Arduino people changed something 1.5-3 years ago that broke everyone's older code, you fixed it in the code that ended up as 4.4.0, but somehow an older version that didn't incorporate the fix ended up in 1418, causing it to re-break?

@jantje
Copy link
Member

jantje commented Dec 16, 2021

the default option being gone (and replaced by empty option) is a consequence of improvement request #585
The Sloeber behaviour is now more in line with the arduino ide. I mean that when you select the upload button in the toolbar Sloeber executes a upload where he used to do a upload only when default was selected and do a upload using programmer when a programmer was selected..
So now when you want to upload using a programmer you need to select a programmer in the properties and select arduino->upload using programmer (or something like that)
Once you have done so you can also build the target.

It is hard to make comments on the com ports. Do note you can type any com port name you want. Tough if sloeber didn't find the com port it is pretty unlikely the upload/serial monitor will work.

@jskubick
Copy link
Author

Hmmm. I'd argue that the way Sloeber did it originally was actually a lot nicer than the way Arduino IDE implemented it. :-)

I'd definitely recommend changing the label in the dialog from (blank) to something like "Default USB Bootloader". Regardless of what's going on behind the scenes, it'll make the correct choice (the one likely to result in a working new project) a lot more obvious for new users (and people who haven't used it for a while), without impairing experienced users.

@jantje
Copy link
Member

jantje commented Dec 17, 2021

Hmmm. I'd argue that the way Sloeber did it originally was actually a lot nicer than the way Arduino IDE implemented it. :-)

I agree but Arduino IDE is the standard.

I'd definitely recommend changing the label in the dialog from (blank) to something like "Default USB Bootloader"

That is not necessary as when you use the upload button this field is not accounted for
I'm working on a "experanced" toolbar that will allow to do burn bootloader.
Maybe I should rename the field to something "the uploader you use". I gues most people only have one :-s.

@jantje
Copy link
Member

jantje commented Dec 30, 2021

I tried to get the programmer to the "other options" tab but that turned out to be hard as the selection of programmers is platform dependent.
I checked and plenty of platforms provide a programmers.txt. Some referencing the same thing (to me) with different names/ID's; so making it a workspace parameter would not work.
So I decided to rename the field to mention "programmer" hoping this will make things more clear.
The other languages have been checked in as part of #1409
Still waiting for the Italian description https://twitter.com/Arduino_jantje/status/1476562163993042948

@jantje
Copy link
Member

jantje commented Jan 16, 2022

I'm closing this as I think it is fixed as good as I can.
Please reopen if you think there is a better way.

@jantje jantje closed this as completed Jan 16, 2022
@jantje jantje added domain: configuration Configuring Sloeber does not work as docummented domain: gui OS: all status: fixed in 4.4.1 labels Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: configuration Configuring Sloeber does not work as docummented domain: gui OS: all status: fixed in 4.4.1
Projects
None yet
Development

No branches or pull requests

2 participants