Comments (3)
@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:
- Create a folder named Test and open it with vscode.
- Add the CMakeLists.txt file and add the following code:
cmake_minimum_required(VERSION 3.8)
project(test)
add_executable(test main.cpp)
- Add the main.cpp file and add the following code:
#include <iostream>
auto main() -> int { std::cout << "hello world" << std::endl; }
- Change the name of main.cpp to main1.cpp
- Open the project outline view
from vscode-cmake-tools.
@v-frankwang
Please also try chaning: project(test)
to something else project(test-renamed)
. You should get something like:
Please note the duplicated entries on the left. Delete Caches and Reconfigure
doesn't fix it. After restarting the project:
from vscode-cmake-tools.
@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:
- Create a folder called demos and open it with vscode.
- Add the CMakeLists.txt file and add the following code:
cmake_minimum_required(VERSION 3.8)
project(demo)
add_executable(demo main.cpp)
- 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})
- Run command:"CMake:Delete Cache and Reconfigure"
- Click on the CMake button in the left navigation bar to observe the PROJECT OUTLINE window
from vscode-cmake-tools.
Related Issues (20)
- CMake configure preset installDir setting is evaluated relative to the binary directory instead of the source directory HOT 6
- [Loc] Property’s tooltip info in file "CMakePresets.json" is not localized
- [Flaky]Duplicate information appeared in output when Add CMakePreset.json
- copyCompileCommands to the original path still leaves a corrupted CDB on Windows HOT 2
- "CMake: build" is repeated twice in the list
- in vscode, How to use v141 toolset in VS2022 with cmake HOT 6
- Double-clicking on one of a target's "References" does nothing HOT 4
- Project outline does not show sources of custom targets with commands HOT 5
- Failure to ask the user to select a kit due to erroneously not finding CMakeLists.txt HOT 1
- Failed to set up project in a subfolder of a git repository HOT 7
- Debugging fails on macOS HOT 7
- [FR] Support module map files HOT 1
- setting active project again after quick start causes second configure
- Include paths are wrong on macOS case sensitive filesystems HOT 7
- test issue
- VSCode CTest Google Test complains non-existing `DartConfiguration.tcl` HOT 5
- cmake.buildBeforeRun is not working as expected HOT 3
- Launch Target doesn't initialise the shell as per the user's config
- Configure on Windows generates a faulty project HOT 1
- Add toolset telemetry point for presets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cmake-tools.