vscode-esp-idf-extension: Error on build in version 0.2.1 (VSC-316)
Describe the bug Build randomly fails with error: “Make sure you have the build tools installed and set in $PATH”. After a restart it usually works, but not always. When it fails, there is no message in “ESP-IDF Build” output. The behavior is the same whether esp-idf is installed using the Windows installer or the wizard in the extension.
Downgrading the extension to 0.2.0 solves the problem.
To Reproduce
- Install ESP-IDF using Windows installer or using the wizard in the vscode-esp-idf extension.
- Run either “ESP-IDF: Build your project” task or click the build button in status bar.
Expected behavior Project gets build as ESP-IDF is installed and the extension is correctly configured.
Environment (please complete the following information):
- OS Name & Version: Windows 10 1909
- VSCode Version: 1.44.2
- ESP-IDF Version: 4.0.0
- Python Version: 3.8
Logs
{"user":true,"message":"Make sure you have the build tools installed and set in $PATH","stack":"Error: spawn cmake ENOENT\n\tat Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)\n\tat onErrorNT (internal/child_process.js:456:16)\n\tat processTicksAndRejections (internal/process/task_queues.js:77:11)","level":"error","timestamp":"2020-05-02T20:03:51.383Z"}
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 29 (3 by maintainers)
OMG… I finally have it… Thanks @mitchjs.
I was compiled and installed master branch, I think, without #95. I have downloaded directly @brianignacio5 bugfix/env-path branch. After compile it, packaged in vsix and installed, now, I haven’t any problem with build and GUI.
Thank you both to help me, 😃
@brianignacio5 I’ve just tried it and it fixes the issue for me 😃 Thx for fixing it.
ok… i just did a pull of #95 and built my own vsix, and installed to VSCode and BUILD from tool bar works
this should be a link to a visx with pr#95 in it
https://github.com/espressif/vscode-esp-idf-extension/suites/667103160/artifacts/5951621
Hi @SoumeshBanerjee.
Yes, my machine has Windows 10 version. If you need, I can test it with an Ubuntu 20.04 virtual machine I have mounted with vscode and different esp-idf framework version.
Edit: I forgot it. In my Windows I am working with release/4.1 branch.