Giter Site home page Giter Site logo

Installing cmake after launching VS Code results in claims of a cmake invalid location, forcing user to restart VS Code to proceed about vscode-cmake-tools HOT 3 CLOSED

oursland avatar oursland commented on July 20, 2024
Installing cmake after launching VS Code results in claims of a cmake invalid location, forcing user to restart VS Code to proceed

from vscode-cmake-tools.

Comments (3)

oursland avatar oursland commented on July 20, 2024

Related to #3570

from vscode-cmake-tools.

v-frankwang avatar v-frankwang commented on July 20, 2024

@oursland I'm very sorry that I can't reproduce the problem you mentioned, I uninstalled cmake installed on my machine and running cmake: configure command gives me an error, when I reinstalled cmake without restarting vscode and ran cmake: configure command directly the cmake project can be configured successfully, can you give me some suggestions?

Repro steps:
not repor

from vscode-cmake-tools.

oursland avatar oursland commented on July 20, 2024

Hi @v-frankwang:

The steps to reproduce this issue may be observed in the following video:

cmake-example.mp4

This is performed when using the FreeCAD repository with VSCode.

  1. Checkout FreeCAD: git clone https://github.com/FreeCAD/FreeCAD.git
  2. Open FreeCAD in VSCode.
  3. In a terminal, copy the contrib/.vscode/ directory to the repo root directory: cp -a contrib/.vscode/ .
  4. The CMakePresets.json define the location of the cmake executable as conda/cmake.sh, which specifies the cmake binary within the to-be-installed conda environment. An error will be presented because this environment does not exist.
  5. Run conda/setup-environment.sh to install the packages, including cmake.
  6. Configure the CMake Configure Preset for Conda Debug or Conda Release.
  7. Run CMake: Configure.
  8. The error will again be presented as it does not pick up the now working cmake binary.

from vscode-cmake-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.