-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
platform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Steps to reproduce
- Downloaded the Flutter 3.32.7 zip from flutter.dev on Windows 10.
- Extracted the zip into
c:\src\sdks\flutter. - Added
c:\src\sdks\flutter\binto thePATH. - Run
flutterin the command prompt and in PowerShell.
Actual results
Trying to run flutter from a freshly downloaded .zip of Flutter 3.32.7 on Windows 10 fails when the PowerShell language mode is ConstrainedLanguage:
PS C:\src> flutter
New-Object: C:\src\sdks\flutter\bin\internal\update_engine_version.ps1:72
Line |
72 | $utf8NoBom = New-Object System.Text.UTF8Encoding($false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot create type. Only core types are supported in this language mode.
Error: Unable to determine engine version...
Running flutter from the command prompt shows the same error but also immediately closes the command prompt window, making it very hard see what went wrong.
Logs
Logs
PS C:\src> flutter
New-Object: C:\src\sdks\flutter\bin\internal\update_engine_version.ps1:72
Line |
72 | $utf8NoBom = New-Object System.Text.UTF8Encoding($false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot create type. Only core types are supported in this language mode.
Error: Unable to determine engine version...Flutter Doctor output
Doctor output
PS C:\src> flutter doctor
New-Object: C:\src\sdks\flutter\bin\internal\update_engine_version.ps1:72
Line |
72 | $utf8NoBom = New-Object System.Text.UTF8Encoding($false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot create type. Only core types are supported in this language mode.
Error: Unable to determine engine version...Metadata
Metadata
Assignees
Labels
platform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.