Skip to content

Show "Tools > Port" menu even when empty #655

Closed
@per1234

Description

@per1234

Describe the request

Show A Port menu item under the Arduino IDE Tools menu even when there are no ports to populate that Tools > Port menu.

🙂 The lack of ports will be communicated to the user in an intuitive manner.

Describe the current behavior

The Arduino IDE's Tools > Port menu is populated by the discovered ports.

An unexpected lack of a port is a common problem for Arduino users. This might happen when the user has a bad USB cable, didn't install the drivers for their board, burned up the board, etc.

Currently, when no ports were discovered the Tools > Port menu item is missing entirely. I feel this is not a great user experience. An empty menu better communicates the lack of a port to the user than the menu itself being absent. The missing menu gives the user the impression there is a fault in the Arduino IDE application rather than a lack of an external resource listed by the menu.

image

Compare to the behavior of Arduino IDE 1.x under these conditions:

image

Arduino IDE version

2.0.0-rc1-snapshot.f0d9894

Operating system

Windows

Operating system version

10

Additional context

There are some other menus that are dependent on external resources:


Originally reported at https://forum.arduino.cc/t/compilation-fails-due-to-no-upload-port-specified/926836/5


Additional reports:

Activity

changed the title [-]Show menu items even when empty[/-] [+]Show "Tools > Port" menu even when empty[/+] on Sep 19, 2022
seaxwi

seaxwi commented on Dec 7, 2022

@seaxwi

I think this issue should be prioritized. I am getting feedback from several Help Center readers that are confused about why the menu option is missing. I'm addressing this on my end by updating content, but the fact remains that there are tons of content out there assuming that the Tools > Port menu will always be available. I agree with @per1234 about an empty menu being fundamentally better for user experience.

I suggest displaying the text "No ports discovered" (or whatever the Board Selector shows). This way there is a shared "phrase" that lends itself to searching and writing troubleshooting content.

added a commit that references this issue on Dec 21, 2022
6273734

3 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @kittaakos@per1234@seaxwi@91volt

    Issue actions

      Show "Tools > Port" menu even when empty · Issue #655 · arduino/arduino-ide