Giter Site home page Giter Site logo

Comments (9)

wrightleft avatar wrightleft commented on August 21, 2024

I'm having the same problem. It is making it impossible to use CMake Tools with a conan based project, because conan creates a preset file for CMake to find all its generated CMake modules.

from vscode-cmake-tools.

gcampbell-msft avatar gcampbell-msft commented on August 21, 2024

@nikolaseu @wrightleft Thanks for letting us know, could you all also test the previous official release version before 1.18.41? I'm wanting to understand if this is a regression, or if this is an already present issue. Thanks!

from vscode-cmake-tools.

gcampbell-msft avatar gcampbell-msft commented on August 21, 2024

@nikolaseu For context on why we don't use --preset, this is for numerous reasons, but the simplest being that the guidance provided by Kitware for IDE integration is to avoid using --preset. There are additional reasons based on implementation requirements, but that is the simplest one.

from vscode-cmake-tools.

nikolaseu avatar nikolaseu commented on August 21, 2024

@nikolaseu For context on why we don't use --preset, this is for numerous reasons, but the simplest being that the guidance provided by Kitware for IDE integration is to avoid using --preset. There are additional reasons based on implementation requirements, but that is the simplest one.

Thanks! It's always an issue in Windows, I workaround it by setting the PATH before launching vscode but I need two different envs for debug and release 😞 . QtCreator is better in that sense (without presets at least).

I was hoping CMakePresets would help, since it works from the command line. But I was not using presets before. The previous version probably has the same issue since it's not a bug if I understand you correctly.

Maybe this could be an option? It seems useful to have something that works exactly as the command line.

from vscode-cmake-tools.

v-frankwang avatar v-frankwang commented on August 21, 2024

@nikolaseu Thank you for reporting this issue. Regarding this issue, we have tried to reproduce the issue using a simple demo project: my_project.zip , but we do not seem to be able to reproduce the issue you mentioned. In order to investigate further, could you please provide us with a simple project that can reproduce this issue. We are looking forward to hearing from you.

ENV:
VSCode:1.90.0
CMake 工具:v1.81.41
C/C++:v1.20.5

Actual results:
image

from vscode-cmake-tools.

nikolaseu avatar nikolaseu commented on August 21, 2024

Hi @v-frankwang

That project doesn't need any DLL that is not in the PATH, you don't have any runtime dependency. How are you checking/evaluating if it's using the preset correctly?

I will try to make a basic example.

from vscode-cmake-tools.

nikolaseu avatar nikolaseu commented on August 21, 2024

my_project_2.zip

Using the x64-release preset in both cases, running ctest fails in vscode but works on command line.

Command line usage (from a VS2022 developer command prompt)

cmake --preset x64-release
cmake --build --preset x64-release --target all
ctest --preset x64-release

from vscode-cmake-tools.

nikolaseu avatar nikolaseu commented on August 21, 2024

I don't have the regular "Visual Studio" IDE but I'm told this works fine there

from vscode-cmake-tools.

v-frankwang avatar v-frankwang commented on August 21, 2024

@gcampbell-msft I reproduced the issue based on the project provided by the user, here are the steps to reproduce it:

ENV:
VS Code: 1.90.0
CMake tools: 1.18.42
C/C++:1.20.5

  1. Download this file:my_project_2.zip and open it in vscode
  2. Run the command:"CMake:configure"
  3. Select "x64-release"
  4. Click on the Testing button in the left navigation bar

Actual result:
Run Test fails when you click Run Test in the Test Explorer window, but succeeds when you run it from the command line.

image

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.