Giter Site home page Giter Site logo

Comments (7)

ncoghlan avatar ncoghlan commented on July 20, 2024

Checking the folder's VSCode settings, I think the key change from before/after the reinstall is that after the reinstall CMake-Tools automatially set the CMake source directory in the folder settings:

    "cmake.sourceDirectory": "/path/to/repo/cpp_embedding_demo"

I'm not sure if there was a command I could have run beforehand to sort that out.

I think that discovery may mean this issue is a duplicate of #1042 (a general UX report around the handling of a missing top-level CMakeLists.txt file, which I had found before filing this issue, but also before I discovered that an uninstall+reinstall of the extension fixed the problem, so I thought it wasn't directly related)

from vscode-cmake-tools.

ncoghlan avatar ncoghlan commented on July 20, 2024

Even though it's building, this is still behaving strangely. All the artifacts are still ending up in a top level build folder, instead of inside the embedding demo folder.

from vscode-cmake-tools.

ncoghlan avatar ncoghlan commented on July 20, 2024

Setting cmake.buildDirectory and then restarting VSCode was also necessary to resolve the problem with artifacts still being emitted to the top-level directory.

from vscode-cmake-tools.

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

@ncoghlan I used a simple project to reproduce your problem but was not able to reproduce it, would you be able to provide a simple project that can reproduce this problem so that we can reproduce it, it would be great if you could also provide some screenshots, it would be a great help for us to deal with this problem later. I look forward to hearing from you!

Here are my steps to reproduce it:
ENV:
CMake tools:v1.18.43
C/C++: v1.20.5
vscode: v1.19.1(user setup)

3907

from vscode-cmake-tools.

ncoghlan avatar ncoghlan commented on July 20, 2024

It won't be this week, but I'll try the simple example next week. If it work for me too, then I think it will make the most sense to write this off as not reproducible.

from vscode-cmake-tools.

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

@ncoghlan Thank you very much for your reply, it's very much appreciated that you can provide a reproduction project in the next week, and we'll get to work on the issue as soon as we receive the project from you!

from vscode-cmake-tools.

gcampbell-msft avatar gcampbell-msft commented on July 20, 2024

@ncoghlan To recap all of this, it does sound like there may be improvements to be had, and they are tracked here: #1042.

As for the other issues, you were able to workaround them by setting the cmake.buildDirectory and cmake.sourceDirectory?

I'm looking forward to your repro because if Quick start has issues we'd definitely want to investigate. Thanks!

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.