vscode-esp-idf-extension: Extension v1.6.0 'Command not found' error - but works with extension v1.5.1. (VSC-1063)
OS
Linux
Operating System version
Kubuntu 22.10
Visual Studio Code version
1.76.1
ESP-IDF version
5.0.1
Python version
3.10.7
Doctor command output
Doctor fails to launch with ‘Command not found’.
Extension
[root project directory] is my system’s path to projects.
{“message”:“Cannot access filePath: [root project directory]/Arduino/XIAO-ESP32-test/CMakeLists.txt”,“stack”:"Error: ENOENT: no such file or directory, access '[root project directory]>
Description
‘Command not found’ when invoking any ESP-IDF extension command.
Debug Message
Same as VSCode's extension error as outlined above:
[root project directory] is my system's path to projects.
{"message":"Cannot access filePath: [root project directory]/Arduino/XIAO-ESP32-test/CMakeLists.txt","stack":"Error: ENOENT: no such file or directory, access '[root project directory]>
Other Steps to Reproduce
Following the ‘CMakeLists.tst’ not found error, I added one to the project and the extension still fails to run any command.
I have also tried re-installing the extension, removing config, etc. However, v1.5.1 of the extension has no problems with any installation config situation.
The issue has been mentioned by other users, e.g. : Command not found.
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 17
That is the only correct guide that works for me. Thanks a lot!
For completeness, marking this reported issue as fixed for me in IDF VSCode extension 1.6.1, with VSCode 1.77.3, Kubuntu 23.04.
@brianignacio5 tried vsix installer that you shared. Everything working.
Hi. I have the same problem on MacOS and Linux. What I figured out is that you can’t run any command when you are on any other project than esp-idf based. When you open any esp-idf project, then you can run any command without any problem. It seems that extension is looking for CMakeList.txt for some reason:
{"message":"Cannot access filePath: /home/ssc/code/some-non-esp-idf-app/CMakeLists.txt","stack":"Error: ENOENT: no such file or directory