Why would my play framework say wait for a .sbt lo

2019-03-11 04:11发布

[Sally] $ run

[info] Updating {file:/Users/MyName/Desktop/sally/todolist/}Sally...
Waiting for lock on /Users/MyName/Documents/play-2.1.3/repository/.sbt.ivy.lock to be available...

Sally is my project's name. I am learning how to use play. Yesterday It was all awesome. Today when I woke up and opened my computer, everything went to hell. I kept seeing this message when I try to run the program.

What is this lock anyway? Should I uninstall/remove the framework and reinstall it?? (Btw how do I do that?)

4条回答
Juvenile、少年°
2楼-- · 2019-03-11 04:40

I ran the following commands to fix this.

$ ps aux | grep sbt

Get the process ids and kill it.(like below)

$ kill -9 112233 565644

And then run sbt run to start the app.

查看更多
Root(大扎)
3楼-- · 2019-03-11 04:44

Deleting the .lock file also works. But if you don't want to delete the lock file, you can unlock the file from the process which has the lock. If you are on windows, you can use a UI tool called "Unlocker" to do this (go to that file=>right click=>select unlocker).

查看更多
劳资没心,怎么记你
4楼-- · 2019-03-11 04:49

Just remove the .lock file. It is used when resolving dependancies and to avoid conflicts if you launch two Play consoles.

查看更多
够拽才男人
5楼-- · 2019-03-11 04:49

On my windows machine, I managed to solve the above issue by killing the processes that use that lock file.

Use the following official tool from Microsoft to search for the processes that are using the lock file.

https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer

查看更多
登录 后发表回答