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

Serial port view list empty #16

Open
viteo opened this issue May 26, 2022 · 14 comments
Open

Serial port view list empty #16

viteo opened this issue May 26, 2022 · 14 comments

Comments

@viteo
Copy link

viteo commented May 26, 2022

VS Code v. 1.67.2
In Device Manager I have two serial ports available (COM1 and COM8 for example).
In VSCode Serial Port View: List seems to be empty, refresh button doesnt change the list.

image

Double click on empty line opens Serial Port [COM1] though:
image

The issue might be connected with window locale, but I don't know where to dig.

@cha0s-repo
Copy link

not working on vscode v1.67.2

@ainjayla
Copy link

also not working on v1.67.1 (mac)

@imlinhanchao
Copy link
Owner

@viteo
Copy link
Author

viteo commented Jun 1, 2022

command: node-gyp rebuild --target=17.4.1 --arch=x64 --dist-url=https://atom.io/download/electron
compilation throw some warnings: warning C4996: 'v8::Module::ResolveCallback': Use ResolveModuleCallback
and finished with gyp info ok
same issue in vscode, not helped unfortunately

@viteo
Copy link
Author

viteo commented Jun 1, 2022

here is what appears in dev console:
image
4 errors at the bottom throws when I click on empty line in Serial Port List (one per click)

@HCHDanielHsu
Copy link

rebuild error
image

@imlinhanchao
Copy link
Owner

rebuild error image

you maybe need to set a mirror :

npm config set electron_mirror https://repo.huaweicloud.com/electron/

@HCHDanielHsu
Copy link

rebuild error image

you maybe need to set a mirror :

npm config set electron_mirror https://repo.huaweicloud.com/electron/

Thanks for your quickly reply, but it still error...
image

@HCHDanielHsu
Copy link

rebuild error image

you maybe need to set a mirror :

npm config set electron_mirror https://repo.huaweicloud.com/electron/

Thanks for your quickly reply, but it still error... image

i change folder to "bindings" and still error. it looks like download fail.

@imlinhanchao
Copy link
Owner

ok, I will build it in this week.

@NicolasDumoulin
Copy link

On my side, I've finally successfully rebuilt serial port module on my ubuntu 20.04 with these commands:

sudo apt install libudev-dev
cd .vscode-oss/extensions/hancel.serialport-helper-0.0.15/node_modules/@serialport/bindings
node-gyp rebuild --target=18.3.5 --arch=x64 --dist-url=https://electronjs.org/headers
cd ../../usb-detection/
node-gyp rebuild --target=18.3.5 --arch=x64 --dist-url=https://electronjs.org/headers

And the list of serial ports is populated :-)

@HCHDanielHsu
Copy link

On my side, I've finally successfully rebuilt serial port module on my ubuntu 20.04 with these commands:

sudo apt install libudev-dev
cd .vscode-oss/extensions/hancel.serialport-helper-0.0.15/node_modules/@serialport/bindings
node-gyp rebuild --target=18.3.5 --arch=x64 --dist-url=https://electronjs.org/headers
cd ../../usb-detection/
node-gyp rebuild --target=18.3.5 --arch=x64 --dist-url=https://electronjs.org/headers

And the list of serial ports is populated :-)

Thank you very much. It works. :D

@imlinhanchao
Copy link
Owner

imlinhanchao commented Jul 14, 2022

On my side, I've finally successfully rebuilt serial port module on my ubuntu 20.04 with these commands:

sudo apt install libudev-dev
cd .vscode-oss/extensions/hancel.serialport-helper-0.0.15/node_modules/@serialport/bindings
node-gyp rebuild --target=18.3.5 --arch=x64 --dist-url=https://electronjs.org/headers
cd ../../usb-detection/
node-gyp rebuild --target=18.3.5 --arch=x64 --dist-url=https://electronjs.org/headers

And the list of serial ports is populated :-)

Thank you for your help.

@viteo
Copy link
Author

viteo commented Jul 14, 2022

looking for solution on windows

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

6 participants