-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed as not planned
Labels
r: invalidIssue is closed as not validIssue is closed as not validteam-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
I broke my flutter setup by a canceled git rebase. It ended that the dart executable was deleted.
> flutter doctor
Building flutter tool...
/Users/rekire/dev/flutter/bin/internal/shared.sh: line 23: /Users/rekire/dev/flutter/bin/cache/dart-sdk/bin/dart: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
/Users/rekire/dev/flutter/bin/internal/shared.sh: line 23: /Users/rekire/dev/flutter/bin/cache/dart-sdk/bin/dart: No such file or directory
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
I think the shared.sh
should check (more carefully) if in my case the dart executable is present and if not to delete the cache to automatically download the executables again.
My fix was to delete flutter/bin/cache
and rerun any flutter command.
Metadata
Metadata
Assignees
Labels
r: invalidIssue is closed as not validIssue is closed as not validteam-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.