Page 1 of 1

Unable to list serial ports in VS Code on Windows

Posted: Fri Mar 04, 2022 9:42 pm
by eNaught
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

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

Posted: Mon Mar 07, 2022 10:15 am
by ESP_bignacio
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

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

Posted: Sat Apr 02, 2022 1:05 pm
by policeman0077
I have same problem. I am on Mac and the extension version is 1.4.0
log is attached

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

Posted: Sat Apr 02, 2022 1:42 pm
by policeman0077
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