[Bug Report]: New project template selector ONLY shows extension projects (VSC-719)
See original GitHub issuePre Bug Report Checklist Before reporting any bug please make sure of these points.
- Make sure you have searched for existing bugs and features request before you post an issue.
- This is a bug report for the ESP-IDF Visual Studio Code extension and not an ESP-IDF bug report.
- I’ve read the docs and found no information that could have helped solving the issue.
Describe the bug After selecting “Choose template” from the new project dialog, only extension templates populate. If ESP-IDF is selected from the dropdown, the page is blank. This issue only occurs in v1.1.1 of the plugin. v1.1.0 works, so I suspect it was this PR https://github.com/espressif/vscode-esp-idf-extension/pull/461 vscode is finding the examples (as shown in the last pic) but doesn’t display them It also seems weird that Extension is the default selection.
To Reproduce Steps to reproduce the behavior (including the full log). Execute new project command Select Choose Template Toggle between Extension and ESP-IDF project types
Expected behavior Selecting ESP-IDF should populate the ESP-IDF examples
Screenshots working v1.1.0: broken v1.1.1:
Environment (please complete the following information):
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report --------------------------------------------- OS win32 x64 10.0.19042 System environment variable PATH C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files\Python39\Scripts;C:\Program Files\Python39;C:\Program Files\ImageMagick-7.0.9-Q16;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Java\jdk1.8.0_161\bin;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Utility;C:\Program Files\dotnet;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\nodejs;C:\Program Files\Azure Data Studio\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\dotnet;C:\Program Files (x86)\Bluetooth Command Line Tools\bin;C:\Program Files\Microsoft\Azure Functions Core Tools;C:\Program Files\Git\cmd;C:\Users\nickb\AppData\Local\Microsoft\WindowsApps;C:\Users\nickb\AppData\Local\Programs\Fiddler;C:\Users\nickb\AppData\Local\Microsoft\WindowsApps;C:\Users\nickb.dotnet\tools;C:\Users\nickb\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\nickb.dotnet\tools Visual Studio Code version 1.58.2 Visual Studio Code language en Visual Studio Code shell C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe ESP-IDF Extension version 1.1.1 ---------------------------------------------------- Extension configuration settings ------------------------------------------------------ ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH} ESP-IDF Path (idf.espIdfPath) C:\Users\nickb\esp\esp-idf ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH} Custom extra paths (idf.customExtraPaths) C:\Users\nickb.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin;C:\Users\nickb.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin;C:\Users\nickb.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:\Users\nickb.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:\Users\nickb.espressif\tools\cmake\3.16.4\bin;C:\Users\nickb.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin;C:\Users\nickb.espressif\tools\ninja\1.10.0;C:\Users\nickb.espressif\tools\idf-exe\1.0.1;C:\Users\nickb.espressif\tools\ccache\3.7;C:\Users\nickb.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64 Custom extra vars (idf.customExtraVars) {“OPENOCD_SCRIPTS”:“C:\Users\nickb\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709/openocd-esp32/share/openocd/scripts”,“IDF_CCACHE_ENABLE”:“1”} Virtual env Python Path (idf.pythonBinPath) C:\Users\nickb.espressif\python_env\idf4.2_py3.9_env\Scripts\python.exe Serial port (idf.port) COM3 OpenOCD Configs (idf.openOcdConfigs) interface/ftdi/esp32_devkitj_v1.cfg,board/esp32-wrover.cfg ESP-IDF Tools Path (idf.toolsPath) C:\Users\nickb.espressif Git Path (idf.gitPath) C:\Users\nickb.espressif\tools\idf-git\2.30.1\cmd\git.exe -------------------------------------------------------- Configurations access ------------------------------------------------------------- Access to ESP-ADF Path (idf.espIdfPath) false Access to ESP-IDF Path (idf.espIdfPath) true Access to ESP-MDF Path (idf.espIdfPath) false Access to ESP-IDF Custom extra paths Access to C:\Users\nickb.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin: true Access to C:\Users\nickb.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin: true Access to C:\Users\nickb.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin: true Access to C:\Users\nickb.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin: true Access to C:\Users\nickb.espressif\tools\cmake\3.16.4\bin: true Access to C:\Users\nickb.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin: true Access to C:\Users\nickb.espressif\tools\ninja\1.10.0: true Access to C:\Users\nickb.espressif\tools\idf-exe\1.0.1: true Access to C:\Users\nickb.espressif\tools\ccache\3.7: true Access to C:\Users\nickb.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64: true Access to Virtual env Python Path (idf.pythonBinPath) true Access to CMake in environment PATH undefined Access to Ninja in environment PATH undefined Access to ESP-IDF Tools Path (idf.toolsPath) true ----------------------------------------------------------- Executables Versions ----------------------------------------------------------- Git version 2.30.1.windows.1 ESP-IDF version 4.2.2 Python version 3.9.5 Python’s pip version 21.1.3 -------------------------------------------------- Python packages in idf.pythonBinPath ---------------------------------------------------- bitstring version: 3.1.9 Brotli version: 1.0.9 cffi version: 1.14.6 click version: 8.0.1 colorama version: 0.4.4 cryptography version: 3.4.7 ecdsa version: 0.17.0 esp-windows-curses version: 0.1 Flask version: 0.12.5 Flask-Compress version: 1.10.1 Flask-SocketIO version: 2.9.6 future version: 0.18.2 gdbgui version: 0.13.2.0 gevent version: 1.5.0 greenlet version: 1.1.0 itsdangerous version: 2.0.1 Jinja2 version: 3.0.1 MarkupSafe version: 2.0.1 pip version: 21.1.3 pycparser version: 2.20 pyelftools version: 0.27 pygdbmi version: 0.9.0.2 Pygments version: 2.9.0 pyparsing version: 2.3.1 pyserial version: 3.5 python-engineio version: 3.14.2 python-socketio version: 4.6.1 reedsolo version: 1.5.4 setuptools version: 57.1.0 six version: 1.16.0 Werkzeug version: 0.16.1 wheel version: 0.36.2 windows-curses version: 2.2.0 ---------------------------------------------------- Check ESP-IDF python requirements.txt ------------------------------------------------- Check ESP-IDF Python packages Python requirements from C:\Users\nickb\esp\esp-idf\requirements.txt are satisfied. ---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------ Check Extension Python packages Error ---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------ Check Debug AdapterPython packages Error ---------------------------------------------------- Visual Studio Code launch.json -------------------------------------------------------- { “version”: “0.2.0”, “configurations”: [ { “type”: “espidf”, “name”: “Launch”, “request”: “launch” } ] } ---------------------------------------------------- Visual Studio Code c_cpp_properties.json ---------------------------------------------- { “configurations”: [ { “name”: “ESP-IDF”, “compilerPath”: “C:\Users\nickb\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe”, “cStandard”: “c11”, “cppStandard”: “c++17”, “includePath”: [ “${config:idf.espIdfPath}/components/", "${config:idf.espIdfPathWin}/components/”, “${config:idf.espAdfPath}/components/", "${config:idf.espAdfPathWin}/components/”, “${workspaceFolder}/" ], “browse”: { “path”: [ “${config:idf.espIdfPath}/components”, “${config:idf.espIdfPathWin}/components”, "${config:idf.espAdfPath}/components/”, “${config:idf.espAdfPathWin}/components/**”, “${workspaceFolder}” ], “limitSymbolsToIncludedHeaders”: false } } ], “version”: 4 }
----------------------------------------------------------- Latest error ----------------------------------------------------------------- Latest error at Command failed: C:\Users\nickb.espressif\python_env\idf4.2_py3.9_env\Scripts\python.exe C:\Users\nickb\esp\esp-idf\tools\check_python_dependencies.py -r “c:\Users\nickb.vscode\extensions\espressif.esp-idf-extension-1.1.1\esp_debug_adapter\requirements.txt”
Output
Click the menu View
and select Output
. This extension uses several output channels: ESP-IDF, ESP-IDF Debug Adapter, Heap Trace, OpenOCD and SDK Configuration Editor.
Please share the output of the channel related to your issue. For example ESP-IDF is used mostly for the extension setup process.
Logs If applicable, 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
Extension Configuration settings
Open Command Palette (F1 or View Menu -> Command Palette) and type Preferences: Open Settings (JSON)
or use {CURRENT_PROJECT}/.vscode/settings.json
to get the following extension configuration settings value:
idf.espIdfPath
(MacOS or Linux) oridf.espIdfPathWin
(Windows) also calledPath to locate ESP-IDF framework (IDF_PATH)
inPreferences: Open Settings (UI)
.idf.pythonBinPath
(MacOS or Linux) oridf.pythonBinPathWin
(Windows) also calledPython absolute binary path used to execute ESP-IDF Python Scripts
inPreferences: Open Settings (UI)
.idf.openOcdConfigs
also calledList of configuration files inside OpenOCD Scripts directory
inPreferences: Open Settings (UI)
.idf.customExtraPaths
also calledPaths to be appended to PATH
inPreferences: Open Settings (UI)
.idf.customExtraVars
also calledVariables to be added to system environment variables
inPreferences: Open Settings (UI)
.idf.adapterTargetName
also calledTarget name for ESP-IDF Debug Adapter
inPreferences: Open Settings (UI)
.idf.customAdapterTargetName
is used whenidf.adapterTargetName
is set tocustom
.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top GitHub Comments
Nuked those folders but it didn’t make a difference.
I was able to get the extension to build and found something odd. When I “run” the extension from source in the “Extension Development Host”, it works. I made a package from that and installed it but then it quits working?!
When you reinstall the extension, make sure to delete the extension folder in
%USERPROFILE%.vscode\extensions\espressif.esp-idf-extension-VERSION
(Windows) or$HOME/.vscode/extensions/espressif.esp-idf-extension-VERSION
(MacOS)