-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Windows failure if install directory has a "!" in it #26571
Comments
Never mind, it seems it was an issue with having an exclamation mark in the path to the sdk ( |
It seems a bug in flutter.bat |
I ran into this issue today - I hold my dev tools in a directory called "!DevTools". After finding this issue, I moved the flutter folder from that directory to another (and changed the PATH var) which worked as expected. It appears that the "SETLOCAL ENABLEDELAYEDEXPANSION" line in the /bin/.bat files is the main offender here (per various StackOverflow and google searches) - I changed that line to "SETLOCAL EnableExtensions DisableDelayedExpansion" (per the same research) and the flutter commands worked as expected when I moved everything back to the original folder However, there is a like issue in the /bin/internal/update_dart_sdk.ps1 - which is choking on the ! in the directory name. I'm not well versed in PS scripting so I will continue my research but I wanted to bump this topic |
I just ran into this issue in Windows 10. The parent folder to flutter had an ! in the name. This cause "flutter doctor" to fail. Command prompt would close without warning. Powershell would give me some sort of Git error when running "flutter doctor". Cloned again. Moving "flutter" to a folder without an exclamation mark and changing the environment variable fixed the problem. Now "flutter doctor" runs. |
This is fixed by #106861. I'll close this issue. |
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 |
I set up flutter and running any flutter command, including
flutter doctor
results inGit is installed and running
git --version
returnsgit version 2.20.1.windows.1
.I've tried installing Flutter through the ZIP on flutter.io, as well as cloning it through both
git clone -b beta https://github.com/flutter/flutter.git
and
git clone -b stable https://github.com/flutter/flutter.git
,restarted my laptop after each and still get the same error after running
flutter doctor
.I've never had this happen to me before, and would greatly appreciate any help. Thank you
The text was updated successfully, but these errors were encountered: