Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Unable to open com port #1098

Closed
tranvan110 opened this issue Sep 12, 2020 · 33 comments
Closed

Unable to open com port #1098

tranvan110 opened this issue Sep 12, 2020 · 33 comments
Labels
serial Issues with serial ports

Comments

@tranvan110
Copy link

Issue Type: Bug

Failed to open serial port COM15 due to error: + Error: \?\d:\PortableApp\VSCode\data\extensions\vsciot-vscode.vscode-arduino-0.3.2\out\node_modules\usb-detection\build\Release\detection.node is not a valid Win32 application.
\?\d:\PortableApp\VSCode\data\extensions\vsciot-vscode.vscode-arduino-0.3.2\out\node_modules\usb-detection\build\Release\detection.node

Extension version: 0.3.2
VS Code version: Code 1.49.0 (e790b931385d72cf5669fcefc51cdf65990efa5d, 2020-09-10T13:22:08.892Z)
OS version: Windows_NT x64 6.1.7601

System Info
Item Value
CPUs Intel(R) Core(TM) i5-3340M CPU @ 2.70GHz (4 x 2691)
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
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.91GB (3.53GB free)
Process Argv
Screen Reader no
VM 0%
@nullmind
Copy link

Have same issue. No problem using the port to upload to device.
Extension version 0.3.2

Version: 1.49.0 (system setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363

@makeratl
Copy link

Having the same here on my end.

Extension version: 0.3.2

Version: 1.49.0 (user setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363

@Forailan
Copy link

Have same issue.

Version: 1.49.0 (user setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18362

Extension version: 0.3.2

@rroessler
Copy link

Same issue. Can upload and verify, but cannot change serial port/nor see serial port menus. Additionally cannot access serial monitor as a result of this.

Version: 1.49.0
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T17:39:53.251Z (6 days ago)
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 19.6.0

Screen Shot 2020-09-17 at 2 18 31 pm

@MaxBoyman
Copy link

MaxBoyman commented Sep 17, 2020

Same Problem here. VS Code 1.49.0 , Arduino extension 0.3.2.
cannot choose serial port from bottom-bar, cannot verify sketch, cannot upload sketch, cannot open serial monitor.
everything sucks.
Version: 1.49.0 (user setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19041

Update:
verify and upload problems was prior to not setting correct port in arduino.json, but the others are consistent.

@Ghakamo
Copy link

Ghakamo commented Sep 17, 2020

Having same issue, notable after a vscode update and C/C++ extension update. Uploads to device fine, only change was the update

@ciscojmg
Copy link

Tengo el mismo problema con el VSCode, puedo verificar los programas, puede subirlo, pero los puertos COM no los reconoces de forma automatica y tampoco puedo debugguear los programa.

@ciscojmg
Copy link

image

@jgusr
Copy link

jgusr commented Sep 17, 2020

Tengo el mismo problema en Ubuntu
Screenshot from 2020-09-17 13-44-00

@johanm57
Copy link

Tengo el mismo problema: No puedo configurar de forma automática el puerto COM y tampoco puedo usar el debug.. Si me funciona la compilación.

image

@ciscojmg
Copy link

El problema se corrigio descargando la version VScode

Version: 1.48.2 (system 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.18362

@arnold117
Copy link

Same issue.

@cdelcristo
Copy link

Same Issue

@kbeaugrand
Copy link

Same issue

@Roberto6969
Copy link

C'mon guys ... Who will solve this banal error? Don't release new version with so banal error. Visual studio code and Arduino extension is totally unusable with such an error. I understand, bugs could happen, but not such a stupid one. Does Micorsoft has fingers in this errror?

@iqapps
Copy link

iqapps commented Sep 22, 2020

Me too.

image

Downgrading Arduino extension alone to previous version dont work anymore....

Downgrading to VS Code 1.48.2 and Arduino extension to 0.30 restores expected function.

We are stuck on old versions here.

@fidelbrea
Copy link

fidelbrea commented Oct 1, 2020

+1 @iqapps
Downgrade. This is a solution. I fixed it by downgrading up to 1.48.2.
I hope you find this useful to fix your own situations.

@mattkemp
Copy link

+1 @iqapps
Working now.
Downgraded to Visual Code 1.48.2 and Arduino extension 0.3.0
Have also turned off automatic updates on Visual Code, just not good enough to break stuff like this with updates.

@iqapps
Copy link

iqapps commented Oct 12, 2020

This is still a very serious problem for me.

Some of us developers are stuck on old code here.

What is keeping this issue from being solved ?

@MaxBoyman
Copy link

This issue is being alive for over than a month and no body's gonna send us at least a report from what's going on. Is there anybody in microsoft to fix this? or arduino extension from microsoft is like other microsoft garage projects?

@trullock
Copy link

I've caused this by updating my version of Node.

But I now cant revert this by downgrading Node....

@simonl65
Copy link

@trullock: do you mean that you are the cause of this issue(!), or you now have the issue?

If the latter then you'll need to downgrade to VSCode 1.48.2 (and maybe also Arduino extension 0.3.0)

@trullock
Copy link

trullock commented Oct 19, 2020

I mean I caused it to myself :D

Or at least I think thats whats caused it. Guess I'll downgrade if thats a known workaround.

initially I updated node and got an issue with NODE_MODULE_VERSION 75 vs 80, then I deleted the arduino extension and reinstalled it and now I'm getting this error. Maybe it updated from 3.0 but I don't think so...

Update

VSC 1.48.2 with VSC-Arduino 0.32 on nvm node 12.19.0 (32bit): works

VSC 1.49.3 with VSC-Arduino 0.32 on nvm node 12.19.0 (32bit): detection.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 75. This version of Node.js requires NODE_MODULE_VERSION 80

VSC 1.50.1 with VSC-Arduino 0.32 on nvm node 12.19.0 (32bit): detection.node is not a valid Win32 application

Ive also tried various combinations of Node versions (both 64 and 32 bit) and couldnt change the above, but I wasnt exhaustive

@Seefer
Copy link

Seefer commented Oct 20, 2020

Just got an MXChip and trying to follow the IoT DevKit Getting Started tutorial on Docs site and having issues with this silly COM port bug mentioned here. This is an abysmal user experience for beginners. I've decided to try PlatformIO and the tutorials there as many tell me that extension has far less pain-points getting in the way of learning this shizzle. Not sure yet whether Azure integration will be an issue though. Any updates to VS Code or Arduino extension should probably include a human doing a test run through the Microsoft Docs that use these tools and if you fail to successfully complete the tutorial, you don't get to release the update :)

@kseyhan
Copy link

kseyhan commented Oct 22, 2020

check the solution proposed here #1113 (comment) if have a proper build environment on your machine.

@robotdad robotdad added the serial Issues with serial ports label Oct 30, 2020
@WenukaB
Copy link

WenukaB commented Nov 1, 2020

This can probably be due to an issue with Arduino Installation. I had the same issue. I uninstalled the Arduino existing installation and installed the latest version (1.8.13) it fixed the issue.

@simonl65
Copy link

simonl65 commented Nov 1, 2020

Arduino extension 0.3.3 fixes this issue

@MaxBoyman
Copy link

MaxBoyman commented Nov 2, 2020

problem still there even after updating to 0.3.3

@mattkemp
Copy link

mattkemp commented Nov 2, 2020

Arduino extension 0.3.3 and Visual Code 1.50.1 is working for me.

@adiazulay
Copy link
Contributor

fixed in 0.3.3

@kaptcha0
Copy link

Not fixed for me. I still have the bug. Downgrading to 0.3.3 didn't help.

@MaxBoyman
Copy link

me too....
nothing helped. downgrading, reinstalling, reinstalling the os, and also vscode itself, nothing.

@adiazulay
Copy link
Contributor

please see #1198

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
serial Issues with serial ports
Projects
None yet
Development

No branches or pull requests