Skip to content

[Bug Report]: Conflict with PlatformIO and ESP-IDF Extension (VSC-456) #190

@hustlelabs

Description

@hustlelabs

Describe the bug
With the latest Visual Studio Code ESP-IDF extension installed, and PlatformIO installed, Visual Studio Code does not honor the path settings that the Visual Studio Code ESP-IDF extension attempts to set. Notably, the first error that pops up during a build is the following:

'cmake' is not recognized as an internal or external command, operable program or batch file.

To Reproduce
1.) Install Visual Studio Code.
2.) Install the ESP-IDF extension
3.) Install the PlatformIO extension
4.) Attempt to build with the ESP-IDF extension
(Note: the order of 2+3 doesn't matter)

Expected behavior
I'd expect that regardless of any other plugins, Visual Studio Code's ESP-IDF would build. However, I'm not sure if the behavior described in this bug report is due to an issue in PlatformIO, or due to an issue with the ESP-IDF extension.

Environment (please complete the following information):
Windows 7
VSCode 1.49.3
ESP-IDF Version 4.2-release
VSCode ESP-IDF Extension 0.5.1
PlatformIO IDE 2.1.0
Python Version 3.8.6

Logs
'cmake' is not recognized as an internal or external command, operable program or batch file. The terminal process "C:\Windows\system32\cmd.exe /d /c cmake -G Ninja .." failed to launch (exit code: 1).

Additional context
I executed within a shell the ESP-IDF\export.bat and launched Visual Studio Code from that path, it solved the issue since it started Visual Studio Code with the correct paths to the tools. This firmly places the issue with the environment variable settings.

Metadata

Metadata

Assignees

Labels

bugIts an actual bug as determined by the maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions