question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Squiggles feature breaks cmake generated projects

See original GitHub issue

Clang 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:

image Then image while reloading and then projects fail to load (but can be reloaded)

image

However even if reloaded configurations disappeared.

image

Everything is fine after disabling the extension and regenerating the solution files. (but simply disabling it isn’t enough)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
fmauricommented, Dec 3, 2020

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.

1reaction
Enache-Ionutcommented, Nov 25, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found