Skip to content

Could not find a valid MSVC version #1665

@Maluscat

Description

@Maluscat
  • OS: Windows 10
  • Visual Studio Build Tools 2019 (MSVC) version: 16.11.20

Hi,

after updating YouCompleteMe and trying to compile it, it no longer detects my MSVC installation as valid and fails (detailed report below).
This seems to have originated in commit 3e9564b, because the script now looks for the MSVC version in the registry, where, for me, it is not found (see below). Rolling back to a commit prior of this one works fine.

Input:

py install.py --ts-completer

Output:

Traceback (most recent call last):
  File "C:\Users\Hallo89\.vim\plugged\YouCompleteMe\third_party\ycmd\build.py", line 1335, in <module>
    Main()
  File "C:\Users\Hallo89\.vim\plugged\YouCompleteMe\third_party\ycmd\build.py", line 1295, in Main
    args = ParseArguments()
           ^^^^^^^^^^^^^^^^
  File "C:\Users\Hallo89\.vim\plugged\YouCompleteMe\third_party\ycmd\build.py", line 556, in ParseArguments
    raise FileNotFoundError( "Could not find a valid MSVC version." )
FileNotFoundError: Could not find a valid MSVC version.

image
Registry entry searched for 17.0, 16.0, 15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions