New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not find any instance of Visual Studio. (solved) #3472
Comments
Thanks for posting but the —msvc flag is documented in the installation guide and so I don’t really see that there’s anything to fix here. If there is it’s a cmake issue surely. |
I installed VS2019, selecting the workloads and modules that I wanted, but I ignored the installer request to reboot at the end, as I assumed that shutting down my computer at the end of the day and restarting it the following day would suffice. I was wrong. |
I have been searching for the fix the entire day and NOW I land on this page. FINALLY!! All problems solved. Thank you very much for the post. |
Hi all. This seems to be related that the docs say 2017 and link to 2017, but you do need the 2019 build tools from https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16# and selecting the VC++ seems to progress it. |
You definitely don't need VS 2019, since our CI runs 2015, 2017 and 2019. |
CMake must be doing something to want the 2019 build tools.
The error message it generates talks about 2019. |
You didn't use the |
Problem
Compiling on windows returns "could not find any instance of Visual Studio"
What I did
I followed instructions, downloading visual studio and checking "visual c++ build tools"
Product was also activated via "login to microsoft"
Command:
python install.py --clang-completer --ts-completer
didn't work
Debugging
I installed "visual studio locator"
https://chocolatey.org/packages/vswhere
And gave me this (check the version)

How the problem was solved
I added the version to the command and it worked!
Versions:
Pending
Somehow the installer couldn't find visual studio, even when it's installed in the usual location
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build
The text was updated successfully, but these errors were encountered: