-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
We've recently had quite a few people with installation problems over on the FlutterDev discord report that running any flutter command causes their cmd window to close. This, of course, only happens on Windows.
We narrowed it down to the fact that shared.bat uses the EXIT command without /B in several places, causing the entire cmd window to close. Seeing as this is often used immediately after reporting an error, this means users never get a chance to see the actual error message.
We've seen this from people trying to run flutter without Git in their path, or without PowerShell in their path, but there may be other cases that can trigger the issue.
This can be worked around by spawning another CMD shell within the existing CMD prompt, then running flutter inside that - which causes the nested CMD to exit, but the parent CMD remains so the error message is visible.
I'm not actually on a Windows system so I'm unable to provide detailed reproduction steps, or information on whether this occurrs in PowerShell or not.