Unable to list serial ports in VS Code on Windows

eNaught
Posts: 1
Joined: Fri Mar 04, 2022 7:43 pm

Unable to list serial ports in VS Code on Windows

Postby eNaught » Fri Mar 04, 2022 9:42 pm

I've installed the ESP-IDF extension for VS-Code on Windows 11 with WSL2. The install seemed to work without issue however I am not able to set the serial port and therefore cannot communicate with the device.

Running ESP-IDF: Select Port to use results in an error message with the text:
Something went wrong while getting the serial port list

If I run ESP-IDF: Install ESP-IDF extension python packages I get an error that says
"/opt/esp/python_env/idf4.3_py3.6_env/bin/python" -m pip install --user virtualenv ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
.

Seaching around for this error brings me to a related issue in VS Code https://github.com/microsoft/vscode-python/issues/14327 however I'm unsure if this has to do with the serial port issue. Any help would be greatly appreciated.

My device is a ESP-WROVER-KIT

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Unable to list serial ports in VS Code on Windows

Postby ESP_bignacio » Mon Mar 07, 2022 10:15 am

Logs
Please share the log file which can be obtained from:

- Windows: %USERPROFILE%\.vscode\extensions\espressif.esp-idf-extension-VERSION\esp_idf_vsc_ext.log
- Linux & MacOSX: $HOME/.vscode/extensions/espressif.esp-idf-extension-VERSION/esp_idf_vsc_ext.log

policeman0077
Posts: 11
Joined: Mon Jul 16, 2018 8:52 pm

Re: Unable to list serial ports in VS Code on Windows

Postby policeman0077 » Sat Apr 02, 2022 1:05 pm

I have same problem. I am on Mac and the extension version is 1.4.0
log is attached
Attachments
esp_idf_vsc_ext.log
(226.39 KiB) Downloaded 332 times

policeman0077
Posts: 11
Joined: Mon Jul 16, 2018 8:52 pm

Re: Unable to list serial ports in VS Code on Windows

Postby policeman0077 » Sat Apr 02, 2022 1:42 pm

seems new macos update deleted python 2.7 so the extension_env can not find it.
I deleted files in .espressif/python_env and then the idf extension could be reconfiged

Who is online

Users browsing this forum: No registered users and 51 guests