ghostopened on Mar 31, 2024 · GitHub

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

Read the original on github.com ↗