clang-power-tools
clang-power-tools copied to clipboard
[VS2019] VsWhere could not detect Visual Studio 2017 Microsoft.VisualStudio.Product.Enterprise
On Visual Studio 2019 Preview 4 (RC), I get the following error when running compile or tidy:
VsWhere could not detect Visual Studio 2017 Microsoft.VisualStudio.Product.Enterprise. At C:\users\mb\appdata\local\microsoft\visualstudio\16.0_a842d04d\extensions\ks1vy2qo.dxa\psClang\visualstudio-detectio n.ps1:128 char:17
- ... throw "VsWhere could not detect Visual Studio $($global:c ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: (VsWhere could n...uct.Enterprise.:String) [], RuntimeException
- FullyQualifiedErrorId : VsWhere could not detect Visual Studio 2017 Microsoft.VisualStudio.Product.Enterprise.
I have no idea why clang-power-tools is looking for Visual Studio 2017.
Hello,
Please attach a verbose log so that we can further investigate this. You can enable Verbose logging from the Clang Power Tools settings.
Regards, Gabriel
I'm afraid we cannot reproduce this scenario, using VS 2019 Preview 4 and CPT 4.8.1. Does your project, by any chance, use platform toolset v141
?
Thank you for looking into it. Unfortunately, I can no longer reproduce it either. It only happened the first time I used CPT. There were no v141 projects in the solution.
I'm closing this issue as it can no longer be reproduced. Thank you for your feedback.
Regards, Gabriel.
Is this supposed to recur when a project uses toolset v141
? I am seeing error where vswhere is searching for MSVC 2017, but I don't have MSVC 2017 installed. I do have MSVC 2019 with both v141
and v142
toolsets.
Yes, Clang Power Tools will try to use Visual Studio 2017 for projects with v141
toolset.
However, there's shouldn't be an error raised in your case, when only VS2019 is installed.
We're looking into it.
Should this issue be marked as open or would you like me to create a new issue? Please do let me know if I can provide anything to help debug.
I had an instance of this and the clang-build.ps1 scripts look like they do a test for the version in the default location; I had an empty folder in the default location so while it checked for '2017' (empty), it then caused an error because the version wasn't detected. Removing the folder seemed to fix everything (finding 2019, which is installed).
I have the same issue when using CPT with VS 2019 in a project created in VS 2017. I had no previous VS 2017 installations before. Installing it fixes the problem.
Hi there, I'm using Microsoft Visual Studio Community 2019 Version 16.9.3.
I've just installed clang power tools and tried to run tidy on a file. I get this error:
VsWhere could not detect Visual Studio 2017 Microsoft.VisualStudio.Product.Community.
I'm not seeing a fix or relevant solution in this thread?
Hello @mttjcksn ,
It would be helpful to know which toolset your project is using.
Regards, Gabriel
Hi @bhardwajs, @spaceyjase, @kd496, @mttjcksn,
Do you still have the same issue?
Kind regards, Marina
Nope! Everything works these days (VS2020) :)
I am glad to hear that @spaceyjase, I will close this issue.
Thank you for your quick answer :)) If you find another problem, don't hesitate to open an issue
Have a nice day, Marina