Why would my play framework say wait for a .sbt lock to be available?

匿名 (未验证) 提交于 2019-12-03 02:47:02

问题:

[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?)

回答1:

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



回答2:

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).



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!