Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waiting for another flutter command to release the startup lock... #17422

Closed
sathishbalan opened this issue May 9, 2018 · 40 comments
Closed
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@sathishbalan
Copy link

Waiting for another flutter command to release the startup lock...

@zoechi
Copy link
Contributor

zoechi commented May 9, 2018

Do you have flutter packages pub build_runner watch running?
Kill all dart processes and try again or restart the computer.

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 12, 2018
@zoechi
Copy link
Contributor

zoechi commented Jun 12, 2018

@sathishbalan is this still an issue?

@zoechi
Copy link
Contributor

zoechi commented Jun 12, 2018

Might be a dup of #14703

@haoma2012
Copy link

yes, get it; it is work

@YobMe
Copy link

YobMe commented Jul 25, 2018

Kill the terminal using the delete (trash) icon if you are using a Visual Studio Code editor

@no-response no-response bot closed this as completed Jul 25, 2018
@no-response
Copy link

no-response bot commented Jul 25, 2018

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
cc @Hixie

@D19cannon
Copy link

Hi!
i'm still having the same issue and @zoechi didn't work for me.

What I noticed is that there is an issue with the 'pub' tool ==> 'build_runner is not found' and that there is an exit code 64 for involved (what ever that means) I looked it up in the documentation, but without any success...

Hopefully, this will be useful for some one to solve the solution!

screen shot 2018-08-15 at 15 12 50

@zoechi
Copy link
Contributor

zoechi commented Aug 15, 2018

@D19cannon Please create a new issue with full information, including the output of flutter doctor -v.
Please check first you have a recent Flutter version.

@D19cannon
Copy link

Hi, yes I do the latest (upgraded a billion times).
Any how, I solved it by removing the .bin/lock files (from another issue) or and used the command afterwards.

@CompileYouth
Copy link

You can: rm ./flutter/bin/cache/lockfile

@shavigrewal
Copy link

This issue also occurs due to internet proxies ,make sure that you have full network access .

@ztz12
Copy link

ztz12 commented Oct 31, 2018

you can open flutter/bin/cache/lockfile ,and delete this lockfile ,I solve this problem by this

@sbefort
Copy link

sbefort commented Nov 3, 2018

On OSX:
rm /Applications/flutter/bin/cache/lockfile

@wosilove
Copy link

On OSX:
rm /Applications/flutter/bin/cache/lockfile

delete 'lockfile',It is work

@GuoZhiQiang
Copy link

Thanks ! @CompileYouth

@PuzoLiang
Copy link

On OSX:
rm /Applications/flutter/bin/cache/lockfile

Thanks. But mention that the lockfile file is depending on the location that flutter SDK. In my OS,I need to delete ~/Documents/SDK/flutter/bin/cache/lockfile.

@whataa
Copy link

whataa commented Jan 27, 2019

another way On OSX:
open activity monitor and find process named 'dart', kill it.

@edycarreyes99
Copy link

This issue also occurs due to internet proxies ,make sure that you have full network access .

And what about if we have a proxy. What can we do to fix it?

@mareksip
Copy link

mareksip commented Mar 12, 2019

In my case, there was an flutter packages get command running in the background. As it was looking for package that did not exist due to incorrect name, changing this package name fixed the issue.


[eamper-app] flutter packages get
Running "flutter packages get" in eamper-app...                 
Because eamper depends on ffirebase_core any which doesn't exist (could not find package ffirebase_core at https://pub.dartlang.org), version solving failed.

pub get failed (69) -- attempting retry 1 in 1 second...

Because eamper depends on ffirebase_core any which doesn't exist (could not find package ffirebase_core at https://pub.dartlang.org), version solving failed.

pub get failed (69) -- attempting retry 2 in 2 seconds...

Because eamper depends on ffirebase_core any which doesn't exist (could not find package ffirebase_core at https://pub.dartlang.org), version solving failed.

pub get failed (69) -- attempting retry 3 in 4 seconds...

Because eamper depends on ffirebase_core any which doesn't exist (could not find package ffirebase_core at https://pub.dartlang.org), version solving failed.

pub get failed (69) -- attempting retry 4 in 8 seconds...
Running "flutter packages get" in eamper-app...                    23,0s
exit code 0
[eamper-app] flutter packages get
Running "flutter packages get" in eamper-app...                     1,4s
exit code 0

@ripperhe
Copy link

ripperhe commented Apr 4, 2019

Find the folder where flutter is installed, and delete flutter/bin/cache/lockfile

@yuanchen1
Copy link

run flutter clean

@skaterdude
Copy link

flutter clean won't run either. If I delete the flutter.bat.lock file, it will run clean, but the "Waiting ..." message still comes up when I restart the idea. Have to reboot my computer to be able to delete lockfile, even when the IDE is shut down. Doesn't fix the problem.

@loolooii
Copy link

flutter clean, changing networks, deleting lockfile, killing dart processes and restarting computer did not work for me. I'm starting to think maybe this happens on specific devices. Going to try that.

@AdrianBinDC
Copy link

I suspect flutter would get more corporate adoption if it were easier to use in a corporate environment. Might want to figure out a way to remove all the proxy hoops that need to be jumped through to use it.

@saadnoor
Copy link

saadnoor commented Jun 2, 2019

Restarting the terminal worked for me.

@JohnnyQQQ
Copy link

Still having this problem, nothing seems to clear it.

@vigneshwaranvelmurugan
Copy link

killall -9 dart

@yanjiepeng
Copy link

delete lock file not worked for me.

@athlan20
Copy link

athlan20 commented Aug 2, 2019

You can: rm ./flutter/bin/cache/lockfile

that'is it,thx

@codingcity4747
Copy link

I had tried all the solution mentioned above, and nothing works for me and creating flutter application dialog goes forever, but what I did is, end AS task and open it again but this time instead of creating a new project, I just opened the project I just exit from it, and it opens fine,
what causes this problem, I think when I tried to load a picture from image.asset
after creating a new dir asset/images/pic.jpg and add the asset in pubspec.ymal
when getting the package or something, that's when all this happened
Conclusion:
just create a new project, and when Creating flutter project dialog appear close Android studio from Task manager, then open it again but this time open an existing project which is the previous one
hope that works for you

@yanjiepeng
Copy link

there may be a way to resolve this problem
just install another version of dart
update environment variables
it will be fixed

@johnDivek
Copy link

On windows open task manager and kill the last dart child process in android studio

@BhatiPankaj
Copy link

just delete the flutter/bin/cache/lock file and then do flutter upgrade in ide and it will solve your problem.

@LucasJorgeHubert
Copy link

just remove lock file and restart my Mac work for me

@msndvlpr
Copy link

I solved the problem by opening task manager and killing the 'dart.exe' process(es)

@hgadjan
Copy link

hgadjan commented Oct 16, 2019

You can: rm ./flutter/bin/cache/lockfile

Work for me,
thank you

@originalix
Copy link

@CompileYouth That's wored for me. Thanks

@rahmanrezaee
Copy link

In my case, following command in Terminal or cmd helped (as suggested by Günter):

killall -9 dart

On Windows (as suggested by upupming):

taskkill /F /IM dart.exe

or remove this file

<YOUR FLUTTER FOLDER>/bin/cache/lockfile

This releases the occupied lock and makes you able to run other commands.

@zacdaryl
Copy link

On Mac, open Activity Monitor, search dart, then quit all dart process

@lock
Copy link

lock bot commented Apr 4, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@lock lock bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests