Skip to content

IDE unresponsive when uploading with Serial Monitor open and the board printing messages with no delays #10

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
ubidefeo opened this issue Feb 11, 2021 · 6 comments · Fixed by #22
Assignees
Labels
conclusion: resolved Issue was resolved 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

@ubidefeo
Copy link

Behaviour:
If i have a sketch with a Serial.println("hello") in the loop with no delays, and the Serial Monitor is open,
If I initiate an upload the IDE stops being responsive and almost comes to a halt.
There's no recovery from it, I just have to quit and reopen

How to reproduce:

  • Make a sketch with Serial.println("Hello!"); in the main loop.
  • Upload it
  • Open the Serial Monitor
  • While Serial Monitor is printing out the message click upload again

System:
Mac OS
Version: 2.0.0-beta.1-snapshot.98ef006

@ubidefeo
Copy link
Author

@per1234 I commented on Issue https://github.com/arduino/arduino-pro-ide/issues/424
not sure the two are related, but unless I have the SM open I don't get any slow-downs with compile/upload verbose enabled

@kittaakos
Copy link
Contributor

  • Make a sketch with Serial.println("Hello!"); in the main loop.

First, I wanted to check how the Java IDE behaves. I did the followings:

  • Connect and select my Uno board,
  • Compile and upload my sketch,
void setup() {
}

void loop() {
 Serial.println("hello");
}
  • Opened the SM.
  • Nothing happened.

Can you please share your sketch? Thank you!

@ubidefeo
Copy link
Author

@kittaakos you are missing initialising the Serial first

void setup() {
  Serial.begin(9600);
}

void loop() {
 Serial.println("hello");
}

@kittaakos
Copy link
Contributor

https://github.com/arduino/arduino-pro-ide/issues/294 is most likely required for this issue. The serial monitor is a custom rendered nightmare; the VS Code guys did a great job optimizing the monaco editor's performance. I will try to replace it.


One thing I have noticed, if you turn the auto-scroll off in the widget, the UX becomes much better.
Screen Shot 2021-02-12 at 10 46 46

Can someone please also verify it?

@rsora
Copy link
Contributor

rsora commented Feb 12, 2021

One thing I have noticed, if you turn the auto-scroll off in the widget, the UX becomes much better.
Screen Shot 2021-02-12 at 10 46 46

Can someone please also verify it?

Unfortunately, I've tested this on windows and I don't see any particular improvement, disabling the auto-scroll 😿

@kittaakos
Copy link
Contributor

Upstream issue: eclipse-theia/theia#9063

kittaakos pushed a commit that referenced this issue Feb 15, 2021
Signed-off-by: Akos Kitta <[email protected]>
kittaakos pushed a commit that referenced this issue Feb 15, 2021
Signed-off-by: Akos Kitta <[email protected]>
kittaakos pushed a commit that referenced this issue Feb 15, 2021
@per1234 per1234 added the bug label Feb 16, 2021
kittaakos pushed a commit that referenced this issue Feb 17, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added topic: code Related to content of the project itself topic: serial monitor Related to the Serial Monitor conclusion: resolved Issue was resolved labels Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved 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

Successfully merging a pull request may close this issue.

4 participants