Giter Site home page Giter Site logo

Comments (3)

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

@Zingam @gcampbell-msft I reproduced this issue as described by the user, but after I reconfigured the project, the changes made could be displayed correctly in the project outline view, which I think should be the cache that needs to be regenerated after the changes have been made.
ENV:
ENV:
VS code version: 1.90.0
CMake Extension version: 1.18.42

Steps to reproduce:

  1. Create a folder named Test and open it with vscode.
  2. Add the CMakeLists.txt file and add the following code:
cmake_minimum_required(VERSION 3.8)
project(test)
add_executable(test main.cpp) 
  1. Add the main.cpp file and add the following code:
#include <iostream> 
      auto main() -> int { std::cout << "hello world" << std::endl; }
  1. Change the name of main.cpp to main1.cpp
  2. Open the project outline view

Actual Result:
repor

from vscode-cmake-tools.

H-G-Hristov avatar H-G-Hristov commented on July 20, 2024

@v-frankwang
Please also try chaning: project(test) to something else project(test-renamed). You should get something like:

image

Please note the duplicated entries on the left. Delete Caches and Reconfigure doesn't fix it. After restarting the project:

image

from vscode-cmake-tools.

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

@H-G-Hristov @gcampbell-msft Based on the information provided by the user, I reproduced the issue and here are the steps to reproduce it:

repro steps:

  1. Create a folder called demos and open it with vscode.
  2. Add the CMakeLists.txt file and add the following code:
cmake_minimum_required(VERSION 3.8)
project(demo)
add_executable(demo main.cpp)
  1. Add the main.cpp file and add the following code:
#include <iostream> 
      auto main() -> int { std::cout << "hello world" << std::endl; }

4.Add the following code to the CMakeLists.txt file:

set(PROJECT_NAME "newdemo")
project(${PROJECT_NAME})
  1. Run command:"CMake:Delete Cache and Reconfigure"
  2. Click on the CMake button in the left navigation bar to observe the PROJECT OUTLINE window

Actual results:
image

videorecord:
3836

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.