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

CLI initialisation issues on Windows (serial monitor) #2465

Closed
3 tasks done
Hannes7eicher opened this issue Dec 14, 2023 · 4 comments
Closed
3 tasks done

CLI initialisation issues on Windows (serial monitor) #2465

Hannes7eicher opened this issue Dec 14, 2023 · 4 comments
Assignees
Labels
os: windows Specific to Windows operating system type: imperfection Perceived defect in any part of project

Comments

@Hannes7eicher
Copy link

Hannes7eicher commented Dec 14, 2023

Describe the problem

When uploading this code snippet to the Nano ESP32 nothing gets printed when opening the serial monitor.

void setup() {
  Serial.begin(9600);
  while(!Serial);
  Serial.println("Starting...");
}

void loop() {}

When opening the serial monitor with putty the prompt is printed as expected.

To reproduce

Upload a sketch to the Nano ESP32 either using the IDE or cli that uses while(!serial) and prints messages when opening the serial monitor. Open the serial monitor.

Expected behavior

When opening the serial monitor I expect to see the messages printed inside setup.

Arduino CLI version

0.34.2 Commit: 963c1a7 Date: 2023-09-11T10:05:41Z

Operating system

Windows

Operating system version

Windows 11 Pro

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@Hannes7eicher Hannes7eicher added the type: imperfection Perceived defect in any part of project label Dec 14, 2023
@umbynos umbynos added the os: windows Specific to Windows operating system label Dec 14, 2023
@cmaglie
Copy link
Member

cmaglie commented Feb 15, 2024

@Hannes7eicher I see a bizarre behavior, the Starting... message appears if I open the port two times in a row:

C:\Users\cmagl\Desktop\Test>..\arduino-cli.exe monitor -p COM12
Connesso a COM12! Premere CTRL-C per uscire.
^C

C:\Users\cmagl\Desktop\Test>..\arduino-cli.exe monitor -p COM12
Connesso a COM12! Premere CTRL-C per uscire.
Starting...

On the second try the Starting... message is triggered as expected. This is not happening with putty that shows the correct behavior. Is this happening also with your system?

I cannot reproduce it on my Linux box either, so this is a Windows-related bug.

@cmaglie
Copy link
Member

cmaglie commented Feb 16, 2024

The problem might be fixed with this patch: bugst/go-serial#174

@Xayton
Copy link

Xayton commented Feb 19, 2024

Need to release the new version of the serial-monitor in the package index.

@Xayton Xayton changed the title CLI initialisation issues on Windows CLI initialisation issues on Windows (serial monitor) Mar 4, 2024
@cmaglie
Copy link
Member

cmaglie commented Mar 7, 2024

Fixed by releasing of serial-monitor 0.14.1 on main package index.

@cmaglie cmaglie closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows Specific to Windows operating system type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants