Issue Type: Bug
Same symptoms as #918 and #851
Click Open Serial Monitor icon (with correct Com port selected
Output shows
[Starting] Opening the serial port - COM3
and then no data.
Other serial monitors correctly show data when connected
Extension version: 0.3.1
VS Code version: Code 1.46.0 (a5d1cc28bb5da32ec67e86cc50f84c67cc690321, 2020-06-10T09:03:20.462Z)
OS version: Windows_NT x64 10.0.18362
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz (8 x 2195)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|15.91GB (9.09GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
[Starting] Opening the serial port - COM4
[Info] Opened the serial port - COM4
[Starting] Opening the serial port - COM4
[Info] Opened the serial port - COM4
[Done] Closed the serial port
Same here. Starts, Opens, no data. Serial port is tied up as I can't open in any other monitor. But after closing in VS Code, I can open monitor in Arduino IDE and Putty just fine.
Not able to reproduce, what device are you using and is it worked previously?
Confirmed working with extension version 0.3.0
NOT working in 0.3.1
System specs are in original post
To reproduce: I have an NRF52 transmitting data on serial port (COM3) continuously. Confirmed working by opening Arduino Serial Monitor and observing data.
With 0.3.1 if I click on the "open Serial Monitor" Icon. I get
[Starting] Opening the serial port - COM3
[Info] Opened the serial port - COM3
and then nothing.
With 0.3.0 it opens and streams data
Same issue with 0.3.1. Other serial monitors work fine.
Same issue with 0.3.1. I have to use the serial monitor from arduino ide instead.
Same issue.
Sometimes (when switching versions) I get a 25-line dump of serial data, but it stops there (and no prints even when closing/opening serial monitor).
Same behavior with 0.3.0 and 0.3.1 (open serial monitor fails in older versions).
Looks like this:
[Starting] Opening the serial port - COM3
[Info] Opened the serial port - COM3
4
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
674
[Done] Closed the serial port
[Starting] Opening the serial port - COM3
[Info] Opened the serial port - COM3
锟絒Done] Closed the serial port
[Starting] Opening the serial port - COM3
[Info] Opened the serial port - COM3
Same issue here. Open the serial port and see this.
[Starting] Opening the serial port - COM3
[Info] Opened the serial port - COM3
I use the following in the setup to initiate
Serial.begin(9600);
VS Code is set to 9600
But then no ouput. Arduino IDE serial monitor works fine on the same sketch.
Same issue here. No output from the VSCode Serial Monitor (even tho my settings and sketch have the same baud rate). Tested with both 9600 and 115200 baud rates. This is on Windows 10.
The serial monitor in the Arduino IDE and Putty works fine tho. It wouldn't be a problem to use the Arduino's IDE for the time being, except I'm unable to upload sketches from VSCode while the Arduino IDE is open (permission error).
As a follow-up on the permission error I was encountering when uploading from VSCode with the Arduino IDE open:
This only happens when the Serial Monitor is open in the Arduino IDE. If you close the Serial Monitor, then you can usually upload firmware from VSCode fine. If you sporadically encounter a permission error afterwards when uploading, restarting the Arduino fixes it for me.
Not ideal - but this is my current workflow which is speedy enough for now:
Even with the extra manual steps, development-wise, this is leagues faster than directly developing in the Arduino IDE.
@russelljahn thanks for this - I also cannot get the Serial Monitor working in VSC so the workaround at least gets me unstuck.
I am also on Windows 10.
Version: 1.48.2 (user setup)
Commit: a0479759d6e9ea56afa657e454193f72aef85bd0
Date: 2020-08-25T10:13:11.295Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041
Does v0.3.3 fix this issue?
It works for me now on 0.3.4
This appears to be resolved in 0.3.4, please reopen if this is still an issue
Most helpful comment
Confirmed working with extension version 0.3.0
NOT working in 0.3.1
System specs are in original post
To reproduce: I have an NRF52 transmitting data on serial port (COM3) continuously. Confirmed working by opening Arduino Serial Monitor and observing data.
With 0.3.1 if I click on the "open Serial Monitor" Icon. I get
and then nothing.
With 0.3.0 it opens and streams data