Skip to content

Installing cmake after launching VS Code results in claims of a cmake invalid location, forcing user to restart VS Code to proceed #3811

@oursland

Description

@oursland

Brief Issue Summary

In environments where the cmake path points to a file that does not yet exist, installing cmake does not correct the issue requiring restaring VS Code to proceed.

An example is in projects where build dependencies are maintained through a local package manager such as conda. When the project is loaded, the path to cmake for the project is invalid. After installing the build dependencies, the vscode-cmake-tools extension does not attempt to use the newly installed cmake.

What is expected is that when attempting to use cmake an error due to the absence of the cmake executable should present a UI, and when the cmake executable is installed it should use this. The current implementation performs this check once, presumably to prevent multiple UI notifications of the cmake path error.

It would be preferable to try to run the cmake program each time to account for the possibility of the program being installed, and upon failure only present the error notification UI on the first failure.

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

more info neededMore info is needed from the community for us to properly triage and investigate.

Type

No type

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions