On Sat, 22 Sep 2012 20:25:28 -0400
Josh Suereth <
joshua....@gmail.com> wrote:
> Hey guys, I just duplicated this issue. I'm looking for a solution. I
> think it *may* be related to permissions n the BAT file on MSI install (or
> some other "you can't see these permissions easily" issues). I'm
> investigating workarounds now that I can duplicate.
There is a property in the [boot] section of sbt.boot.properties:
lock: false
that disables using file locks. With that setting, it is important that only one instance of sbt is run at a time to avoid corruption.
-Mark
> >>>> java.nio.channels.**OverlappingFileLockException
> >>>> at sun.nio.ch.FileChannelImpl$**SharedFileLockTable.checkList(*
> >>>> *FileChannelImpl.java:1166)
> >>>> at sun.nio.ch.FileChannelImpl$**SharedFileLockTable.add(**
> >>>> FileChannelImpl.java:1068)
> >>>> at sun.nio.ch.FileChannelImpl.**tryLock(FileChannelImpl.java:**
> >>>> 868)
> >>>> at java.nio.channels.FileChannel.**
> >>>> tryLock(FileChannel.java:962)
> >>>> at xsbt.boot.Locks$GlobalLock.**withChannel$1(Locks.scala:65)
> >>>> at xsbt.boot.Locks$GlobalLock.**withChannelRetries$1(Locks.**
> >>>> scala:58)
> >>>> at xsbt.boot.Locks$GlobalLock$$**anonfun$withFileLock$1.apply(*
> >>>> *Locks.scala:79)
> >>>> at xsbt.boot.Using$.withResource(**Using.scala:11)
> >>>> at xsbt.boot.Using$.apply(Using.**scala:10)
> >>>> at xsbt.boot.Locks$GlobalLock.**liftedTree1$1(Locks.scala:51)
> >>>> at xsbt.boot.Locks$GlobalLock.**withLock(Locks.scala:51)
> >>>> at xsbt.boot.Locks$.apply0(Locks.**scala:30)
> >>>> at xsbt.boot.Locks$.apply(Locks.**scala:27)
> >>>> at xsbt.boot.Update.apply(**JavaConversions.scala:89)
> >>>> at xsbt.boot.Provider$initialize.**call(Provider.scala:34)
> >>>> at xsbt.boot.Locks$GlobalLock.**withChannel$1(Locks.scala:75)
> >>>> at xsbt.boot.Locks$GlobalLock.**withChannelRetries$1(Locks.**
> >>>> scala:58)
> >>>> at xsbt.boot.Locks$GlobalLock$$**anonfun$withFileLock$1.apply(*
> >>>> *Locks.scala:79)
> >>>> at xsbt.boot.Using$.withResource(**Using.scala:11)
> >>>> at xsbt.boot.Using$.apply(Using.**scala:10)
> >>>> at xsbt.boot.Locks$GlobalLock.**liftedTree1$1(Locks.scala:51)
> >>>> at xsbt.boot.Locks$GlobalLock.**withLock(Locks.scala:51)
> >>>> at xsbt.boot.Locks$.apply0(Locks.**scala:30)
> >>>> at xsbt.boot.Locks$.apply(Locks.**scala:27)
> >>>> at scala.collection.mutable.**FlatHashTable$class.$init$(**
> >>>> Proxy.scala:32)
> >>>> at xsbt.boot.Launch$**ScalaProvider$AppProvider.<**
> >>>> init>(Launch.scala:130)
> >>>> at xsbt.boot.Launch$**ScalaProvider.app(Launch.**scala:128)
> >>>> at xsbt.boot.Launch$.run(Launch.**scala:50)
> >>>> at xsbt.boot.Launch$$anonfun$**explicit$1.apply(Launch.scala:**
> >>>> 43)
> >>>> at xsbt.boot.Launch$.launch(**Launch.scala:68)
> >>>> at xsbt.boot.Launch$.apply(**Launch.scala:14)
> >>>> at xsbt.boot.Boot$.runImpl(Boot.**scala:25)
> >>>> at xsbt.boot.Boot$.main(Boot.**scala:15)
> >>>> at xsbt.boot.Boot.main(Boot.**scala)
> >>>> at SbtJansiLaunch.main(**SbtJansiLaunch.java:4)
> >>>> Error during sbt execution: java.nio.channels.**
> >>>> OverlappingFileLockException