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

前端 未结 4 1070
情深已故
情深已故 2021-02-02 13:55
[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         


        
相关标签:
4条回答
  • 2021-02-02 14:24

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

    0 讨论(0)
  • 2021-02-02 14:38

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

    0 讨论(0)
  • 2021-02-02 14:42

    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.

    0 讨论(0)
  • 2021-02-02 14: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

    0 讨论(0)
提交回复
热议问题