Skip to content

[Windows] Unable to determine engine version #173554

@dcharkes

Description

@dcharkes

Reproduction steps:

  1. git clone this repo
  2. add to PATH env variable (users)
  3. set FLUTTER_ROOT env variable (user)

Try to run from powershell:

PS C:\Users\dacoharkes> flutter help
&: C:\src\flutter\flutter\bin\internal\update_engine_version.ps1:60
Line |
  60 |  … $engineVersion = & "$flutterRoot/bin/internal/content_aware_hash.ps1"
     |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'C:\src\flutter\flutter/bin/internal/content_aware_hash.ps1' is not recognized as a name of a cmdlet,
     | function, script file, or executable program. Check the spelling of the name, or if a path was included, verify
     | that the path is correct and try again.
Error: Unable to determine engine version...

PS C:\Users\dacoharkes> echo $env:flutter_root
C:\src\flutter\flutter

If you run from cmd, it simply immediately exits without showing you the error.

Possibly related: https://stackoverflow.com/questions/79455438/error-install-flutter-and-no-execute-flutter-command-on-windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions