-
Notifications
You must be signed in to change notification settings - Fork 315
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
Can't build with extension 1.8. Error: "CMake Error: Could not create named generator =Ninja" (VSC-1450) #1260
Comments
Hi @rtheil-growlink thank your for your bug report. We've found out this is true from CMake < 3.20 but if you notice after ESP-IDF v4.4 we started using CMake higher than 3.20. We usually test with ESP-IDF version currently in maintenance support life and 4.3.7 is already out the maintenance support. I'll provide a fix but consider that we may provide less and less support for older ESP-IDF versions in the future. |
Thanks @brianignacio5. Unfortunately, the last time I attempted to test 4.4.x on our current setup, we encountered a lot of issues. 4.3.7 is rock solid stable, so being forced to move to a less stable version of the IDF just isn't in the cards for us at this time. We have literally thousands of production devices using firmware built on 4.3.x. It may be worth noting that v4.3.7 was released just 6 months ago. Should I update CMake? Is that specific version installed as part of the IDF? I don't have any other projects that have specific CMake version requirements, so I'm open to other suggestions. Thanks for the fix, as we are forced to continue LTS for firmware built on 4.3.x. Hoping that with the easy switch between IDF versions, I can take the time to go back and attempt an upgrade to 4.4.x in the future. Out of curiosity, why doesn't the build option just run idf.py build, since that seems to work just fine? Seems like the plugin is doing something completely different rather than what's well established. |
Completely understand @rtheil-growlink . We will work on fixing this. We used these = in order to work the issue of whitespaces in project path but as you fix something you break something. Apologies for this. If you don't mind you could try using a newer version of CMake by updating the |
Hi @rtheil-growlink, L.E: Ignore this message, the .vsix I've sent does not fix the issue. I'm currently working on a fix I've created a fix for this issue, can you try installing the extension using this esp-idf-extension.vsix.zip? |
Hi @rtheil-growlink, When you have a moment, please test the latest version of the extension available at: https://nightly.link/espressif/vscode-esp-idf-extension/actions/artifacts/1765446112.zip Your feedback on this new version would be greatly appreciated. If you encounter any issues or have any questions, please don't hesitate to let me know. Thank you for your patience and cooperation in helping us improve the extension. |
Thanks! I'll try to get to this today and give it a test, and will provide feedback. Will also hopefully be using this new functionality to test out 4.4.x again on our firmware and see if we can make it work. |
ok, just ran through some testing, and it took a few extra steps to get it back to normal (delete build dir, restart vs code), and now it's building fine with 4.3.7. Thank you! A couple issues though. One may not be related to the plugin, but I'm unsure. Maybe it's a CMAKE thing.
edit: After a bit of experimenting, I've found that if I clean everything, delete build dir, and run "ccache -C" then run idf.py build, it builds fine. But if I try to run a clean build using the command palette, it always fails. If I build with idf.py first, then make changes and build with command palette, that also works. Strangely identical to the original issue, except different errors. |
About (2) IDF 4.4.8, it shouldn't be related to CMake itself. In this case seems you are using system CMake or different version, in IDF the make used is 3.23.1 as shown in https://github.com/espressif/esp-idf/blob/v4.4.8/tools/tools.json#L650 About (1) the switching, there is an output for users regarding flashing, but we will remove the auto switch to output. |
The only version of cmake on the machine I'm testing on, is the one installed by the espressif vscode plugin. Seems like when I installed 4.4.8, it should have downloaded and installed a newer version of cmake as well. |
Just wiped out the .espressif and esp-idf folders and started from scratch with v4.4.8, so that fixes the cmake version issue. Still had the build issues, so started attacking from other angles. I have figured out a way to get past the build issues in our project with v4.4.8, but it definitely seems like the espressif plugin needs a way to handle updates to tools like cmake. Thanks for all the help, guys! |
Hmm... let's go through this step by step:
If you still encounter issues with changing the CMake versions after trying these steps, please let me know. I'll do further testing and possibly open a new issue for it. We want to keep this separate from the initial issue that has been resolved. |
I do not have a system-wide version of cmake installed. The only version of cmake installed, was what was installed by the espressif plugin. There is no cmake in the system path. If I type cmake from a regular old command prompt, it's not found. cmake only works within an ESP-IDF command prompt from within vs code. I renamed the 3.16.4 folder and then it was not found. Seems like whatever the IDF prompt path has set, was always set to the old version, and the plugin, on installation of the new cmake, is not updating the path to the new cmake version. I did swap back and forth between IDF versions seeing if that made any difference. I even closed IDF command prompts between changes, and at one point even restarted vs code afterwards to see if maybe the IDF command prompt just didn't have the newest path. I redid this machine maybe 6 months ago, so when I installed the IDF, it installed cmake 3.16.4, likely because I only installed IDF 4.3.7. When I installed 4.4.8 first today, it installed cmake 3.23.1. I agree that this is definitely a separate issue from the original one. I have no problem copying this stuff and creating a new issue to help get this one fixed for future stuff. But I think this problem is as simple as when installing a new version of cmake, the path to cmake is not being updated. |
The issue here is that ESP-IDF Tools are set in a configuration setting called I imagine that the version you installed before indeed referred to 3.16.4 but a newer version release would have update the CMake itself. |
OS
Windows
Operating System version
Windows 10
Visual Studio Code version
1.9.1
ESP-IDF version
4.3.7
Python version
3.8.7
Doctor command output
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.19045
System environment variable IDF_PYTHON_ENV_PATH
undefined
System environment variable PATH
C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\dotnet;C:\AppData\Local\particle\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\dotnet;C:\AppData\Local\Microsoft\WindowsApps;;C:\AppData\Local\Programs\Microsoft VS Code\bin;C:.dotnet\tools
System environment variable PYTHON
undefined
Visual Studio Code version 1.91.1
Visual Studio Code language en
Visual Studio Code shell C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
ESP-IDF Extension version 1.8.0
Workspace folder c:\repos\espfw\controller-firmware
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) C:\esp\esp-idf
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-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin;C:.espressif\tools\xtensa-esp32s2-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s2-elf\bin;C:.espressif\tools\xtensa-esp32s3-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s3-elf\bin;C:.espressif\tools\riscv32-esp-elf\esp-2021r2-patch3-8.4.0\riscv32-esp-elf\bin;C:.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin;C:.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin;C:.espressif\tools\cmake\3.16.4\bin;C:.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin;C:.espressif\tools\ninja\1.10.2;C:.espressif\tools\idf-exe\1.0.1;C:.espressif\tools\ccache\3.7;C:.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
Custom extra vars (idf.customExtraVars)
OPENOCD_SCRIPTS: C:.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706/openocd-esp32/share/openocd/scripts
IDF_CCACHE_ENABLE: 1
Virtual env Python Path (idf.pythonBinPath) C:.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe
Serial port (idf.port) COM6
OpenOCD Configs (idf.openOcdConfigs) interface/ftdi/esp32_devkitj_v1.cfg,target/esp32.cfg
ESP-IDF Tools Path (idf.toolsPath) C:.espressif
Git Path (idf.gitPath) \Git\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-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin: true
Access to C:.espressif\tools\xtensa-esp32s2-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s2-elf\bin: true
Access to C:.espressif\tools\xtensa-esp32s3-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s3-elf\bin: true
Access to C:.espressif\tools\riscv32-esp-elf\esp-2021r2-patch3-8.4.0\riscv32-esp-elf\bin: true
Access to C:.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin: true
Access to C:.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin: true
Access to C:.espressif\tools\cmake\3.16.4\bin: true
Access to C:.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin: true
Access to C:.espressif\tools\ninja\1.10.2: true
Access to C:.espressif\tools\idf-exe\1.0.1: true
Access to C:.espressif\tools\ccache\3.7: true
Access to C:.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
-------------------------------------------------------- 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-esp32-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32-elf\bin: false
Spaces in C:.espressif\tools\xtensa-esp32s2-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s2-elf\bin: false
Spaces in C:.espressif\tools\xtensa-esp32s3-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s3-elf\bin: false
Spaces in C:.espressif\tools\riscv32-esp-elf\esp-2021r2-patch3-8.4.0\riscv32-esp-elf\bin: false
Spaces in C:.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin: false
Spaces in C:.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin: false
Spaces in C:.espressif\tools\cmake\3.16.4\bin: false
Spaces in C:.espressif\tools\openocd-esp32\v0.11.0-esp32-20220706\openocd-esp32\bin: false
Spaces in C:.espressif\tools\ninja\1.10.2: false
Spaces in C:.espressif\tools\idf-exe\1.0.1: false
Spaces in C:.espressif\tools\ccache\3.7: false
Spaces in C:.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64: false
Spaces in Virtual env Python Path (idf.pythonBinPath) false
Spaces in ESP-IDF Tools Path (idf.toolsPath) false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version undefined
ESP-IDF version undefined
Python version undefined
Python's pip version undefined
-------------------------------------------------- Project configuration settings ----------------------------------------------------------
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages undefined
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages undefined
----------------------------------------------------------- Latest error -----------------------------------------------------------------
{
"errno": -4058,
"code": "ENOENT",
"syscall": "spawn \Git\cmd\git.exe",
"path": "\Git\cmd\git.exe",
"spawnargs": [
"--version"
],
"cmd": "\Git\cmd\git.exe --version",
"vslsStack": [
{},
{},
{}
]
}
----------------------------------------------------------- Logfile -----------------------------------------------------------------
{"message":"Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)\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.11.0-esp32-20220706 (2022-07-06-15:48)\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:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:514:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:514:28)\n\tat Pipe. (node:net:337:12)","level":"error","timestamp":"2024-07-23T14:28:42.078Z"}
{"message":"Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)\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.11.0-esp32-20220706 (2022-07-06-15:48)\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:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:514:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:514:28)\n\tat Pipe. (node:net:337:12)","level":"error","timestamp":"2024-07-23T14:28:43.259Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:163:20722)\n\tat l.y (\out\vs\workbench\api\node\extensionHostProcess.js:82:664)\n\tat l.fire (\out\vs\workbench\api\node\extensionHostProcess.js:82:881)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:156:57296)","level":"error","timestamp":"2024-07-23T14:57:29.923Z"}
{"message":"Cannot access filePath: c:\repos\espfw\controller-firmware\build\CMakeCache.txt","stack":"Error: ENOENT: no such file or directory, access 'c:\repos\espfw\controller-firmware\build\CMakeCache.txt'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1855029","level":"error","timestamp":"2024-07-23T14:57:37.663Z"}
{"user":true,"level":"warn","message":"There is no CMakeCache.txt. Please try to delete the build directory manually.","timestamp":"2024-07-23T14:57:37.663Z"}
{"message":"Cannot access filePath: c:\repos\espfw\controller-firmware\build\CMakeCache.txt","stack":"Error: ENOENT: no such file or directory, access 'c:\repos\espfw\controller-firmware\build\CMakeCache.txt'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1855029","level":"error","timestamp":"2024-07-23T14:57:38.842Z"}
{"user":true,"level":"warn","message":"There is no CMakeCache.txt. Please try to delete the build directory manually.","timestamp":"2024-07-23T14:57:38.842Z"}
{"message":"Cannot access filePath: c:\repos\espfw\controller-firmware\build\CMakeCache.txt","stack":"Error: ENOENT: no such file or directory, access 'c:\repos\espfw\controller-firmware\build\CMakeCache.txt'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1855029","level":"error","timestamp":"2024-07-23T14:57:39.605Z"}
{"user":true,"level":"warn","message":"There is no CMakeCache.txt. Please try to delete the build directory manually.","timestamp":"2024-07-23T14:57:39.605Z"}
{"message":"Cannot access filePath: c:\repos\espfw\controller-firmware\build\CMakeCache.txt","stack":"Error: ENOENT: no such file or directory, access 'c:\repos\espfw\controller-firmware\build\CMakeCache.txt'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1855029","level":"error","timestamp":"2024-07-23T14:57:39.899Z"}
{"user":true,"level":"warn","message":"There is no CMakeCache.txt. Please try to delete the build directory manually.","timestamp":"2024-07-23T14:57:39.900Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:163:20722)\n\tat l.y (\out\vs\workbench\api\node\extensionHostProcess.js:82:664)\n\tat l.fire (\out\vs\workbench\api\node\extensionHostProcess.js:82:881)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:156:57296)","level":"error","timestamp":"2024-07-23T14:57:44.261Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:163:20722)\n\tat l.y (\out\vs\workbench\api\node\extensionHostProcess.js:82:664)\n\tat l.fire (\out\vs\workbench\api\node\extensionHostProcess.js:82:881)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:156:57296)","level":"error","timestamp":"2024-07-23T14:58:08.048Z"}
{"message":"Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)\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.11.0-esp32-20220706 (2022-07-06-15:48)\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:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:514:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:514:28)\n\tat Pipe. (node:net:337:12)","level":"error","timestamp":"2024-07-23T15:00:03.630Z"}
{"message":"Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)\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.11.0-esp32-20220706 (2022-07-06-15:48)\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:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:514:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:514:28)\n\tat Pipe. (node:net:337:12)","level":"error","timestamp":"2024-07-23T15:00:04.995Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:02:53.210Z"}
{"message":"Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)\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.11.0-esp32-20220706 (2022-07-06-15:48)\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:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:514:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:514:28)\n\tat Pipe. (node:net:337:12)","level":"error","timestamp":"2024-07-23T15:05:18.528Z"}
{"message":"Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)\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.11.0-esp32-20220706 (2022-07-06-15:48)\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:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:514:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:514:28)\n\tat Pipe. (node:net:337:12)","level":"error","timestamp":"2024-07-23T15:05:20.496Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:06:08.772Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:06:27.873Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:06:39.527Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:11:50.695Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:12:11.452Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:12:13.585Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:52:55.855Z"}
{"user":true,"message":"Something went wrong while trying to build the project","stack":"Error: Task ESP-IDF Compile exited with code 1\n\tat \dist\extension.js:2:1590016\n\tat n.value (\out\vs\workbench\api\node\extensionHostProcess.js:164:20994)\n\tat r.B (\out\vs\workbench\api\node\extensionHostProcess.js:83:737)\n\tat r.fire (\out\vs\workbench\api\node\extensionHostProcess.js:83:954)\n\tat n.$onDidEndTaskProcess (\out\vs\workbench\api\node\extensionHostProcess.js:157:57378)","level":"error","timestamp":"2024-07-23T15:53:07.471Z"}
{"message":"Cannot access filePath: ${env:ADF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RickyTheil\AppData\Local\Programs\Microsoft VS Code\${env:ADF_PATH}'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1685466\n\tat Fs (\dist\extension.js:2:1686534)\n\tat async \dist\extension.js:2:1902761","level":"error","timestamp":"2024-07-23T15:59:56.456Z"}
{"message":"Cannot access filePath: ${env:MDF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RickyTheil\AppData\Local\Programs\Microsoft VS Code\${env:MDF_PATH}'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1685644\n\tat Fs (\dist\extension.js:2:1686534)\n\tat async \dist\extension.js:2:1902761","level":"error","timestamp":"2024-07-23T15:59:56.457Z"}
{"message":"Cannot access filePath: ${env:ESP_MATTER_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RickyTheil\AppData\Local\Programs\Microsoft VS Code\${env:ESP_MATTER_PATH}'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1685736\n\tat Fs (\dist\extension.js:2:1686534)\n\tat async \dist\extension.js:2:1902761","level":"error","timestamp":"2024-07-23T15:59:56.457Z"}
{"message":"Cannot access filePath: ${env:HOMEKIT_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\RickyTheil\AppData\Local\Programs\Microsoft VS Code\${env:HOMEKIT_PATH}'\n\tat Object.access (node:internal/fs/sync:42:11)\n\tat Object.accessSync (node:fs:248:10)\n\tat t.accessSync (node:electron/js2c/node_init:2:8888)\n\tat Se (\dist\extension.js:2:1461757)\n\tat \dist\extension.js:2:1685832\n\tat Fs (\dist\extension.js:2:1686534)\n\tat async \dist\extension.js:2:1902761","level":"error","timestamp":"2024-07-23T15:59:56.457Z"}
{"message":"spawn \Git\cmd\git.exe ENOENT","stack":"Error: spawn \Git\cmd\git.exe ENOENT\n\tat ChildProcess._handle.onexit (node:internal/child_process:286:19)\n\tat onErrorNT (node:internal/child_process:484:16)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:82:21)","level":"error","timestamp":"2024-07-23T15:59:56.459Z"}
{"user":true,"level":"warn","message":"Extension configuration report has been copied to clipboard with errors","timestamp":"2024-07-23T15:59:56.459Z"}
Extension
No response
Description
Can no longer build from scratch after build directory is deleted. Error is "CMake Error: Could not create named generator =Ninja". This is when using the Build option from the vs code command palette.
This is because the plugin is now adding a = sign between the -G option and the "Ninja" value
If I go into an ESP-IDF terminal and run idf.py build, it will build and then I can use the command palette to build. This problem only started when the extension was updated to 1.8. I purposefully no longer update this tool because these kinds of minor problems are all too common, but in this case vs code auto updated it. What's strange is that I downgraded the extension to 1.7.x and the problem still exists.
Even if I try to run that command in an idf terminal and fix the -G option, it still doesn't work
This is because the -G, -B and -S options don't use the = sign and never have
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: