Squiggles feature breaks cmake generated projects
See original GitHub issueClang power tools 5.6.1 Visual Studio 2019 16.4.2 CMake 3.16.1
It seems that clang power tools tries to modify .vcxproj
files when you open a solution, which corrupts any cmake generated project.
As soon as the extension/solution finishes loading, I get the following:
Then while reloading and then projects fail to load (but can be reloaded)
However even if reloaded configurations disappeared.
Everything is fine after disabling the extension and regenerating the solution files. (but simply disabling it isn’t enough)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:17 (10 by maintainers)
Top Results From Across the Web
Erroneous intellisense squiggles - Developer Community
The project's devel branch is in a state of change currently so some of the apps don't compile, but generate-python-bindings.cpp compiles fine ...
Read more >GENERATED — CMake 3.27.2 Documentation
Tells the internal CMake engine that a source file is generated by an outside process such as another build step, or the execution...
Read more >cmake(1) — CMake 3.27.3 Documentation
Generate a Project Buildsystem¶. Run CMake with one of the following command signatures to specify the source and build trees and generate a...
Read more >Why CMake? — Mastering CMake
CMake is an open-source build system generator for software projects that allows developers to specify build parameters in a simple, portable, text file...
Read more >ExternalProject — CMake 3.27.3 Documentation
The ExternalProject_Add() function creates a custom target to drive download, update/patch, configure, build, install and test steps of an external project:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @Enache-Ionut, I tried the steps that you suggested, after disabling
Show squiggles
clang stopped to run the above mentioned cmake and stopped overwriting the solution file of the project.Hi,
Apologies for the inconveniences you’ve encountered.
We create a temporary directory(“CPTCMakeBuild”) every time a clang compile/tidy command is launched. At this moment, Clang Power Tools knows how to interpret just “.sln” and “vcxproj” files. This is why we need to generate them in the first place. We’ll definitely investigate this issue and we’ll come back with updates when a solution is found.
This is a big step forward for us, but like any other big change, we encountered many difficulties until now. CMake support is a beta feature and we work continuously to improve it.
We highly appreciate your feedback and your patience.
Regards, Ionut