-
Notifications
You must be signed in to change notification settings - Fork 236
Clicking Select Serial port does nothing #816
Comments
First of all, disclaimer: I am using the stupidest, most cutting edge setup which may or may not totally break this (Using vscode-remote with WSL on Windows, and passing through COM1 to /dev/ttyS1). I have a similar issue: Before adding I know this is a quite loaded issue, and it reeks of preview software. Still I'd be grateful for any help! |
@C0rn3j I don't know if this helps you, but instead of relying on the Arduino Extension you can try to set up some tasks in .vscode/tasks.json I cobbeled this together yesterday to help alleviate most of my issues with the Arduino Extension like crashes when selecting a port. It relies on the arduino ide's basic command line options that have been made available since version 1.5 |
@C0rn3j I've tried to launch VScode and directly press F1 to select "Arduino: Select Serial Port", it will show error like your description. |
Could you link the commit which fixes this? |
@C0rn3j I got same error in manjaro. Bug reopened. Let me do more investigation and will update you later. |
Yes, Arduino IDE works without a hitch. |
this is definitely still present, I was working on vscode-arduino about 2-3 weeks back without a hitch but I can't select my serial port anymore. Now its either I upload via Arduino IDE or manually input the port into I do not get any feedback however (no errors) when I hit MacOSX 10.14.5 |
Hi! The same issue here. Can you explain better if some workaround are available? |
Can confirm this behavior. At the same time I cannot open the serial monitor on VSCode which is giving me the exact same error depicted in the very first post. I tried opening the Serial Monitor using the Arduino IDE and it opens, but I don't receive any message from the board. (might be a problem on my side probably, not linked with this issue.) @br1pro As a workaround you can open your terminal and type Here's some infos:
|
Same error here. Cannot change or open Serial/COM port in VScode |
VSCode serial port issue is not there till may2019 update it started from june 2019 update so to solve the serial port issue with arduino extension I rolled back to the version released on may2019 it is working fine. Remember to make the "update.mode" : "none" in settings. |
Is the issue still exist? I am alse not able to reproduce it if use the latest version of Arduino extension and VSCode. |
Issue still exists on my installation. |
@jerver , have you used the latest Arduino extension 0.2.29 and vscode 1.41.1? And what is your OS version? Is the serial port working properly using Arduino IDE? Because I could not repro the issue, please give more details. |
Yeah port is working correctly on Arduino ide but vscode Arduino extension has some issues. |
@sreebhargava143, I just tested on windows 10 home x64 edition, the serial port can open and run use Arduino extension. Do you installed the correct hardware USB driver like ST-Link/V2? |
Close the issue because it doesn't have recent activity. Please feel free to open a new issue if you would like further discussion. Thank you for your contributions. |
Still happens |
The issue still exists. |
Any luck here, I am pretty much stack now. It used to work. |
Turn automatic updates off or set to manual and downgrade to January 2020 release. |
问题依然存在,我重装了几次VSCode也没有解决,正在考虑换一个低版本的。 |
The bug still exists here in my Windows: |
The bug definitely still exists for me as well. Clicking serial port in the lower menu does nothing. Trying to select the serial port from the command pallet also does nothing. If I manually add the port in my And all of this works fine in my arduino IDE. |
Still happening to me with VSCode 1.43.1 and Arduino 0.2.29 on Windows 10. When I click on the select serial port link, nothing happens. When I manually enter "COM3" into the arduino.json file, I can upload to my ESP32 just fine. It works fine on my work computer, but not from my home computer (yay COVID-19 shifting my work location). One thing of note - on my work computer, I had Arduino IDE installed before I installed VSCode and the Arduino extension. On my home computer, I installed VSCode and Arduino extension first, had errors with arduino.path that made me realize I never installed Arduino IDE here, then installed it and hit this issue with the serial port. Maybe the bug only happens if you install those 3 things out of order? Good: Arduino IDE -> VSCode -> Arduino Extension |
Still happening to me too, I have the lastest version of VSCode, Arduino and Ubuntu Linux |
This is also an issue for me with the 1.43.1 version. Rolling back to 1.42.1 fixed my issues with the port selection and Serial Monitor. For reference, if on Debian/Ubuntu-based systems: |
Still having this bug, unluckyly the extension is not usable |
Had the same problem, fixed it by unpluging a microphone that was plugged in at the time |
Still an issue |
I had this problem until I updated to the latest version of Visual Studio Code Insiders. Select Serial Port works fine now. Version: 1.48.0-insider (user setup) Arduino extention version: v0.3.1 Arduino IDE version 1.8.12 |
I fixed the problem without switching to the vscode insiders build.
I configured node to install global packages in
The serial port selection and monitor should work fine now. |
@mtorromeo's method solved my problem. Now it's working! |
I too have the same issue on windows 10. Had the latest version of vscode 1.49.0. I had to uninstall vscode, downgrade to the 1.42.1 version and uninstall the C++ and arduino plugins, then reinstall arduino which then gets the correct working version of C/C++ plugin its dependent on. This issue should be reopened as its borked on most newer versions of vscode. |
Great, it worked for me 🙂👍 |
As a workaround:
|
@hellyzh Why you're closing this if the issue is still present?! |
Worked for me as a workaround. Still broken on version 1.49.2 |
Works Great! , is there any way you can fix the bug permanently without this patch required? |
How do I do this in windows? :( |
Install yarn, install electron-rebuild then maybe use "everything" from voidtools to search the executables and add them to PATH (if they are not) again easier thing to use is "everything", just search .vscode and select the right one if you get multiple |
Thanks! I'll give it a try! |
So from May 2019 until October 2020 the problem can't be fixed? |
I just find this maybe the order of statement problem, I put the "port" setting at the 2nd row of the arduino.json, and restart VS Code, it works, however another problem arise (Failed to open serial port COM6 due to error), looks like this problem is from VS Code itself, I can still compile and upload the program via that serial port, just can't open it with the plug icon at the bottom right corner of VS Code. { |
Found this because the issue is still present using version the workaround editing |
Last VS Code update (January 1.53) breaks again this functionality (at least on Linux). Had to downgrade to 1.52 to get it to work. |
To be honest, I couldn't solve this problem. Uninstalled the Arduino extension and installed PlatformIO. Maybe it's tricky at the first time but then when you got the hang, it always works like a charm, never had a problem in almost 2 years of use. You can do everything from PlatformIO, install Libraries, use different platforms and boards (ESP32, Esp8266, Arm boards, Heltec Lora 32, all the Arduino family, and +1000 more. Tested with Windows 10, and Ubuntu Linux 18.04 LTS Think about it ;) |
I am getting invalid version number, even after entering the latest (v13) throws the same error |
Seems to be slightly related to #664
Clicking the button does nothing, no menu pops up.
I had to manually add a line
to ./vscode/arduino.json, after which at least upload works, but opening serial monitor fails with:
OS: Arch Linux
code 1.33.1
arduino 1.8.9
There are no issues with serial when using the Arduino IDE.
The text was updated successfully, but these errors were encountered: