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

Cannot select serial port (VS Code, Arduino Extension) #1099

Closed
0923416 opened this issue Sep 12, 2020 · 80 comments
Closed

Cannot select serial port (VS Code, Arduino Extension) #1099

0923416 opened this issue Sep 12, 2020 · 80 comments
Assignees

Comments

@0923416
Copy link

0923416 commented Sep 12, 2020

Issue Type: Bug

Installed latest version of visual studio code, then installed latest version of Arduino extension. I plugged in the Arduino Uno and tried to select the serial port which it is connected to. However I can't open the menu to select a serial port. Neither the F1 terminal or the button in the blue bar works.

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

System Info
Item Value
CPUs AMD Ryzen 7 3700X 8-Core Processor (16 x 3600)
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) 15.95GB (10.68GB free)
Process Argv --crash-reporter-id ccc4ce18-4fca-4b09-b7a1-1a8b9a2e35f3
Screen Reader no
VM 0%
@CD10h
Copy link

CD10h commented Sep 14, 2020

Same issue here. At the moment the workaround is to manually change it in .vscode\arduino.json.

@BananaFructa
Copy link

Same issue here as well.

@rotogro
Copy link

rotogro commented Sep 14, 2020

Same issue here. Have to roll back VS Code one version but snap keeps upgrading it by the end of the day. Royal pain.

@Roberto6969
Copy link

Same issue here. Real PITA, cannot open serial port at all. Reinstall of Arduino Extension doesn't help

image

@yoav79
Copy link

yoav79 commented Sep 14, 2020

Same issue here as well.

@W3AXL
Copy link

W3AXL commented Sep 15, 2020

Same behavior seen here on Win10
VSCode 1.49.0
Extension 0.3.2

Clicking on or running the command from F1 does nothing.

@maxulm
Copy link

maxulm commented Sep 15, 2020

Same here

@sanderao
Copy link

same issue with below set up
VSCode Version: 1.49.0
Visual Studio Code extension for Arduino: 0.3.2
OS: Windows_NT x64 10.0.17763

@lrdesrouleaux
Copy link

I have the same issue on mac

@1-max-1
Copy link

1-max-1 commented Sep 15, 2020

Damn I cant open the port selection either

@gaunh0
Copy link

gaunh0 commented Sep 16, 2020

Same issue here !!!!!

@menuRivera
Copy link

Same issue ma fellas

@adiazulay
Copy link
Contributor

I'm having the same issue as well

@Elektrik1
Copy link

Same issue here!

@ciscojmg
Copy link

En este issues tambien se refleja el mismo problema:
#1098

@sukesh-ak
Copy link

Is there someone looking into this bug?

@cdelcristo
Copy link

Same Issue here

@simonl65
Copy link

As a workaround:

  1. open the folder where your .ino file resides
  2. open the .vscode folder
  3. edit arduino.json
  4. change the port
    e.g.
{
  "port":"COM4"
}

@simonl65
Copy link

simonl65 commented Sep 21, 2020

Related issues: #922 #1098 #1104 #1101 #1099

@alandsidel
Copy link

As a workaround:

  1. open the folder where your .ino file resides
  2. open the .vscode folder
  3. edit arduino.json
  4. change the port
    e.g.
{
  "port":"COM4"
}

What is this a workaround for? It's not solving the issue mentioned here; our JSON files already have the port entry in them.

@adiazulay
Copy link
Contributor

As a workaround:

  1. open the folder where your .ino file resides
  2. open the .vscode folder
  3. edit arduino.json
  4. change the port
    e.g.
{
  "port":"COM4"
}

What is this a workaround for? It's not solving the issue mentioned here; our JSON files already have the port entry in them.

This workaround lets you change the port without having to use the UI.

@alandsidel
Copy link

As a workaround:

  1. open the folder where your .ino file resides
  2. open the .vscode folder
  3. edit arduino.json
  4. change the port
    e.g.
{
  "port":"COM4"
}

What is this a workaround for? It's not solving the issue mentioned here; our JSON files already have the port entry in them.

This workaround lets you change the port without having to use the UI.

Ah.. well not being able to change the port isn't as big a problem as not being able to connect to whichever one is selected. The Node.js version error comes up when you click the little plug to open the serial console window also.

@simonl65
Copy link

@alandsidel Agreed - I'd not spotted the second issue in this thread. I was providing a workaround to the OP issue of not being able to select the serial port.

@brunosacom
Copy link

I update VSCode to 1.49.1; same problem

@pjgpetecodes
Copy link

Same issue here and following...

Version: 1.49.1 (user setup)
Commit: 58bb7b2331731bf72587010e943852e13e6fd3cf
Date: 2020-09-16T23:27:51.792Z
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

Arduino Extension v0.3.2.

Changing the serial port in the arduino.json fixes uploading... But the Serial Monitor is also broken...

@T0mHutter
Copy link

yea its a user made one i guess let me see for me it worked fine and i did not get the error.

@T0mHutter
Copy link

Look at this https://code.visualstudio.com/docs/editor/extension-gallery#:~:text=Install%20from%20a%20VSIX%23&text=Using%20the%20Install%20from%20VSIX,vsix%20file.

maybe you try install it manually

@alandsidel
Copy link

@T0mHutter and @Ogieeeeee can you please take your discussion private, out of the ticket? It's not relevant to the rest of us. Thanks!

@T0mHutter
Copy link

ok but i think its helpful for people who search for the issue
we'll speak privat from now on

@Ogieeeeee
Copy link

Ogieeeeee commented Feb 10, 2021

@T0mHutter I've installed it manually via the command pallet and now it works! Thank you very much!

can you please take your discussion private,
@alandsidel yea, sure.

@yaksplat
Copy link

yaksplat commented Feb 13, 2021

@khorbushko
Copy link

Looks like the issue is can be reproduced on new M1 from Apple - can't select neither port neither open serial port (if manually write it in config). Upload works fine.

When clicked on "open port"button
1

@adiazulay
Copy link
Contributor

Can you try updating the extension version 0.4.0?
That might resolve this, but I think this more likely is an issue with the M1, since I don't think the native modules we use are compiled against ARM architecture yet.

@khorbushko
Copy link

I tested all starting from 0.3.0 to 0.4.0 .

do u know maybe it's planned to work on support for M1?

Kapture 2021-04-14 at 21 58 28

@msm52
Copy link

msm52 commented May 2, 2021

Same in my M1

@JacobCollstrup
Copy link

Cannot select serial port in VS Code 1.56

@IanBUK
Copy link

IanBUK commented Jul 2, 2021

Still a problem on 0.4.3, on an M1 MacBook Air.

@mattgodbolt
Copy link

Same issue on an Ubuntu laptop, 0.4.3, vscode 1.58.0

@clara2g
Copy link

clara2g commented Aug 8, 2021

Same issue here. It's happening again after some time working. Linux Mint 20.2, VS Code 1.59.0 and vscode-arduino 0.4.3

@HaNaK0
Copy link

HaNaK0 commented Aug 8, 2021

Appeared for me without me doing anything on windows changing versions does nothing
And if I add the port manually to the JSON I get this error when i try open the serial port

´´´
Failed to open serial port COM3 due to error: + Error: \?\c:\Users\satur.vscode\extensions\vsciot-vscode.vscode-arduino-0.4.0\out\node_modules\usb-detection\build\Release\detection.node is not a valid Win32 application. \?\c:\Users\satur.vscode\extensions\vsciot-vscode.vscode-arduino-0.4.0\out\node_modules\usb-detection\build\Release\detection.node
´´´

@lesmalave
Copy link

lesmalave commented Aug 10, 2021

I have the same problem again, the serial port selector does not work on either of my 2 PCs. I use Windows 10 and Manjaro Linux.

Does anyone have a solution that works now?

@jfaz13
Copy link

jfaz13 commented Aug 10, 2021

Same issue, no port entry in my JSON file either. Adding it manually doesn't work.

@todool
Copy link

todool commented Aug 11, 2021

Same issue, here, no port entry in my JSON file either. Adding it manually doesn't work. If I try to open the serial port I get the following error:
Failed to open serial port /dev/ttyACM0 due to error: + Error: The module '/home/tobie/.vscode/extensions/vsciot-vscode.vscode-arduino-0.4.3/out/node_modules/usb-detection/build/Release/detection.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 87. This version of Node.js requires NODE_MODULE_VERSION 89. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).

@brockcraft
Copy link

brockcraft commented Aug 14, 2021

Same here. VSC Version: 1.59.0 (Universal) on Apple M1 silicon. @adiazulay's solution to edit the arduino.json file works for uploading but it's still not possible to open the serial monitor.

@OlegIvaniv
Copy link

+1 I can't use the official Arduino extension on my M1. Version: 1.59.0

@rotogro
Copy link

rotogro commented Aug 14, 2021

This happens every time there is a new build for VS code. Roll back one revision and you should be fine.

Check out this link for Linux users.

https://askubuntu.com/questions/930593/how-to-disable-autorefresh-in-snap

@brockcraft
Copy link

brockcraft commented Aug 14, 2021

Rolled back to 1.58 and then 1.57. Error still persists.

@tshcherban
Copy link

The same error on Win10. Also 'c_cpp_properties.json' is not updated after switching board, so includes paths are wrong. Code highlighting and navigation does not work.

Version: 1.59.0 (user setup)
Commit: 379476f0e13988d90fab105c5c19e7abc8b1dea8
Date: 2021-08-04T23:13:12.822Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Windows_NT x64 10.0.19043

image

@adiazulay
Copy link
Contributor

We're currently working on a permanent fix for the serial issue, and I'm looking for someone to test a serial utility on an apple M1. If you can help us test send me a message.

@brockcraft
Copy link

brockcraft commented Aug 17, 2021 via email

@adiazulay
Copy link
Contributor

Thanks @brockcraft! I'll be in touch soon.

@cgiles
Copy link

cgiles commented Aug 21, 2021

Does it will fix the issue on Windows too ?

@MartinNohr
Copy link

I have the same problem on Windows 10. I also notice that setting the "Select Programmer" button is also broken.

@hyh1750522171
Copy link

我测试了从 0.3.0 到 0.4.0 的所有内容。

你知道它可能计划支持 M1 吗?

捕获 2021-04-14 at 21 58 28
Thank you very much, I used this method has been resolved the issue of raspberry pie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests