Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle OverlappingFileLockException in FileLock (#4335)
I've been getting exceptions such as these lately, using Mill `0.12.5`: ```text An unexpected error occurred java.nio.channels.OverlappingFileLockException java.base/sun.nio.ch.FileLockTable.checkList(FileLockTable.java:229) java.base/sun.nio.ch.FileLockTable.add(FileLockTable.java:123) java.base/sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1522) java.base/java.nio.channels.FileChannel.tryLock(FileChannel.java:1360) mill.main.client.lock.FileLock.tryLock(FileLock.java:21) mill.runner.MillMain$.withOutLock(MillMain.scala:447) mill.runner.MillMain$.$anonfun$main0$9(MillMain.scala:247) mill.runner.MillMain$.$anonfun$main0$9$adapted(MillMain.scala:225) mill.runner.Watching$.watchLoop(Watching.scala:29) mill.runner.MillMain$.$anonfun$main0$8(MillMain.scala:277) mill.runner.MillMain$.$anonfun$main0$8$adapted(MillMain.scala:213) scala.util.Using$.resource(Using.scala:296) ``` This ought to fix them.
- Loading branch information