Closed MartyMcFlyInTheSky closed 2 years ago
Have you configure the extension using the ESP-IDF: Configure ESP-IDF extension
?
Hey @brianignacio5 thanks for the answer. I did install it using the configuration. So the VS intern variables should be set correctly. I also figured out that the monitoring button works just fine.
In any case, what values would I have to change and where to make the buttons trigger the right functions (with the right location)?
Please share this information to understand the issue in your system.
Environment (please complete the following information):
Logs If applicable, please share the log file which can be obtained from
%USERPROFILE%\.vscode\extensions\espressif.esp-idf-extension-VERSION\esp_idf_vsc_ext.log
$HOME/.vscode/extensions/espressif.esp-idf-extension-VERSION/esp_idf_vsc_ext.log
Also please share your extension settings values
idf.espIdfPathWin
idf.customExtraPaths
idf.pythonBinPathWin
idf.customExtraVars
There should also be a Build or Flash task output log in the terminal tab.
Closing this issue since it is configuration error.
Explanation of extension configuration is shown in ONBOARDING
Hey @brianignacio5 can you reopen this issue? The bug still persists. Here's all the information you need:
esp_idf_vsc_ext.log esp_idf_vsc_ext.log
VS-Code extension version: v1.3.0 idf.py --version 1.0.1 (current master) Python 3.8.8
Here are all idf related settings in local folder settings.json:
{
...
"idf.adapterTargetName": "esp32",
"idf.espIdfPath": "${env:IDF_PATH}",
"idf.toolsPathWin": "${env:IDF_TOOLS_PATH}",
"idf.customExtraPaths": "C:/dev/esp/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin;C:/dev/esp/.espressif/tools/xtensa-esp32s2-elf/esp-2021r1-8.4.0/xtensa-esp32s2-elf/bin;C:/dev/esp/.espressif/tools/xtensa-esp32s3-elf/esp-2021r1-8.4.0/xtensa-esp32s3-elf/bin;C:/dev/esp/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin;C:/dev/esp/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin;C:/dev/esp/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin;C:/dev/esp/.espressif/tools/cmake/3.16.4/bin;C:/dev/esp/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/bin;C:/dev/esp/.espressif/tools/ninja/1.10.2;C:/dev/esp/.espressif/tools/idf-exe/1.0.1;C:/dev/esp/.espressif/tools/ccache/3.7;C:/dev/esp/.espressif/tools/dfu-util/0.9/dfu-util-0.9-win64",
"idf.customExtraVars": "{\"OPENOCD_SCRIPTS\":\"C:/dev/esp/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts\",\"IDF_CCACHE_ENABLE\":\"1\"}",
"idf.pythonBinPathWin": "C:/dev/esp/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe",
"idf.openOcdConfigs": [
"interface/ftdi/esp32_devkitj_v1.cfg",
"target/esp32.cfg"
],
"idf.portWin": "COM5",
}
Note that I have set up the IDF_PATH and IDF_TOOLS_PATH variables in environment before installing the extension (so the installer finds these locations by itself and installed it there - that worked fine btw.).
The output from the terminal is just:
> Executing task in folder aurora-light-controller: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <
Setting IDF_PATH: C:\dev\esp\esp-idf
Adding ESP-IDF tools to PATH...
C:\dev\esp\.espressif\tools\xtensa-esp32-elf\esp-2021r1-8.4.0\xtensa-esp32-elf\bin
C:\dev\esp\.espressif\tools\xtensa-esp32s2-elf\esp-2021r1-8.4.0\xtensa-esp32s2-elf\bin
C:\dev\esp\.espressif\tools\xtensa-esp32s3-elf\esp-2021r1-8.4.0\xtensa-esp32s3-elf\bin
C:\dev\esp\.espressif\tools\riscv32-esp-elf\esp-2021r1-8.4.0\riscv32-esp-elf\bin
C:\dev\esp\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210902\openocd-esp32\bin
C:\dev\esp\.espressif\tools\ccache\4.3\ccache-4.3-windows-64
C:\dev\esp\.espressif\python_env\idf4.4_py3.8_env\Scripts
Checking if Python packages are up to date...
Python requirements from C:\dev\esp\esp-idf\requirements.txt are satisfied.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
C:\dev\aurora-light-controller\build>
So essentially, export.bat is run without follow up. Judging from the esp_idf_vsc_ext.log it seems however that the paths are still not found after exporting? What could be the cause?
Invoking idf.py build from terminal works just finde though.
What about the doctor command output ?
Based on your shared settings, these are not correct.
There should be "idf.espIdfPathWin" and "idf.toolsPathWin" since you are using Windows. Also the build is not shown by default (idf.notificationSilentMode: false will show the terminal output) but there should be a new terminal called ESP-IDF Build task.
Thanks! This is the output from the doctor command:
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.19043
System environment variable IDF_PYTHON_ENV_PATH
C:\dev\esp\env
System environment variable PATH
C:\Program Files (x86)\gtkmm\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\dev\esp\esp-idf;C:\PHP7;C:\Program Files\PuTTY\;C:\Go\bin;C:\Users\samue\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\samue\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\samue\AppData\Local\Programs\Python\Python38\;C:\Users\samue\AppData\Local\Programs\Python\Python37\;C:\Users\samue\appdata\local\programs\python\python37\;C:\Users\samue\appdata\local\programs\python\python37\scripts\;C:\Users\samue\AppData\Local\Programs\Python\Python39\;C:\Users\samue\appdata\local\programs\python\python39\scripts\;C:\Users\samue\appdata\local\programs\python\python39\;C:\Users\samue\AppData\Local\Programs\Python\Python36\;C:\Users\samue\appdata\local\programs\python\python36\scripts\;C:\Users\samue\appdata\local\programs\python\python36\;C:\Users\samue\AppData\Local\Programs\Python\Python35\;C:\Users\samue\appdata\local\programs\python\python35\scripts\;C:\Users\samue\appdata\local\programs\python\python35\;C:\Users\samue\appdata\local\programs\python\python35\scripts\;C:\Users\samue\appdata\local\programs\python\python35\;C:\Users\samue\AppData\Local\Microsoft\WindowsApps;C:\Users\samue\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\samue\AppData\Roaming\npm;C:\dev\esp\.espressif\tools\cmake\3.20.3\bin;C:\Go;C:\Sencha\Cmd;C:\Sencha;C:\Users\samue\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\msys64\mingw64\bin;
System environment variable PYTHON
undefined
Visual Studio Code version 1.64.0
Visual Studio Code language en
Visual Studio Code shell C:\Windows\System32\cmd.exe
ESP-IDF Extension version 1.3.0
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) ${env:IDF_PATH}
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
Custom extra paths (idf.customExtraPaths) C:\dev\esp\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin;C:\dev\esp\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin;C:\dev\esp\.espressif\tools\xtensa-esp32s3-elf\esp-2020r3-8.4.0\xtensa-esp32s3-elf\bin;C:\dev\esp\.espressif\tools\riscv32-esp-elf\1.24.0.123_64eb9ff-8.4.0\riscv32-esp-elf\bin;C:\dev\esp\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:\dev\esp\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:\dev\esp\.espressif\tools\cmake\3.16.4\bin;C:\dev\esp\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin;C:\dev\esp\.espressif\tools\ninja\1.10.2;C:\dev\esp\.espressif\tools\idf-exe\1.0.1;C:\dev\esp\.espressif\tools\ccache\3.7;C:\dev\esp\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
Custom extra vars (idf.customExtraVars) {"OPENOCD_SCRIPTS":"C:\\dev\\esp\\.espressif\\tools\\openocd-esp32\\v0.10.0-esp32-20200709/openocd-esp32/share/openocd/scripts","IDF_CCACHE_ENABLE":"1"}
Virtual env Python Path (idf.pythonBinPath) python
Serial port (idf.port) COM5
OpenOCD Configs (idf.openOcdConfigs) interface/ftdi/esp32_devkitj_v1.cfg,board/esp32-wrover.cfg
ESP-IDF Tools Path (idf.toolsPath) ${env:IDF_TOOLS_PATH}
Git Path (idf.gitPath) git
-------------------------------------------------------- Configurations access -------------------------------------------------------------
Access to ESP-ADF Path (idf.espAdfPath) false
Access to ESP-IDF Path (idf.espIdfPath) false
Access to ESP-MDF Path (idf.espMdfPath) false
Access to ESP-IDF Custom extra paths
Access to C:\dev\esp\.espressif\tools\xtensa-esp32-elf\esp-2020r3-8.4.0\xtensa-esp32-elf\bin: false
Access to C:\dev\esp\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin: false
Access to C:\dev\esp\.espressif\tools\xtensa-esp32s3-elf\esp-2020r3-8.4.0\xtensa-esp32s3-elf\bin: false
Access to C:\dev\esp\.espressif\tools\riscv32-esp-elf\1.24.0.123_64eb9ff-8.4.0\riscv32-esp-elf\bin: false
Access to C:\dev\esp\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin: true
Access to C:\dev\esp\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin: true
Access to C:\dev\esp\.espressif\tools\cmake\3.16.4\bin: false
Access to C:\dev\esp\.espressif\tools\openocd-esp32\v0.10.0-esp32-20200709\openocd-esp32\bin: false
Access to C:\dev\esp\.espressif\tools\ninja\1.10.2: true
Access to C:\dev\esp\.espressif\tools\idf-exe\1.0.1: true
Access to C:\dev\esp\.espressif\tools\ccache\3.7: false
Access to C:\dev\esp\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64: true
Access to Virtual env Python Path (idf.pythonBinPath) false
Access to CMake in environment PATH undefined
Access to Ninja in environment PATH undefined
Access to ESP-IDF Tools Path (idf.toolsPath) false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version 2.35.1.windows.1
ESP-IDF version x.x
Python version 3.8.8
Python's pip version 22.0.2
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
alabaster version: 0.7.12
appdirs version: 1.4.4
Babel version: 2.9.1
certifi version: 2021.5.30
charset-normalizer version: 2.0.4
click version: 8.0.3
colorama version: 0.4.4
cycler version: 0.11.0
distlib version: 0.3.1
dnspython version: 1.16.0
docopt version: 0.6.2
docutils version: 0.16
fett version: 0.3.2
filelock version: 3.0.12
Flask version: 2.0.2
flask-sock version: 0.4.0
fonttools version: 4.28.2
h11 version: 0.13.0
idna version: 3.2
imagesize version: 1.2.0
itsdangerous version: 2.0.1
Jinja2 version: 3.0.1
joblib version: 1.1.0
kiwisolver version: 1.3.2
MarkupSafe version: 2.0.1
matplotlib version: 3.5.0
networkx version: 2.6.2
numpy version: 1.22.0rc1
packaging version: 21.0
Pillow version: 8.4.0
pip version: 22.0.2
Pygments version: 2.10.0
pymongo version: 3.11.4
pyparsing version: 2.4.7
python-dateutil version: 2.8.2
python-jsonrpc-server version: 0.3.4
pytz version: 2021.1
PyYAML version: 5.4.1
requests version: 2.26.0
ritune-plugin.operating-envelope version: 0.1.0
ritune-plugin.plant-performance version: 0.1.0
rstcheck version: 3.3.1
scikit-learn version: 1.0.1
scipy version: 1.7.3
setuptools version: 49.2.1
setuptools-scm version: 6.3.2
simple-websocket version: 0.5.0
six version: 1.15.0
snooty-lextudio version: 1.11.4.dev0
snowballstemmer version: 2.1.0
Sphinx version: 4.1.2
sphinx-copybutton version: 0.4.0
sphinx-fontawesome version: 0.0.6
sphinx-panels version: 0.6.0
sphinx-rtd-theme version: 1.0.0
sphinxcontrib-applehelp version: 1.0.2
sphinxcontrib-devhelp version: 1.0.2
sphinxcontrib-htmlhelp version: 2.0.0
sphinxcontrib-jsmath version: 1.0.1
sphinxcontrib-qthelp version: 1.0.3
sphinxcontrib-serializinghtml version: 1.1.5
threadpoolctl version: 3.0.0
toml version: 0.10.2
tomli version: 1.2.2
typing-extensions version: 3.10.0.2
urllib3 version: 1.26.6
virtualenv version: 20.4.3
watchdog version: 1.0.2
Werkzeug version: 2.0.2
wsproto version: 1.0.0
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Error
---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------
Check Extension Python packages Error
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages Error
----------------------------------------------------------- Latest error -----------------------------------------------------------------
Latest error at ENOENT: no such file or directory, open 'c:\dev\ritune\docs\.vscode\launch.json'
--------------------------------------------------------------------------------------------------------------------------------------------
I changed it to "idf.espIdfPathWin" and put the idf.notificationSilentMode: false - Option in there but still the same. The process does however open a new terminal window.
As you can see the values being used are not working. The idf.pythonBinPathWin
should be C:/dev/esp/.espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe
but is showing to be python
and idf.customExtraPaths
is using different tools than the one from your terminal output.
Seems your current vscode window is not picking the right values. Do you open your project as a workspace or a single folder ?
@brianignacio5 Thanks yes I can see that that is rather strange. Also, it doesn't seem to recognise ninja so no wonder it can't build. I'm always opening my project via workspace. However, I have no workspace settings for idf:
workspace.code-workspace:
{
"folders": [
{
"path": "."
}
],
"settings": {
"files.associations": {
"array": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"utility": "cpp",
"atomic": "cpp",
"bit": "cpp",
"chrono": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"ctime": "cpp",
"deque": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"random": "cpp",
"ratio": "cpp",
"semaphore": "cpp",
"stop_token": "cpp",
"thread": "cpp"
}
}
}
It's just that
Can you try this vsix installer ?
I made some changes with regards to configuration settings reading in #641
@MartyMcFlyInTheSky Did it fixed the issue ?
Closing this issue for lack of response, let me know if you have any issues.
I'm having the same issues that were reported. I can build, flash, monitor the project from the terminal, but none of the buttons work. I seemingly just get terminal intialization, which ends in 👍
_
Checking if Python packages are up to date... Constraint file: c:/users/jeriv/.espressif\espidf.constraints.v5.1.txt Requirement files: - C:\Users\jeriv\esp\esp-idf\tools\requirements\requirements.core.txt Python being checked: c:\users\jeriv.espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe Python requirements are satisfied.
Done! You can now compile ESP-IDF projects. Go to the project directory and run:
idf.py build
my settings.json has the following configuration settings:
"editor.minimap.enabled": false,
"windows.zoomlevel": 0,
"workbench.iconTheme": "vscode-icons",
"editor.fontsize": 22,
"editor.fontligatures": null,
"idf.gitPathWin": "C:/Users/jeriv/esp/tools/idf-git/2.43.0/cmd/git.exe",
"idf.espIdfPathWin": "C:\\Users\\jeriv\\esp\\esp-idf",
"idf.pythonBinPathWin": "c:\\users\\jeriv\\.espressif\\python_env\\idf5.1_py3.11_env\\Scripts\\python.exe",
"idf.toolsPathWin": "c:/users/jeriv/.espressif",
"idf.customExtraPaths": "c:\\users\\jeriv\\.espressif\\tools\\xtensa-esp-elf-gdb\\12.1_20221002\\xtensa-esp-elf-gdb\\bin;c:\\users\\jeriv\\.espressif\\tools\\riscv32-esp-elf-gdb\\12.1_20221002\\riscv32-esp-elf-gdb\\bin;c:\\users\\jeriv\\.espressif\\tools\\xtensa-esp32-elf\\esp-12.2.0_20230208\\xtensa-esp32-elf\\bin;c:\\users\\jeriv\\.espressif\\tools\\xtensa-esp32s2-elf\\esp-12.2.0_20230208\\xtensa-esp32s2-elf\\bin;c:\\users\\jeriv\\.espressif\\tools\\xtensa-esp32s3-elf\\esp-12.2.0_20230208\\xtensa-esp32s3-elf\\bin;c:\\users\\jeriv\\.espressif\\tools\\riscv32-esp-elf\\esp-12.2.0_20230208\\riscv32-esp-elf\\bin;c:\\users\\jeriv\\.espressif\\tools\\esp32ulp-elf\\2.35_20220830\\esp32ulp-elf\\bin;c:\\users\\jeriv\\.espressif\\tools\\cmake\\3.24.0\\bin;c:\\users\\jeriv\\.espressif\\tools\\openocd-esp32\\v0.12.0-esp32-20230921\\openocd-esp32\\bin;c:\\users\\jeriv\\.espressif\\tools\\ninja\\1.10.2;c:\\users\\jeriv\\.espressif\\tools\\idf-exe\\1.0.3;c:\\users\\jeriv\\.espressif\\tools\\ccache\\4.8\\ccache-4.8-windows-x86_64;c:\\users\\jeriv\\.espressif\\tools\\dfu-util\\0.11\\dfu-util-0.11-win64;c:\\users\\jeriv\\.espressif\\tools\\esp-rom-elfs\\20230320",
"idf.customExtraVars": {
"OPENOCD_SCRIPTS": "c:\\users\\jeriv\\.espressif\\tools\\openocd-esp32\\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts",
"IDF_CCACHE_ENABLE": "1",
"ESP_ROM_ELF_DIR": "c:\\users\\jeriv\\.espressif\\tools\\esp-rom-elfs\\20230320/"
},
"git.openRepositoryInParentFolders": "always",
"cmake.showOptionsMovedNotification": false,
}
I'm new to all this...where exactly are the buttons configured? Where do I look for the files you requested from @MartyMcFlyInTheSky? What is the doctor command?
Need to check the extension log output located in:
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
Please review the troubleshooting section.
Hi, do you guys managed to solve this problem? I'm struggling with the same thing. My settings:"
{
"workbench.colorTheme": "Monokai",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 15,
"security.workspace.trust.untrustedFiles": "open",
"svelte.enable-ts-plugin": true,
"window.zoomLevel": 1,
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": false,
"scminput": false
},
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [
"/k",
"C:/Espressif/frameworks/esp-idf-v5.2.1/export.bat esp-idf-95fc7f73a381402d241e04a22ce81be3"
],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
}
},
"cmake.showOptionsMovedNotification": false,
"git.openRepositoryInParentFolders": "never",
"idf.espIdfPathWin": "C:/Espressif/frameworks/esp-idf-v5.2.1/",
"idf.pythonBinPathWin": "C:/Espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe",
"idf.toolsPathWin": "C:\\Espressif",
"idf.customExtraPaths": "C:\\Espressif\\tools\\xtensa-esp-elf-gdb\\12.1_20231023\\xtensa-esp-elf-gdb\\bin;C:\\Espressif\\tools\\riscv32-esp-elf-gdb\\12.1_20231023\\riscv32-esp-elf-gdb\\bin;C:\\Espressif\\tools\\xtensa-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin;C:\\Espressif\\tools\\riscv32-esp-elf\\esp-13.2.0_20230928\\riscv32-esp-elf\\bin;C:\\Espressif\\tools\\esp32ulp-elf\\2.35_20220830\\esp32ulp-elf\\bin;C:\\Espressif\\tools\\cmake\\3.24.0\\bin;C:\\Espressif\\tools\\openocd-esp32\\v0.12.0-esp32-20230921\\openocd-esp32\\bin;C:\\Espressif\\tools\\ninja\\1.11.1;C:\\Espressif\\tools\\idf-exe\\1.0.3;C:\\Espressif\\tools\\ccache\\4.8\\ccache-4.8-windows-x86_64;C:\\Espressif\\tools\\dfu-util\\0.11\\dfu-util-0.11-win64;C:\\Espressif\\tools\\esp-rom-elfs\\20230320",
"idf.customExtraVars": {
"OPENOCD_SCRIPTS": "C:\\Espressif\\tools\\openocd-esp32\\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts",
"IDF_CCACHE_ENABLE": "1",
"ESP_ROM_ELF_DIR": "C:\\Espressif\\tools\\esp-rom-elfs\\20230320/"
},
"idf.gitPathWin": "C:/Espressif/tools/idf-git/2.43.0/cmd/git.exe",
"idf.ninjaArgs": []
}
The logs:
{"message":"Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n\tat \\dist\\extension.js:2:1397142\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:517:28)\n\tat maybeClose (node:internal/child_process:1098:16)\n\tat ChildProcess._handle.onexit (node:internal/child_process:303:5)","level":"error","timestamp":"2024-05-05T19:44:50.557Z"}
{"message":"Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n at \\dist\\extension.js:2:1397142\n at ChildProcess.exithandler (node:child_process:415:7)\n at ChildProcess.emit (node:events:517:28)\n at maybeClose (node:internal/child_process:1098:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:303:5)","level":"error","timestamp":"2024-05-05T19:44:57.770Z"}
{"message":"Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n at \\dist\\extension.js:2:1397142\n at ChildProcess.exithandler (node:child_process:415:7)\n at ChildProcess.emit (node:events:517:28)\n at maybeClose (node:internal/child_process:1098:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:303:5)","level":"error","timestamp":"2024-05-05T19:44:58.383Z"}
{"message":"Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:40)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n at \\dist\\extension.js:2:1397142\n at ChildProcess.exithandler (node:child_process:415:7)\n at ChildProcess.emit (node:events:517:28)\n at maybeClose (node:internal/child_process:1098:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:303:5)","level":"error","timestamp":"2024-05-05T19:45:04.468Z"}
Doctor command:
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.22631
System environment variable IDF_PYTHON_ENV_PATH
undefined
System environment variable PATH
C:\Python\Scripts\;C:\Python\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\ProgramData\chocolatey;C:\Program Files\LLVM\bin;C:\Program Files\dotnet\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\MATLAB\R2023b\runtime\win64;C:\Program Files\MATLAB\R2023b\bin;C:\MinGW\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;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)\Windows Kits\8.1\Windows Performance Toolkit\;C:<HOMEPATH>\.cargo\bin;C:<HOMEPATH>\AppData\Local\Microsoft\WindowsApps;C:<HOMEPATH>\AppData\Local\Programs\Microsoft VS Code\bin;C:<HOMEPATH>\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin;C:<HOMEPATH>\AppData\Local\Programs\oh-my-posh\bin;C:\Program Files\JetBrains\RustRover 232.9921.46\bin;;C:\MinGW\bin;
System environment variable PYTHON
undefined
Visual Studio Code version 1.89.0
Visual Studio Code language en
Visual Studio Code shell C:\Windows\System32\cmd.exe
ESP-IDF Extension version 1.7.1
Workspace folder c:\dev\ESP32\hello_world
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) C:/Espressif/frameworks/esp-idf-v5.2.1/
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH}
ESP-HomeKit-SDK Path (idf.espHomeKitSdkPath) ${env:HOMEKIT_PATH}
Custom extra paths (idf.customExtraPaths) C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20231023\xtensa-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20231023\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin;C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20230928\riscv32-esp-elf\bin;C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin;C:\Espressif\tools\cmake\3.24.0\bin;C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin;C:\Espressif\tools\ninja\1.11.1;C:\Espressif\tools\idf-exe\1.0.3;C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64;C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:\Espressif\tools\esp-rom-elfs\20230320
Custom extra vars (idf.customExtraVars)
OPENOCD_SCRIPTS: C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts
IDF_CCACHE_ENABLE: 1
ESP_ROM_ELF_DIR: C:\Espressif\tools\esp-rom-elfs\20230320/
Virtual env Python Path (idf.pythonBinPath) C:/Espressif/python_env/idf5.2_py3.11_env/Scripts/python.exe
Serial port (idf.port) COM1
OpenOCD Configs (idf.openOcdConfigs) interface/ftdi/esp32_devkitj_v1.cfg,board/esp32-wrover.cfg
ESP-IDF Tools Path (idf.toolsPath) C:\Espressif
Git Path (idf.gitPath) C:/Espressif/tools/idf-git/2.43.0/cmd/git.exe
Notification Mode (idf.notificationMode) All
-------------------------------------------------------- Configurations access -------------------------------------------------------------
Access to ESP-ADF Path (idf.espAdfPath) false
Access to ESP-IDF Path (idf.espIdfPath) true
Access to ESP-MDF Path (idf.espMdfPath) false
Access to ESP-Matter Path (idf.espMatterPath) false
Access to ESP-HomeKit Path (idf.espHomeKitSdkPath) false
Access to ESP-IDF Custom extra paths
Access to C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20231023\xtensa-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20231023\riscv32-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20230928\riscv32-esp-elf\bin: true
Access to C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: true
Access to C:\Espressif\tools\cmake\3.24.0\bin: true
Access to C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin: true
Access to C:\Espressif\tools\ninja\1.11.1: true
Access to C:\Espressif\tools\idf-exe\1.0.3: true
Access to C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: true
Access to C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: true
Access to C:\Espressif\tools\esp-rom-elfs\20230320: 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
-------------------------------------------------------- Configurations has spaces -------------------------------------------------------------
Spaces in system environment Path true
Spaces in ESP-ADF Path (idf.espAdfPath) false
Spaces in ESP-IDF Path (idf.espIdfPath) false
Spaces in ESP-MDF Path (idf.espMdfPath) false
Spaces in ESP-Matter Path (idf.espMatterPath) false
Spaces in ESP-HomeKit-SDK Path (idf.espHomeKitSdkPath) false
Spaces in ESP-IDF Custom extra paths
Spaces in C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20231023\xtensa-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20231023\riscv32-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20230928\riscv32-esp-elf\bin: false
Spaces in C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin: false
Spaces in C:\Espressif\tools\cmake\3.24.0\bin: false
Spaces in C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin: false
Spaces in C:\Espressif\tools\ninja\1.11.1: false
Spaces in C:\Espressif\tools\idf-exe\1.0.3: false
Spaces in C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: false
Spaces in C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: false
Spaces in C:\Espressif\tools\esp-rom-elfs\20230320: false
Spaces in Virtual env Python Path (idf.pythonBinPath) false
Spaces in ESP-IDF Tools Path (idf.toolsPath) false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version 2.43.0.windows.1
ESP-IDF version 5.2.1
Python version 3.11.2
Python's pip version 24.0
-------------------------------------------------- Project configuration settings ----------------------------------------------------------
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
bitarray version: 2.9.2
bitstring version: 4.2.1
CacheControl version: 0.14.0
certifi version: 2024.2.2
cffi version: 1.16.0
charset-normalizer version: 3.3.2
click version: 8.0.4
colorama version: 0.4.6
construct version: 2.10.70
contextlib2 version: 21.6.0
cryptography version: 41.0.7
ecdsa version: 0.19.0
esp-coredump version: 1.11.0
esp-debug-backend version: 1.0.3
esp-idf-kconfig version: 1.4.2
esp-idf-monitor version: 1.4.0
esp-idf-panic-decoder version: 1.0.1
esp-idf-size version: 1.3.0
esptool version: 4.7.0
filelock version: 3.14.0
freertos-gdb version: 1.0.3
idf-component-manager version: 1.5.2
idna version: 3.7
intelhex version: 2.3.0
kconfiglib version: 14.1.0
markdown-it-py version: 3.0.0
mdurl version: 0.1.2
msgpack version: 1.0.8
packaging version: 24.0
pip version: 24.0
pyclang version: 0.4.2
pycparser version: 2.22
pyelftools version: 0.31
pygdbmi version: 0.9.0.2
Pygments version: 2.18.0
pyparsing version: 3.1.2
pyserial version: 3.5
pywin32 version: 306
PyYAML version: 6.0.1
reedsolo version: 1.7.0
requests version: 2.31.0
requests-file version: 1.5.1
requests-toolbelt version: 1.0.0
rich version: 13.7.1
schema version: 0.7.7
setuptools version: 69.5.1
six version: 1.16.0
tqdm version: 4.66.4
urllib3 version: 1.26.18
windows-curses version: 2.3.2
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Python requirements are satisfied.
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages Python requirements are satisfied.
---------------------------------------------------- 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": "${config:idf.toolsPathWin}\\tools\\xtensa-esp-elf\\esp-13.2.0_20230928\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"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
}
--------------------------------------------------------------------------------------------------------------------------------------------
i don't know what to do with that. The command idf.py build works perfectly fine but when i try to build via build button i only get this:
Checking Python compatibility
Setting IDF_PATH: C:\Espressif\frameworks\esp-idf-v5.2.1
Adding ESP-IDF tools to PATH...
C:\Espressif\tools\xtensa-esp-elf-gdb\12.1_20231023\xtensa-esp-elf-gdb\bin
C:\Espressif\tools\riscv32-esp-elf-gdb\12.1_20231023\riscv32-esp-elf-gdb\bin
C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin
C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20230928\riscv32-esp-elf\bin
C:\Espressif\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
C:\Espressif\tools\cmake\3.24.0\bin
C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20230921\openocd-esp32\bin
C:\Espressif\tools\ninja\1.11.1\
C:\Espressif\tools\idf-exe\1.0.3\
C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
C:\Espressif\python_env\idf5.2_py3.11_env\Scripts
C:\Espressif\frameworks\esp-idf-v5.2.1\tools
Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.2.txt
Requirement files:
- C:\Espressif\frameworks\esp-idf-v5.2.1\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.2_py3.11_env\Scripts\python.exe
Python requirements are satisfied.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
C:\dev\ESP32\hello_world>
The build terminal don't show up. I will be grateful for any advice.
I feel the issue is that you configured your terminal terminal.integrated.profiles.windows
to run the export.sh so any task in the extension that uses a shell command (like the build task) will not work.
Hi guys
My VS Code Plugin buttons do not work properly. I have to use idf.py from the command line all the time.
When I click on "build" for example, it just displays the window on the top left, indicating that it is building. But this task just runs indefinitely without ever accomplishing something. The other buttons behave like this as well. The only one that is working i suppose is the "select device port" option, which let's me specify on what COM port i want to flash.
I'm using Win10 64bit if that matters.