-
Notifications
You must be signed in to change notification settings - Fork 236
Failed to open serial port due to error on VSC v1.56.0
#1257
Comments
Same issue here (running Windows 10) |
Same issue here: detection.node is not a valid Win32 application.
|
Same issue After run 'Arduino: Open Serial Monitor' at command palette. The error occured. Failed to open serial port COM3 due to error: + Error: The module '\?\c:\Users\xxxx\.vscode\extensions\vsciot-vscode.vscode-arduino-0.4.2\out\node_modules\usb-detection\build\Release\detection.node' But it can remain upload code to device. |
Here too.
From a similar problem reported last October, the solution seems to be to get the |
I do have the very same problem also. Brief browsing seems to indicate that this is happening quite often. I'm quite curious though, why my usb-detection was compiled using NODE_MODULE_VERSION 67? Version: 1.56.0 As a workaround I'm using screen for the /dev/ttyUSB0...... |
And is very likely to continue to happen. The extension maintainers likely do not know ahead of time when a vscode update will be pushed that uses a new version number. All they can do is react when an update breaks the extension. How long that takes could vary a lot. If it is a simple matter of changing a number, compile, commit, push, then it can be fast. If changing the version number potentially breaks other things as well, then a full regression test cycle is needed. Which takes longer to start with, and may need additional changes before an update can be sent out. |
In this issue is a list of previous occurrences of this, if you want to link these here: |
I had the same issue and found another thread discussing: Andrew Trullock provided guidance as follows: So the fix is to use an older version - here is what worked for me with Andrews help: Visual Studio Code 1.55.2 from April 21 which can be downloaded here (to assist others): And the Visual Studio Code Extension: Arduino for Visual Studio Code 0.4.2 This combination will work as you expect it to and I can confirm that it does :) |
Hi, same on Pop!Os (Ubuntu). |
Same issue here in Windows 10. Using insider and standard. Both have the same problem described in this thread. I can confirm that rolling back to the March 2021 version (1.55) allows me to select the serial port again. |
same issue here! Version: 1.56.1 |
#1262 resolves the issue. v0.4.3 will be ready to download as soon as the build is done. |
roll back does work. Version: 1.55.2 (system setup) <-- Rolling back to this version resolved issue.** |
To everyone who comes here 😄 code --install-extension /path/to/extension.vsix Happy coding! 🧑💻Reference |
Issue Type: Bug
Failed to open serial port /dev/ttyUSB0 due to error: + Error: The module '/home/oskar/.vscode/extensions/vsciot-vscode.vscode-arduino-0.4.2/out/node_modules/usb-detection/build/Release/detection.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 85. This version of Node.js requires
NODE_MODULE_VERSION 87. Please try re-compiling or re-installing
the module (for instance, using
npm rebuild
ornpm install
).Extension version: 0.4.2
VS Code version: Code 1.56.0 (cfa2e218100323074ac1948c885448fdf4de2a7f, 2021-05-04T21:58:14.757Z)
OS version: Linux x64 5.8.0-50-generic snap
System Info
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
A/B Experiments
The text was updated successfully, but these errors were encountered: