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

Can't Select Serial Port #1104

Closed
rhit-jacksocr opened this issue Sep 19, 2020 · 21 comments
Closed

Can't Select Serial Port #1104

rhit-jacksocr opened this issue Sep 19, 2020 · 21 comments
Assignees

Comments

@rhit-jacksocr
Copy link

Issue Type: Bug

I cannot select my serial port. I have tried every fix I can find on google and nothing works

Extension version: 0.2.29
VS Code version: Code 1.43.2 (0ba0ca52957102ca3527cf479571617f0de6ed50, 2020-03-24T07:38:38.248Z)
OS version: Windows_NT x64 6.1.7601

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz (8 x 2494)
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
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 7.88GB (1.04GB free)
Process Argv
Screen Reader no
VM 0%
@PeterWone
Copy link
Contributor

PeterWone commented Sep 20, 2020

Duplicate of #1101, #1099, #1098, #1097

@sukesh-ak
Copy link

Duplicate of #1101, #1099, #1098, #1097

Which one should be subscribe to for updates?

@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": "COM3"
}

This was referenced Sep 21, 2020
@simonl65
Copy link

simonl65 commented Sep 21, 2020

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

@sukesh-ak
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": "COM3"
}

That's working only for flashing but not for serial monitor

@Abneco
Copy link

Abneco commented Sep 25, 2020

This trick didn't work for me, I uninstalled the Visual Studio code, and reinstalled an old version, it was no longer a problem and disabled automatic updates ...

https://code.visualstudio.com/updates/v1_41

"update.mode": "none"

@fabnicolas
Copy link

fabnicolas commented Oct 5, 2020

@Abneco This workaround works for me but does it exists a portable version of Visual Studio Code?

Right now because of this extension I installed "Visual Studio Code" old version specifically to use vscode-arduino and "Visual Studio Code Insider" for other projects, but I really wanted to simply have a portable vscode designed only for Arduino projects, but I can't find it so far. Telling my team to use a specific version of VSCode on their machine by uninstalling their ones is not acceptable.

Would be nice if this issue is fixed tho to avoid this workaround.

@PeterWone
Copy link
Contributor

@fabnicolas I looked into doing this.

The issue is not in the Arduino extension but in one of its indirect dependencies. A rewrite to use the N-API indirect invocation of native libs is far from trivial due to the complexity of post-installation platform specific build (on which the current implementation relies).

I am currently building an alternative extension that does not suffer from this problem because it works in a completely different way, shelling command line utilities for native integration. This has been a great deal of work and I have not yet decided to make it available for free.

@Abneco
Copy link

Abneco commented Oct 5, 2020

Personally, I also have to develop on a stable system, I find that this extension is promising but not mature enough, so I chose to work with platformIO https://platformio.org/ compatible with the latest version and much more stable , easy to configure ... PlaformIO has another small drawback, ... acceptable ... this is mainly due to the fact that you must respect c ++

Don't forget to disable or uninstall the Microsoft arduino extension before installing PlatformIO, they are not compatible together

@sukesh-ak
Copy link

sukesh-ak commented Oct 6, 2020

@Abneco This workaround works for me but does it exists a portable version of Visual Studio Code?

Right now because of this extension I installed "Visual Studio Code" old version specifically to use vscode-arduino and "Visual Studio Code Insider" for other projects, but I really wanted to simply have a portable vscode designed only for Arduino projects, but I can't find it so far. Telling my team to use a specific version of VSCode on their machine by uninstalling their ones is not acceptable.

Would be nice if this issue is fixed tho to avoid this workaround.

There is a new project called Arduino Pro which is trying to build VS Code kind of IDE. But I would not jump ship personally for now.

@sukesh-ak
Copy link

Also Arduino has a new project for building a new command line. I guess that will become the main way to compile, flash etc in the future.

@CorentinPacaud
Copy link

Will this issue be fixed some day ? or just end of support ?

@kseyhan
Copy link

kseyhan commented Oct 20, 2020

try rebuilding the plugin following the steps from #1113 (comment).

@robotdad
Copy link
Member

Prerelease build for the serial port issue is here: https://github.com/microsoft/vscode-arduino/releases/tag/v0.3.3-rc

I plan to publish a release with this fix tomorrow, Oct 30.

@robotdad robotdad self-assigned this Oct 29, 2020
@robotdad
Copy link
Member

Resolved in release 0.3.3

@WenukaB
Copy link

WenukaB commented Nov 1, 2020

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": "COM3"
}

This prompts the error "The arduino.json file format is not correct."

@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

This is now fixed with vscode-arduino 0.3.3

@ryanlightbrighton
Copy link

Just installed this (v 0.3.4). I can't select serial port. I added com3 manually to the arduino.json but then I'm stuck on the other bug (can't open serial port)

@lomolisso
Copy link

i have the same problem @ryanlightbrighton

@adiazulay
Copy link
Contributor

This is resolved in v0.3.5 see #1198 for installation instructions.

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

No branches or pull requests