-
Notifications
You must be signed in to change notification settings - Fork 228
Select A Serial Port doesn't work #922
Comments
The same thing happens in windows Extension version: 0.2.27 |
I have the same thing on a Linux Mint (Debian/Ubuntu) system. The ArduinoIDE packages work, but VS Code doesn't let me select a serial port. This seems to be the same thing as issues #596, #664 , #816, and/or #851. The release of 0.2.27 fixed this problem for some people, but not everyone, it seems. If I edit the .vscode/arduino.json file directly and add the line for the serial port path in my case to: The VS Code interface picks up the configuration change and can program the Arduino Uno. When I try to bring up the serial console I get: "Failed to open serial port COM6 due to error: + TypeError: Cannot read property 'close' of null" vscode-arduino version: 0.2.27 I have read/write perms on the serial port and can run other tools without priv escalation to read/write just fine. To sum up:
|
I am having this problem as well on Windows Version 10.0.18362 Build 18362. I can interact with the serial device via PuTTY, and I can also set the COM port in the arduino.json, but the button at the bottom right and the Command Palette command both do nothing as far as the UI is concerned. |
Same issue here - Nothing shows up after clicking the vscode-arduino version: 0.2.27 |
Same issue. arduino.log showing: {"correlationId":"4e71062607b3432184bf6cdd6cec17b6","command":"arduino.selectSerialPort","message":"error","errorLine":"\tat Object. (c:/users/..../.vscode/extensions/vsciot-vscode.vscode-arduino-0.2.27/vendor/node-usb-native/lib/bindings.js:27:19)","telemetry":true,"level":"error","timestamp":"2019-11-12T08:41:12.402Z"} {"notification":"Failed to open serial port COM31 due to error: + TypeError: Cannot read property 'close' of null","showUser":true,"telemetry":true,"message":"error","errorLine":"\tat Object. (c:/Users/..../.vscode/extensions/vsciot-vscode.vscode-arduino-0.2.27/vendor/node-usb-native/lib/bindings.js:27:19)","level":"warn","timestamp":"2019-11-12T09:36:44.125Z"} |
I have the same issue, clicking on a COM port name in status bar does nothing. |
My set up is as follows:
|
Quick update: testing out vscode 1.39.2 (instead of the latest, 1.40.0) and the COM port selection works just fine. |
I can confirm @jrlanglois finding that vscode 1.39.2 has a working serial port selection. Version: 1.39.2 Arduino IDE: 1.8.9 |
We're currently working on a new release containing the fix to this issue, will update you once we release is go public. |
The serial port issue has been fixed in the latest Arduino extension release (0.2.28). |
It fixed the issue for me |
It seems to have worked me for my systems as well. @dooriya and team: |
Excellent. This solved the issue on my environment (summarized in previous comment). |
+1, v0.2.28 fixes the issue for me. Thanks! |
Thanks you all for the feedback, |
Unfortuanately, I still encounter the issue described above. I'm on: Mac OSX 10.14.6 Going through the command palette didn't work either. After setting the port manually through arduino.json upload worked, but serial monitor still does not. |
This issue was fixed earlier, but it has re-appeared for me as well. |
I can also set the port manually through arduino.json without any problem, but serial monitor does not work. |
Same here. When I open serial monitor, I see the error: "Failed to open serial port /dev/cu.usbmodem14301 due to error: + TypeError: Cannot read property 'close' of null" |
After the update I can't select a new COM port or user the serial terminal. Version: 1.43.0 (user setup) |
select serial port does not work. I rollback code to version 1.42.1 it works. |
I can confirm same problem here. I manually added the serial port to
and that fixed the upload, yet the serial monitor still does not work. Error message for serial monitor is
Rollback to Visual Studio Code 1.42.1 works nicely for me. |
As a workaround:
|
Still a problem in 1.49.1 👎 ( |
Same issue here: Version: 1.49.1 (user setup) |
Can confirm, also not working on linux Version: 1.49.1 |
Just downloaded VS Code / Arduino extension on Windows 10, same issue. Tried reverting the extension back to 3.0 (from 3.2) made no difference. Also uninstalled/reinstalled extension. Version: 1.49.2 (user setup) |
This is how I SOLVED this problem in my Ubuntu machine: 1)In the settings.json file (reacheable through File / Preferences / Settings and then the Workspace Settings tab) 2)Then in the file arduino.json manually specified the device name for the USB connection in my machine: Now I can upload sketches to the Arduino board. I had this idea while reading https://medium.com/home-wireless/use-visual-studio-code-for-arduino-2d0cf4c1760b |
It seems good idea. But as long I have tested on windows machine, using COMx port syntax, it doesn't work |
Seem it is a problem about nodejs |
Downgrade. This is a solution. I fixed it by downgrading up to 1.48.2. |
Downgrading from 1.49 to 1.48.2 works for me to, I wish they would get a handle on this issue as it has happened quite a few times now. |
@DerekFoster1976 It might be better to open that as a new issue - it's unlikely to get noticed in this closed issue :-( |
This worked for me too - thanks so much darcynog - this old guy appreciates your help |
Fixed it on windows aswell. |
Having the same issue, adding the device manually to the OS version: macOS 10.15.5 When I try to open the serial monitor, I get the following error. There seems to be some sort of mismatch with Node.js versioning:
|
same issue over here: Nothing happens when clicking on select serial port |
same issue here |
OS Windows 7 SP1 Initially, nothing happens when clicking on select serial port. Hope this helps... |
I'm on windows 10 and it started happening out of nowhere. This is happening on both of my computers. I tied installing the new Arduino update, but nothing. |
I gave up and installed PlatformIO instead - it's been rock-solid for me ;-) |
This is the third time that this feature has broken in the time I've been using it. Microsoft needs to add a test to catch this better when new versions of VSCode, Arduino extension, or Windows 10 are released. |
This issue is fixed in v0.3.5, you can install it using the .vsix file in the repo. See #1198 for more details. |
Issue Type: Bug
Im on Mac, and everytime i try to select a serial port at the bottom, nothing shows up.
Extension version: 0.2.27
VS Code version: Code 1.40.0 (86405ea23e3937316009fc27c9361deee66ffbf5, 2019-11-06T17:09:34.601Z)
OS version: Darwin x64 18.7.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: