Skip to content

add sdk to path on windows not working cause the path is quoted #5051

@wildsylvan

Description

@wildsylvan

Describe the bug
dart and flutter cli cannot be found by windows powershell

To Reproduce
Steps to reproduce the behavior:

  1. install the flutter sdk through the vscode flutter extension
  2. click on add sdk to path

Expected behavior
after restarting vscode, windows powershell should be able to find the dart and flutter cli

To Resolve
removing the quotes (") around the path added by the extension inside the path env variable fixes the issue. according to this, paths inside the windows path env var shouldn't be quoted. they should instead use semicolons as delimiters. i can confirm that among all paths present on my machine (including ones with spaces), the dart/flutter's was the only quoted one

Please complete the following information:

  • Operating System and version: Windows 11 Pro 10.0.22631 Build 22631
  • VS Code version: 1.87.2
  • Dart extension version: 3.84.0
  • Dart/Flutter SDK version: Dart (3.3.2) / Flutter (3.19.4)
  • PowerShell version: 7.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    in commandsRelates to commands (usually invoked from the command Palette)is bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions