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.

Support for custom $(Configuration)|$(Platform) conditions in VS property-sheets

See original GitHub issue

screenshot

I don’t know if it’s a problem with my configuration, but i can’t configure includes… I have two VS 2015 opened (different git branches for the same code), and on one of them the include appears, on the second one doesn’t. Furthermore, on the first one I can use power-tools, but on the second (without includes) execution of compile/tidy gives error:

Start Clang Tidy

[ INFO ] WILL PROCESS PROJECTS: 
	xxx.vcxproj
[ INFO ] 1. PROCESSING PROJECT D:\xxx.vcxproj
Did not expect that
At C:\Users\gglowacki\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\h3be4nct.gu5\clang-build.ps1:802 char:9
+         throw "Did not expect that"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Did not expect that:String) [], RuntimeException
    + FullyQualifiedErrorId : Did not expect that
 

Done Clang Tidy


Clang-power-tools 1.5.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
hero101111commented, Nov 3, 2017

@g-glowacki Analyzing your sample files, I figured out what the problem is: Your property sheets have item conditions written by hand, whereas clang-build.ps1 is currently looking for item conditions generated by Visual Studio (e.g. '$config|$platform'=='Debug|Win32').

We’re working on enabling clang-build.ps1 to understand more complex conditions, such as yours. Please keep in mind, however, that this is more than a trivial bug fix and will take some time to implement.

We’ll keep you posted. Thank you for your feedback.

1reaction
g-glowackicommented, Nov 3, 2017

I manually replaced the PowerShell script, but it still doesn’t work.

Start Clang Tidy

[ INFO ] WILL PROCESS PROJECTS: 
	xxx.vcxproj
[ INFO ] 1. PROCESSING PROJECT D:\xxx.vcxproj
Did not expect that
At C:\Users\gglowacki\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\24rhmtuq.ud0\clang-build.ps1:802 char:9
+         throw "Did not expect that"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Did not expect that:String) [], RuntimeException
    + FullyQualifiedErrorId : Did not expect that
 

Done Clang Tidy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Share or reuse Visual Studio project settings - C++
To create a custom group of settings that you can share with others or reuse in multiple projects, use Property Manager to create...
Read more >
Visual Studio parsing behavior with custom property sheet ...
Visual Studio parsing behavior with custom property sheet to set platform tools version ... i am in the process of converting a large...
Read more >
Support for Project and Configuration Properties
Learn how to provide a property page for your own project type in the Visual Studio IDE, which can display project and configuration...
Read more >
Sharing project properties in Visual C++
To display the Property Manager pane, in the menu go to View –> Other Windows –> Property Manager . Note: Property sheet files...
Read more >
Add support for custom Solution Configurations · Issue #451
I'm running Windows 10 Pro x64 10.0.14393 en-us. Repro steps: I install vcpkg and integrate it with system-wide integration.
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