Skip to content

Unable to find suitable Visual Code toolchain. Visual Studio 2019 Community problem. #37831

Closed

Description

@Ali-NS

Hi all, I try the Flutter for Desktop for the first time using https://github.com/google/flutter-desktop-embedding.git, appear the Visual Studio Installation problem when running flutter doctor command.
flutter_desktop_embedding_problem

  • The Visual Studio 2019 - Community already installed in the c:\Program Files (x86)\Microsoft Visual Studio, still problem. 
  • vswhere.exe is default file In the c:\Program Files (x86)\Microsoft Visual Studio\Installer, version 2.6.7+91f4c1d09e

C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -utf8 -latest
Output :

C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe -json -utf8 -latest
Visual Studio Locator version 2.6.7+91f4c1d09e
Copyright (C) Microsoft Corporation. All rights reserved.

Error 0x57: Unknown parameter: json

Visual_Studio_vswhere_problem

Activity

  1. added
    t: flutter doctorProblem related to the "flutter doctor" tool
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-windowsBuilding on or for Windows specifically
    on Aug 8, 2019
  2. stuartmorgan-g commented on Aug 8, 2019

    @stuartmorgan-g
    Contributor

    This (the requested information):

    vswhere.exe -format json -utf8 -latest

    is not the same as what you actually ran:

    vswhere.exe -json -utf8 -latest

    Could you provide the output of running with exactly the requested flags?

  3. Ali-NS commented on Aug 8, 2019

    @Ali-NS
    Author

    Here is the correct command as request :

    C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere -format json -utf8 -latest
    
    []
    
    C:\Program Files (x86)\Microsoft Visual Studio\Installer>
    

    Visual_Studio_vswhere_problem

  4. stuartmorgan-g commented on Aug 8, 2019

    @stuartmorgan-g
    Contributor

    That means that vswhere is giving us incorrect information. Could you file a bug against vswhere and reference it here? Hopefully they can figure out why it's not finding your install, and depending on the underlying cause we can see if it's something we can work around in the Flutter tool (or at least provide suggestions for in the tool).

  5. Ali-NS commented on Aug 8, 2019

    @Ali-NS
    Author

    Here is the link microsoft/vswhere#198, thank you

  6. stuartmorgan-g commented on Aug 8, 2019

    @stuartmorgan-g
    Contributor

    Based on discussion there, the fallback check should be passing -all to catch cases where there is an install that is present but not complete/working. We can parse out the relevant key/value pair(s), which we'll need to look up, and expose to doctor to provide a different error message.

  7. added this to the milestone on Aug 13, 2019
  8. github-actions commented on Aug 13, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  9. locked as resolved and limited conversation to collaborators on Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: desktopRunning on desktopplatform-windowsBuilding on or for Windows specificallyt: flutter doctorProblem related to the "flutter doctor" tooltoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions