espressif / vscode-esp-idf-extension

Visual Studio Code extension for ESP-IDF projects
https://docs.espressif.com/projects/vscode-esp-idf-extension/en/latest/
Apache License 2.0
1.08k stars 307 forks source link

Menuconfig Crash (VSC-876) #688

Closed baldhead69 closed 2 years ago

baldhead69 commented 2 years ago

Hi,

I'm trying to install a new version of esp-idf and all tools from scratch(i deleted all old installation).

The menuconfig dont open. In annex follow a picture and log.

esp-idf version: v5.0-dev-2326-g36b83fcb98

OS: Windows 10 Pro Version 21H2 SO Compilation 19044.1586

"ESP-IDF VS Code Extension" version: 1.4.0

Visual Studio Code Version: Version: 1.66.0 (user setup) Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5 Date: 2022-03-30T05:50:14.623Z Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.13.0 V8: 9.8.177.11-electron.0 OS: Windows_NT x64 10.0.19044

Menuconfig_ERROR

esp_idf_vsc_ext.log

baldhead69 commented 2 years ago

Some suggestion ?

baldhead69 commented 2 years ago

it looks like the path is wrong.

My computer path: "C:\.espressif\python_env\idf5.0_py3.8_env\Scripts"

when i installed the tools i used "advanced mode" and specified another path to save the files.

it looks like the installation didn't adjust to the new path.

how can i change this path ?

brianignacio5 commented 2 years ago

Settings can be saved in different locations as specified in the working with multiple projects documentation. Make sure that you project's .vscode/settings.json is not overriding settings in User or Workspace settings.

The ESP-IDF: Select where to save configuration settings or the idf.saveScope setting specifies where the Setup Wizard settings are saved.

baldhead69 commented 2 years ago

@brianignacio5,

I installed the "ESP-IDF VS Code Extension" in another computer and same problem. The problem is in "ESP-IDF VS Code Extension" installation i believe. The program compiles correctly in vsc, the problem is in opening the menuconfig in vsc. Using windows command prompt, both "normal" and espressif(ESP-IDF 4.4 CMD), i can't open menuconfig too.

Before put git in win11 environment variable ( ie: "ESP-IDF VS Code Extension" installation without any changes from me ): esp_idf_vsc_ext_before_put_git_in_environment_variable.log

After puting git in win11 environment variable: After puting git in environment variable

esp_idf_vsc_ext.log

idf py

baldhead69 commented 2 years ago

Some suggestion ?

i'm stuck on it.

baldhead69 commented 2 years ago

I had to change the windows registry and still nothing.

At least i managed to change from "IDF_TOOLS_PATH=C:\ESP-IDF\TOOLS" to "IDF_TOOLS_PATH=c:\.espressif".

esp_idf_vsc_ext.log

baldhead69 commented 2 years ago

Hi folks,

For those who have the same problem and are still waiting for an answer from espressif.

For windows users only(i installed in win10 in one computer and in win11 in another computer):

Fresh installation:

Delete the "c:\.espressif" folder. Delete the "c:\esp-idf" folder. Delete the visual studio code and all folders like that: https://debug.to/1074/how-to-uninstall-vs-code-completely

In environment variables:

Set in "user variables": IDF_PATH c:\esp-idf IDF_TOOLS_PATH c:\.espressif

Set in "system variables": in "Path" put: c:\.espressif\tools\idf-git\2.30.1\cmd c:\.espressif\python_env\idf5.0_py3.8_env\Scripts

Install "visual studio code" Install "ESP-IDF VS Code Extension" inside visual studio code Run"ESP-IDF VS Code Extension" and install: Install esp idf in c:\esp-idf Install tools in c:\.espressif

Open cmd: Run: cd c:\esp-idf install.bat

OBS: I installed master branch.

I think that's it folks.

Thanks for the help espressif team :(

brianignacio5 commented 2 years ago

Sorry for late reply @baldhead69 but based on the log alone it seems you had a missing python package in the virtual environment being used.

If you look at the troubleshooting section using the ESP-IDF: Doctor command will show you if there is any error with python packages. By running the Install ESP-IDF Python Packages you could have installed these python packages in the configured python virtual environment.

baldhead69 commented 2 years ago

The program compile, but now......... The following Python requirements are not satisfied: jinja2<3.1

Out of nowhere the monitor stopped working:

{"message":"non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n","stack":"Error: non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:4499)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-12T20:35:38.381Z"}
{"message":"Cannot access filePath: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe","stack":"Error: non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:4499)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-12T20:35:38.382Z"}

monitor_bug

Out of nowhere the menuconfig stopped working too:

{"message":"The following Python requirements are not satisfied:\r\r\njinja2<3.1\r\r\nTo install the missing packages, please run \"install.bat\"\r\r\nDiagnostic information:\r\r\n    IDF_PYTHON_ENV_PATH: c:\\.espressif\\python_env\\idf5.0_py3.8_env\r\r\n    Python interpreter used: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\nSkipping the download of C:\\Users\\02373893983\\.espressif\\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.\r\r\nConstraint file: C:\\Users\\02373893983\\.espressif\\espidf.constraints.v5.0.txt\r\r\nRequirement files:\r\r\n - c:\\esp-idf\\tools\\requirements\\requirements.core.txt\r\r\nPython being checked: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\n\r\nESP-IDF v5.0-dev-2393-gfaed2a44aa\r\n","stack":"Error: The following Python requirements are not satisfied:\r\r\njinja2<3.1\r\r\nTo install the missing packages, please run \"install.bat\"\r\r\nDiagnostic information:\r\r\n    IDF_PYTHON_ENV_PATH: c:\\.espressif\\python_env\\idf5.0_py3.8_env\r\r\n    Python interpreter used: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\nSkipping the download of C:\\Users\\02373893983\\.espressif\\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.\r\r\nConstraint file: C:\\Users\\02373893983\\.espressif\\espidf.constraints.v5.0.txt\r\r\nRequirement files:\r\r\n - c:\\esp-idf\\tools\\requirements\\requirements.core.txt\r\r\nPython being checked: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\n\r\nESP-IDF v5.0-dev-2393-gfaed2a44aa\r\n\n\tat m.printError (\\dist\\extension.js:1:30357)\n\tat Socket.<anonymous> (\\dist\\extension.js:1:29786)\n\tat Socket.emit (node:events:390:28)\n\tat addChunk (node:internal/streams/readable:315:12)\n\tat readableAddChunk (node:internal/streams/readable:289:9)\n\tat Socket.Readable.push (node:internal/streams/readable:228:10)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-04-12T20:44:47.394Z"}
{"message":"SDK Configuration editor confserver process exited with code: 1","stack":"Error: SDK Configuration editor confserver process exited with code: 1\n\tat m.printError (\\dist\\extension.js:1:30357)\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:29963)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-12T20:44:47.404Z"}

I already run c:\esp-idf>install.bat and after this export.bat but the problem persists.

This is annoying.

baldhead69 commented 2 years ago

looks like it's a GDBGUI error.

A compatible Socket.IO should be used. See https://github.com/miguelgrinberg/python-socketio/issues/578 python-socketio<5 jinja2<3.1 itsdangerous<2.1

espidf.constraints.v5.0.txt

baldhead69 commented 2 years ago

@igrr or @brianignacio5 or someone,

Could anyone help me with this issue ?

baldhead69 commented 2 years ago

I didn't do anything to make this happen.

It looks like something is updating in the background.

Maybe windows or visual studio code or esp-idf. I dont know.

brianignacio5 commented 2 years ago

It might be an issue with your virtualenv python packages . Some changes in the constraint file is not working correctly for the existing python_env.You could also try deleting the constraint file in the .espressif directory.

Could you try deleting the virtual env folder (C:.espressif\python_env\idf5.0_py3.8_env) and run the setup wizard again ?

baldhead69 commented 2 years ago

Hi @brianignacio5,

I'm just a mere user of the tool, i don't understand anything about these phyton environments and tools. This visual studio code application(ESP-IDF VS Code Extension) should be installed and ready to use, right ?!

I did a new install.

Delete the "c:\.espressif" folder. Delete the "c:\esp-idf" folder. Delete the visual studio code and all folders like that: https://debug.to/1074/how-to-uninstall-vs-code-completely

Install "visual studio code" Install "ESP-IDF VS Code Extension" inside visual studio code Run"ESP-IDF VS Code Extension" and install: Install esp idf in c:\esp-idf Install tools in c:\.espressif

In environment variables:

Set in "user variables": IDF_PATH c:\esp-idf IDF_TOOLS_PATH c:\.espressif

Set in "system variables": in "Path" put: c:\.espressif\tools\idf-git\2.30.1\cmd c:\.espressif\python_env\idf5.0_py3.8_env\Scripts

Starting menuconfig ESP-IDF: Menuconfig: Configuring server

{"message":"The following Python requirements are not satisfied:\r\r\nclick>=7.0,<8.1\r\r\r\njinja2<3.1\r\r\nTo install the missing packages, please run \"install.bat\"\r\r\nDiagnostic information:\r\r\n    IDF_PYTHON_ENV_PATH: c:\\.espressif\\python_env\\idf5.0_py3.8_env\r\r\n    Python interpreter used: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\nSkipping the download of c:\\.espressif\\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.\r\r\nConstraint file: c:\\.espressif\\espidf.constraints.v5.0.txt\r\r\nRequirement files:\r\r\n - C:\\esp-idf\\tools\\requirements\\requirements.core.txt\r\r\nPython being checked: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\n\r\nESP-IDF v5.0-dev-2483-g3aeb80acb6\r\n","stack":"Error: The following Python requirements are not satisfied:\r\r\nclick>=7.0,<8.1\r\r\r\njinja2<3.1\r\r\nTo install the missing packages, please run \"install.bat\"\r\r\nDiagnostic information:\r\r\n    IDF_PYTHON_ENV_PATH: c:\\.espressif\\python_env\\idf5.0_py3.8_env\r\r\n    Python interpreter used: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\nSkipping the download of c:\\.espressif\\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.\r\r\nConstraint file: c:\\.espressif\\espidf.constraints.v5.0.txt\r\r\nRequirement files:\r\r\n - C:\\esp-idf\\tools\\requirements\\requirements.core.txt\r\r\nPython being checked: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\n\r\nESP-IDF v5.0-dev-2483-g3aeb80acb6\r\n\n\tat m.printError (\\dist\\extension.js:1:30357)\n\tat Socket.<anonymous> (\\dist\\extension.js:1:29786)\n\tat Socket.emit (node:events:390:28)\n\tat addChunk (node:internal/streams/readable:315:12)\n\tat readableAddChunk (node:internal/streams/readable:289:9)\n\tat Socket.Readable.push (node:internal/streams/readable:228:10)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-04-15T16:30:41.573Z"}
{"message":"SDK Configuration editor confserver process exited with code: 1","stack":"Error: SDK Configuration editor confserver process exited with code: 1\n\tat m.printError (\\dist\\extension.js:1:30357)\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:29963)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-15T16:30:41.583Z"}

Starting ESP-IDF Monitor

{"message":"non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n","stack":"Error: non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:4499)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-15T16:39:10.324Z"}
{"message":"Cannot access filePath: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe","stack":"Error: non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:4499)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-15T16:39:10.324Z"}
baldhead69 commented 2 years ago

After run: c:\esp-idf>install.bat

c:\esp-idf>install.bat
Installing ESP-IDF tools
Selected targets are: esp32s2, esp32c2, esp32h2, esp32s3, esp32, esp32c3
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util
Skipping xtensa-esp32-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping xtensa-esp32s3-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping riscv32-esp-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping cmake@3.20.3 (already installed)
Skipping openocd-esp32@v0.11.0-esp32-20211220 (already installed)
Skipping ninja@1.10.2 (already installed)
Skipping idf-exe@1.0.3 (already installed)
Skipping ccache@4.3 (already installed)
Skipping dfu-util@0.9 (already installed)
Setting up Python environment
Python 3.8.7
pip 20.3.3 from c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\pip (python 3.8)
Skipping the download of c:\.espressif\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.
Installing Python packages
 Constraint file: c:\.espressif\espidf.constraints.v5.0.txt
 Requirement files:
  - c:\esp-idf\tools\requirements\requirements.core.txt
Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi
Requirement already satisfied: setuptools in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 3)) (62.1.0)
Requirement already satisfied: pyserial in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 5)) (3.5)
Requirement already satisfied: future in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 6)) (0.18.2)
Requirement already satisfied: cryptography in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 7)) (36.0.2)
Requirement already satisfied: pyparsing in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 8)) (3.0.8)
Requirement already satisfied: pyelftools in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 9)) (0.27)
Requirement already satisfied: idf-component-manager in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (1.0.1)
Requirement already satisfied: esp-coredump in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 11)) (1.0)
Requirement already satisfied: reedsolo in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 14)) (1.5.4)
Requirement already satisfied: bitstring in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 15)) (3.1.9)
Requirement already satisfied: ecdsa in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 16)) (0.17.0)
Requirement already satisfied: kconfiglib in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 19)) (14.1.0)
Requirement already satisfied: windows-curses in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 20)) (2.3.0)
Collecting click
  Using cached https://dl.espressif.com/pypi/click/click-8.0.4-py3-none-any.whl (97 kB)
Requirement already satisfied: colorama in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from click->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 4)) (0.4.4)
Requirement already satisfied: cffi>=1.12 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from cryptography->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 7)) (1.15.0)
Requirement already satisfied: pycparser in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from cffi>=1.12->cryptography->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 7)) (2.21)
Requirement already satisfied: six>=1.9.0 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from ecdsa->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 16)) (1.16.0)
Requirement already satisfied: construct~=2.10 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from esp-coredump->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 11)) (2.10.68)
Requirement already satisfied: pygdbmi<0.10.0.0 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from esp-coredump->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 11)) (0.9.0.2)
Requirement already satisfied: tqdm in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (4.64.0)
Requirement already satisfied: pyyaml in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (6.0)
Requirement already satisfied: semantic-version>="2.8" in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2.9.0)
Requirement already satisfied: requests in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2.27.1)
Requirement already satisfied: requests-toolbelt in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (0.9.1)
Requirement already satisfied: schema in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (0.7.5)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2021.10.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (1.26.9)
Requirement already satisfied: idna<4,>=2.5 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (3.3)
Requirement already satisfied: contextlib2>=0.5.5 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from schema->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (21.6.0)
Installing collected packages: click
  Attempting uninstall: click
    Found existing installation: click 8.1.2
    Uninstalling click-8.1.2:
      Successfully uninstalled click-8.1.2
Successfully installed click-8.0.4
WARNING: You are using pip version 20.3.3; however, version 22.0.4 is available.
You should consider upgrading via the 'c:\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe -m pip install --upgrade pip' command.
All done! You can now run:
   export.bat

c:\esp-idf>

Running menuconfig: ESP-IDF: Menuconfig: Configuring server esp_idf_vsc_ext.log:

{"message":"The following Python requirements are not satisfied:\r\r\njinja2<3.1\r\r\nTo install the missing packages, please run \"install.bat\"\r\r\nDiagnostic information:\r\r\n    IDF_PYTHON_ENV_PATH: c:\\.espressif\\python_env\\idf5.0_py3.8_env\r\r\n    Python interpreter used: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\nSkipping the download of c:\\.espressif\\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.\r\r\nConstraint file: c:\\.espressif\\espidf.constraints.v5.0.txt\r\r\nRequirement files:\r\r\n - C:\\esp-idf\\tools\\requirements\\requirements.core.txt\r\r\nPython being checked: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\n\r\nESP-IDF v5.0-dev-2483-g3aeb80acb6\r\n","stack":"Error: The following Python requirements are not satisfied:\r\r\njinja2<3.1\r\r\nTo install the missing packages, please run \"install.bat\"\r\r\nDiagnostic information:\r\r\n    IDF_PYTHON_ENV_PATH: c:\\.espressif\\python_env\\idf5.0_py3.8_env\r\r\n    Python interpreter used: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\nSkipping the download of c:\\.espressif\\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.\r\r\nConstraint file: c:\\.espressif\\espidf.constraints.v5.0.txt\r\r\nRequirement files:\r\r\n - C:\\esp-idf\\tools\\requirements\\requirements.core.txt\r\r\nPython being checked: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe\r\r\n\r\nESP-IDF v5.0-dev-2483-g3aeb80acb6\r\n\n\tat m.printError (\\dist\\extension.js:1:30357)\n\tat Socket.<anonymous> (\\dist\\extension.js:1:29786)\n\tat Socket.emit (node:events:390:28)\n\tat addChunk (node:internal/streams/readable:315:12)\n\tat readableAddChunk (node:internal/streams/readable:289:9)\n\tat Socket.Readable.push (node:internal/streams/readable:228:10)\n\tat Pipe.onStreamRead (node:internal/stream_base_commons:199:23)","level":"error","timestamp":"2022-04-15T16:46:31.125Z"}
{"message":"SDK Configuration editor confserver process exited with code: 1","stack":"Error: SDK Configuration editor confserver process exited with code: 1\n\tat m.printError (\\dist\\extension.js:1:30357)\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:29963)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-15T16:46:31.135Z"}

Running ESP-IDF Monitor device esp_idf_vsc_ext.log:

{"message":"non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n","stack":"Error: non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:4499)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-15T16:51:45.165Z"}
{"message":"Cannot access filePath: c:\\.espressif\\python_env\\idf5.0_py3.8_env\\Scripts\\python.exe","stack":"Error: non zero exit code 2\r\n\r\nERRO: padr�o inv�lido especificado em \"path:pattern\".\r\n\n\tat ChildProcess.<anonymous> (\\dist\\extension.js:1:4499)\n\tat ChildProcess.emit (node:events:390:28)\n\tat Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)","level":"error","timestamp":"2022-04-15T16:51:45.166Z"}
baldhead69 commented 2 years ago
c:\esp-idf>install.bat
Installing ESP-IDF tools
Selected targets are: esp32s2, esp32c2, esp32h2, esp32s3, esp32, esp32c3
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, xtensa-esp32s3-elf, riscv32-esp-elf, esp32ulp-elf, esp32s2ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util
Skipping xtensa-esp32-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping xtensa-esp32s2-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping xtensa-esp32s3-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping riscv32-esp-elf@esp-2021r2-patch3-8.4.0 (already installed)
Skipping esp32ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping esp32s2ulp-elf@2.28.51-esp-20191205 (already installed)
Skipping cmake@3.20.3 (already installed)
Skipping openocd-esp32@v0.11.0-esp32-20211220 (already installed)
Skipping ninja@1.10.2 (already installed)
Skipping idf-exe@1.0.3 (already installed)
Skipping ccache@4.3 (already installed)
Skipping dfu-util@0.9 (already installed)
Setting up Python environment
Python 3.8.7
pip 20.3.3 from c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\pip (python 3.8)
Skipping the download of c:\.espressif\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.
Installing Python packages
 Constraint file: c:\.espressif\espidf.constraints.v5.0.txt
 Requirement files:
  - c:\esp-idf\tools\requirements\requirements.core.txt
Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi
Requirement already satisfied: setuptools in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 3)) (62.1.0)
Requirement already satisfied: pyserial in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 5)) (3.5)
Requirement already satisfied: future in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 6)) (0.18.2)
Requirement already satisfied: cryptography in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 7)) (36.0.2)
Requirement already satisfied: pyparsing in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 8)) (3.0.8)
Requirement already satisfied: pyelftools in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 9)) (0.27)
Requirement already satisfied: idf-component-manager in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (1.0.1)
Requirement already satisfied: esp-coredump in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 11)) (1.0)
Requirement already satisfied: reedsolo in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 14)) (1.5.4)
Requirement already satisfied: bitstring in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 15)) (3.1.9)
Requirement already satisfied: ecdsa in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 16)) (0.17.0)
Requirement already satisfied: kconfiglib in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 19)) (14.1.0)
Requirement already satisfied: windows-curses in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from -r c:\esp-idf\tools\requirements\requirements.core.txt (line 20)) (2.3.0)
Collecting click
  Using cached https://dl.espressif.com/pypi/click/click-8.0.4-py3-none-any.whl (97 kB)
Requirement already satisfied: colorama in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from click->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 4)) (0.4.4)
Requirement already satisfied: cffi>=1.12 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from cryptography->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 7)) (1.15.0)
Requirement already satisfied: pycparser in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from cffi>=1.12->cryptography->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 7)) (2.21)
Requirement already satisfied: six>=1.9.0 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from ecdsa->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 16)) (1.16.0)
Requirement already satisfied: construct~=2.10 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from esp-coredump->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 11)) (2.10.68)
Requirement already satisfied: pygdbmi<0.10.0.0 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from esp-coredump->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 11)) (0.9.0.2)
Requirement already satisfied: tqdm in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (4.64.0)
Requirement already satisfied: pyyaml in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (6.0)
Requirement already satisfied: semantic-version>="2.8" in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2.9.0)
Requirement already satisfied: requests in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2.27.1)
Requirement already satisfied: requests-toolbelt in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (0.9.1)
Requirement already satisfied: schema in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (0.7.5)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (2021.10.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (1.26.9)
Requirement already satisfied: idna<4,>=2.5 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from requests->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (3.3)
Requirement already satisfied: contextlib2>=0.5.5 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from schema->idf-component-manager->-r c:\esp-idf\tools\requirements\requirements.core.txt (line 10)) (21.6.0)
Installing collected packages: click
  Attempting uninstall: click
    Found existing installation: click 8.1.2
    Uninstalling click-8.1.2:
      Successfully uninstalled click-8.1.2
Successfully installed click-8.0.4
WARNING: You are using pip version 20.3.3; however, version 22.0.4 is available.
You should consider upgrading via the 'c:\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe -m pip install --upgrade pip' command.
All done! You can now run:
   export.bat

c:\esp-idf>c:\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (20.3.3)
Collecting pip
  Downloading pip-22.0.4-py3-none-any.whl (2.1 MB)
     |████████████████████████████████| 2.1 MB 2.2 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.3.3
    Uninstalling pip-20.3.3:
      Successfully uninstalled pip-20.3.3
Successfully installed pip-22.0.4

c:\esp-idf>export.bat
Checking Python compatibility
Setting IDF_PATH: c:\esp-idf

Adding ESP-IDF tools to PATH...
    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.20.3\bin
    c:\.espressif\tools\openocd-esp32\v0.11.0-esp32-20211220\openocd-esp32\bin
    c:\.espressif\tools\ninja\1.10.2\
    c:\.espressif\tools\idf-exe\1.0.3\
    c:\.espressif\tools\ccache\4.3\ccache-4.3-windows-64
    c:\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
    c:\.espressif\python_env\idf5.0_py3.8_env\Scripts
    c:\esp-idf\tools

Checking if Python packages are up to date...
Skipping the download of c:\.espressif\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.
Constraint file: c:\.espressif\espidf.constraints.v5.0.txt
Requirement files:
 - c:\esp-idf\tools\requirements\requirements.core.txt
Python being checked: c:\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe
The following Python requirements are not satisfied:
jinja2<3.1
To install the missing packages, please run "install.bat"
Diagnostic information:
    IDF_PYTHON_ENV_PATH: c:\.espressif\python_env\idf5.0_py3.8_env
    Python interpreter used: c:\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe

c:\esp-idf>
baldhead69 commented 2 years ago
C:\.espressif\python_env\idf5.0_py3.8_env\Scripts>pip show jinja2
Name: Jinja2
Version: 3.1.1
Summary: A very fast and expressive template engine.
Home-page: https://palletsprojects.com/p/jinja/
Author: Armin Ronacher
Author-email: armin.ronacher@active-4.com
License: BSD-3-Clause
Location: c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages
Requires: MarkupSafe
Required-by: gcovr

C:\.espressif\python_env\idf5.0_py3.8_env\Scripts>
baldhead69 commented 2 years ago

Only downgrade jinja2 to "Jinja2==3.0.3" worked.

Not even the espressif people knew about it ?!

C:\Users\Rangel>pip install Jinja2==3.0.3
Collecting Jinja2==3.0.3
  Using cached Jinja2-3.0.3-py3-none-any.whl (133 kB)
Requirement already satisfied: MarkupSafe>=2.0 in c:\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages (from Jinja2==3.0.3) (2.1.1)
Installing collected packages: Jinja2
  Attempting uninstall: Jinja2
    Found existing installation: Jinja2 3.1.0
    Uninstalling Jinja2-3.1.0:
      Successfully uninstalled Jinja2-3.1.0
Successfully installed Jinja2-3.0.3
brianignacio5 commented 2 years ago

Sorry for late reply @baldhead69 I think i found the issue.

The extension was not following the constraints given by ESP-IDF. This should be fixed in #700 and this vsix installer

baldhead69 commented 2 years ago

@brianignacio5

idf.py size-components and idf.py size-files bug.

What is this problem ???

c:\esp-idf>export.bat
Checking Python compatibility
Setting IDF_PATH: c:\esp-idf

Adding ESP-IDF tools to PATH...
    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.20.3\bin
    c:\.espressif\tools\openocd-esp32\v0.11.0-esp32-20211220\openocd-esp32\bin
    c:\.espressif\tools\ninja\1.10.2\
    c:\.espressif\tools\idf-exe\1.0.3\
    c:\.espressif\tools\ccache\4.3\ccache-4.3-windows-64
    c:\.espressif\tools\dfu-util\0.9\dfu-util-0.9-win64
    c:\.espressif\python_env\idf5.0_py3.8_env\Scripts
    c:\esp-idf\tools

Checking if Python packages are up to date...
Skipping the download of c:\.espressif\espidf.constraints.v5.0.txt because it was downloaded recently. If you believe that this is causing you trouble then remove it manually and re-run your install script.
Constraint file: c:\.espressif\espidf.constraints.v5.0.txt
Requirement files:
 - c:\esp-idf\tools\requirements\requirements.core.txt
Python being checked: c:\.espressif\python_env\idf5.0_py3.8_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:\esp-idf>idf
'idf' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.

c:\esp-idf>idf.py
Usage: idf.py [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

  ESP-IDF CLI build management tool. For commands that are not known to idf.py an attempt to execute it as a build
  system target will be made.

Options:
  --version                       Show IDF version and exit.
  --list-targets                  Print list of supported targets and exit.
  -C, --project-dir PATH          Project directory.
  -B, --build-dir PATH            Build directory.
  -w, --cmake-warn-uninitialized / -n, --no-warnings
                                  Enable CMake uninitialized variable warnings for CMake files inside the project
                                  directory. (--no-warnings is now the default, and doesn't need to be specified.) The
                                  default value can be set with the IDF_CMAKE_WARN_UNINITIALIZED environment variable.
  -v, --verbose                   Verbose build output.
  --preview                       Enable IDF features that are still in preview.
  --ccache / --no-ccache          Use ccache in build. Disabled by default. The default value can be set with the
                                  IDF_CCACHE_ENABLE environment variable.
  -G, --generator [Ninja]         CMake generator.
  -D, --define-cache-entry TEXT   Create a cmake cache entry. This option can be used at most once either globally, or
                                  for one subcommand.
  -b, --baud INTEGER              Baud rate for flashing. It can imply monitor baud rate as well if it hasn't been
                                  defined locally. The default value can be set with the ESPBAUD environment variable.
                                  This option can be used at most once either globally, or for one subcommand.
  -p, --port TEXT                 Serial port. The default value can be set with the ESPPORT environment variable.
                                  This option can be used at most once either globally, or for one subcommand.
  --help                          Show this message and exit.

Commands:
  add-dependency           Add dependency to the manifest file. For now we only support adding dependencies from the
                           component registry.
  all                      Aliases: build. Build the project.
  app                      Build only the app.
  app-flash                Flash the app only.
  bootloader               Build only bootloader.
  bootloader-flash         Flash bootloader only.
  build-system-targets     Print list of build system targets.
  clean                    Delete build output files from the build directory.
  confserver               Run JSON configuration server.
  create-component         Create a new component.
  create-manifest          Create manifest for specified component.
  create-project           Create a new project.
  delete-version           Delete specified version of the component from the component registry.
  docs                     Open web browser with documentation for ESP-IDF
  efuse-common-table       Generate C-source for IDF's eFuse fields.
  efuse-custom-table       Generate C-source for user's eFuse fields.
  encrypted-app-flash      Flash the encrypted app only.
  encrypted-flash          Flash the encrypted project.
  erase-flash              Erase entire flash chip.
  erase-otadata            Erase otadata partition.
  flash                    Flash the project.
  fullclean                Delete the entire build directory contents.
  gdb                      Run the GDB.
  gdbgui                   GDB UI in default browser.
  gdbtui                   GDB TUI mode.
  menuconfig               Run "menuconfig" project configuration tool.
  monitor                  Display serial output.
  openocd                  Run openocd from current path
  pack-component           Create component archive and store it in the dist directory.
  partition-table          Build only partition table.
  partition-table-flash    Flash partition table only.
  post-debug               Utility target to read the output of async debug action and stop them.
  python-clean             Delete generated Python byte code from the IDF directory
  read-otadata             Read otadata partition.
  reconfigure              Re-run CMake.
  save-defconfig           Generate a sdkconfig.defaults with options different from the default ones
  set-target               Set the chip target to build.
  show-efuse-table         Print eFuse table.
  size                     Print basic size information about the app.
  size-components          Print per-component size information.
  size-files               Print per-source-file size information.
  uf2                      Generate the UF2 binary with all the binaries included
  uf2-app                  Generate an UF2 binary for the application only
  upload-component         Upload component to the component registry. If the component doesn't exist in the registry
                           it will be created automatically.
  upload-component-status  Check the component uploading status by the job ID.

c:\esp-idf>idf.py size-components
Executing action: size-components
Running cmake in directory c:\esp-idf\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\esp-idf"...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/esp-idf/build/CMakeFiles/CMakeOutput.log".
See also "C:/esp-idf/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

c:\esp-idf>idf.py C:\esp32Projects\WSS_SERVER_AND_UI_INTEGRATION_S3 size-components
Executing action: C:\esp32Projects\WSS_SERVER_AND_UI_INTEGRATION_S3
Running cmake in directory c:\esp-idf\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\esp-idf"...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/esp-idf/build/CMakeFiles/CMakeOutput.log".
See also "C:/esp-idf/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

c:\esp-idf>idf.py C:\esp32Projects\WSS_SERVER_AND_UI_INTEGRATION_S3 size-files
Executing action: C:\esp32Projects\WSS_SERVER_AND_UI_INTEGRATION_S3
Running cmake in directory c:\esp-idf\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\esp-idf"...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_ASM_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/esp-idf/build/CMakeFiles/CMakeOutput.log".
See also "C:/esp-idf/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
brianignacio5 commented 2 years ago

It seems you are trying to run these command from esp-idf folder instead of running them from a esp-idf project which is the intended use.

I've tested on Windows 11 with the blink example and idf.py size-components and idf.py size-files seem to work.

baldhead69 commented 2 years ago

I tested within project too and not work in cmd of windows, even after running export.bat.

Inside visual studio code, after running idf-terminal, worked.

brianignacio5 commented 2 years ago

Well if it works with IDF Terminal, then the extension works :)

If you are using any terminal (outside vscode) what is the output ? Maybe the export.bat is using a different version of ESP IDF or ESP-IDF Tools from the project build folder cache and it fails.

ecochard commented 1 year ago

for me (on windows) the menuconfig problem was solved by adding a path to the xtensa-esp32s3-elf-g++ compiler