Skip to content

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

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
3 tasks done
robinwesterik opened this issue Mar 14, 2023 · 1 comment
Closed
3 tasks done

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

robinwesterik opened this issue Mar 14, 2023 · 1 comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project

Comments

@robinwesterik
Copy link

robinwesterik commented Mar 14, 2023

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
@robinwesterik robinwesterik added the type: imperfection Perceived defect in any part of project label Mar 14, 2023
@robinwesterik robinwesterik changed the title Can't change baud rate Arduino not throwing an error on an unusable serial port Mar 14, 2023
@kittaakos
Copy link
Contributor

Thank you for taking the time and reporting the problem. I think we have a ticket describing the issue: #1508. We prefer keeping one open GH issue per defect, so I am closing this one as a duplicate. If you disagree, please ping me, and we can discuss and reopen it.

By the way, there is another upstream ticket to get the cause of the error and show it to the user: arduino/arduino-cli#1767

@kittaakos kittaakos added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor labels Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants