Skip to content
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

Update or install package hangs on processing state when Serial Monitor/Plotter is open #2562

Open
3 tasks done
webspiderteam opened this issue Nov 15, 2024 · 1 comment
Open
3 tasks done
Assignees
Labels
topic: CLI Related to Arduino CLI topic: infrastructure Related to project infrastructure topic: serial monitor Related to the Serial Monitor type: imperfection Perceived defect in any part of project

Comments

@webspiderteam
Copy link

webspiderteam commented Nov 15, 2024

Describe the problem

IDE stucks in processes even it finished. Also when IDE first started downloading index files does same thing. You can see at screenshot below.
Image

I left IDE over night on this process and its still same.

Image
This is also stucks there.

To reproduce

I think it happens when heavy codes opened. On startup stucks on downloading and on installing or updating stucks again in heavy codes. Indexing or background actions to scan codes or Intelli sense could cause this issue.

Expected behavior

IDE should not hang.

Arduino IDE version

Version: 2.3.3 Date: 2024-09-25T09:41:18.242Z CLI Version: 1.0.4 Copyright © 2024 Arduino SA

Operating system

Windows

Operating system version

Windows 10

Additional context

Additional reports

See arduino/arduino-cli#2719 (comment)

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
@webspiderteam webspiderteam added the type: imperfection Perceived defect in any part of project label Nov 15, 2024
@per1234 per1234 self-assigned this Nov 15, 2024
@per1234 per1234 added topic: infrastructure Related to project infrastructure topic: CLI Related to Arduino CLI labels Nov 15, 2024
@per1234
Copy link
Contributor

per1234 commented Nov 15, 2024

Hi @webspiderteam.

Explanation

This is caused by a bug in the Arduino CLI tool that performs these actions for Arduino IDE under the hood. The bug has been reported there (arduino/arduino-cli#2719) and the Arduino CLI developers have already made a fix (arduino/arduino-cli#2728).

The reason Arduino IDE users still encounter this problem even though the bug has been fixed in Arduino CLI is that Arduino IDE is still using the version of Arduino CLI with the bug:

"arduino-cli": {
"version": "1.0.4"
},

The fix will be pulled into Arduino IDE once the developers bump the version of the Arduino CLI dependency to the one that has the bug fix.

Workaround

Serial Monitor

The fault will occur when you have the Serial Monitor* view open while performing certain actions in Arduino IDE. The workaround is to close the Serial Monitor view when you need to perform one of the actions that would otherwise hang due to the bug. You can do that by clicking the X icon on the "Serial Monitor" tab of the panel at the bottom of the Arduino IDE window:

image

You can open the Serial Monitor view as needed once the problematic action is completed.

Serial Plotter

The fault will also occur if you have the Serial Plotter open. As with Serial Monitor, the workaround is to close the Serial Plotter window before performing one of the actions that would otherwise hang due to the bug.

If an operation hangs due to you having triggered it with Serial Plotter open, you can unhang the operation by performing the following procedure:

  1. Close the "Serial Plotter" window.
  2. If the "Serial Monitor" view is not already open, select Tools > Serial Monitor from the Arduino IDE menus to open it.
    We must do an open/close cycle on Serial Monitor as a workaround for a bug in Serial Plotter
  3. Click the X icon on the "Serial Monitor" tab in the bottom panel of the Arduino IDE window to close the tab:
    image

You can open the Serial Plotter as needed once the problematic action is completed.

Conclusion

Even though it is technically off topic for this repository, since this bug has been quite impactful I'll leave this issue open to document the issue for Arduino IDE users who might not see the bug report in the arduino/arduino-cli repository's issue tracker.

It will also serve to track the task of bumping the Arduino CLI dependency.

@per1234 per1234 changed the title Update or install package stucks on proccessing state even it installed Update or install package hangs on processing state when Serial Monitor/Plotter is open Nov 15, 2024
@per1234 per1234 added the topic: serial monitor Related to the Serial Monitor label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: CLI Related to Arduino CLI topic: infrastructure Related to project infrastructure 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