[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
Just remove the .lock
file. It is used when resolving dependancies and to avoid conflicts if you launch two Play consoles.
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).
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.
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