-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Steps to Reproduce
I expect you may have difficulty reproducing this, but I run into the following error when running flutter:
$ flutter
flock: 3: Bad file descriptor
The error happens at line 35 of the flutter shell script, which tries to take a lock using the flock utility. This is on a debian stable computer, and I have no experience using flock with bash, and haven't been able to debug it. I can make flutter work fine by changing the preceding line such that the if statement fails and a lock is not taken.
I presume file descriptor 3 is supposed to be created by line 50, which reads:
) 3< $PROG_NAME
but don't care to learn enough bash to figure out why it is not working, particularly as I have a workaround. But it does seem worth fixing, to make flutter work for folks who aren't comfortable editing a bash script.
Logs
Can't do this since flutter fails. Unless I disable the lock, in which case it works fine.
Flutter Doctor
Again, not relevant.