Skip to content

Arduino not throwing an error on an unusable serial port #1957

Closed
@robinwesterik

Description

@robinwesterik

Describe the problem

I didn't have my permissions set correctly for my usb device. Arduino v1 would throw an error in these cases, notifying the user to fix their permissions. Arduino v2 doesn't throw any errors, and allows the user to try and send messages.

This is particularly confusing for linux users, as they don't have permissions to tty devices by default on most distros.

The only hint users get that their serial monitor is not behaving properly is the fact that they can't change the baud rate. Users might conclude the IDE isn't functioning properly, like I did.

To reproduce

Set the port to something you don't have access to.
Open the Serial Monitor on a blank project and select a baud rate different from the default.

Expected behavior

I expect to receive an error notifying me to fix my permissions

Arduino IDE version

Version 2.0.4

Operating system

Linux

Operating system version

Arch Linux

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions