softprops/ls — Issue #32: ghuser/repo defaults should not break plugin
Author: softprops
Created: 2011-11-26 19:12:16+00:00
State: open
Labels: plugin

reported on sbt list. don't assume git is on the users path.

[info] Loading global plugins from /Users/hhrutz/.sbt/plugins
[info] Loading project definition from /Users/hhrutz/Documents/devel/ScalaOSC/project
[error] java.io.IOException: Cannot run program "git": error=2, No such file or directory
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? last
[info] Loading global plugins from /Users/hhrutz/.sbt/plugins
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set()
[debug] modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug]
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] Initially invalidated: Set()
[debug] Copy resource mappings:
[debug]
[debug] Other repositories:
[debug] Default repositories:
[debug] URLRepository(typesafe-ivy-releases,sbt.Patterns@92eb86)
[debug] Raw(ProjectResolver(inter-project, mapped: ))
[debug] FileRepository(local,FileConfiguration(true,None),sbt.Patterns@e0bfc9)
[debug] sbt-idea-repo: http://mpeltonen.github.com/maven/
[debug] public: http://repo1.maven.org/maven2/
[debug] Scala-Tools Maven2 Repository: http://scala-tools.org/repo-releases
[debug] Using inline dependencies specified in Scala.
[debug] post 1.3 ivy file: using exact as default matcher
[info] Loading project definition from /Users/hhrutz/Documents/devel/ScalaOSC/project
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set()
[debug] modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set()
[debug]
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] Initially invalidated: Set()
[debug] Copy resource mappings:
[debug]
java.io.IOException: Cannot run program "git": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:380)
at sbt.AbstractProcessBuilder.lines(ProcessImpl.scala:155)
at sbt.AbstractProcessBuilder.lines_$bang(ProcessImpl.scala:150)
at ls.Plugin$.maybeRepo(ls.scala:455)
at ls.Plugin$$anonfun$lsPublishSettings$14.apply(ls.scala:405)
at ls.Plugin$$anonfun$lsPublishSettings$14.apply(ls.scala:405)
at sbt.Init$Value$$anonfun$apply$5.apply(Settings.scala:309)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$constant$1.apply(INode.scala:151)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$constant$1.apply(INode.scala:151)
at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:170)
at sbt.EvaluateSettings$INode.evaluate(INode.scala:126)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.apply$mcV$sp(INode.scala:61)
at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:70)
at sbt.EvaluateSettings$$anon$3.run(INode.scala:66)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:380)
at sbt.AbstractProcessBuilder.lines(ProcessImpl.scala:155)
at sbt.AbstractProcessBuilder.lines_$bang(ProcessImpl.scala:150)
at ls.Plugin$.maybeRepo(ls.scala:455)
at ls.Plugin$$anonfun$lsPublishSettings$14.apply(ls.scala:405)
at ls.Plugin$$anonfun$lsPublishSettings$14.apply(ls.scala:405)
at sbt.Init$Value$$anonfun$apply$5.apply(Settings.scala:309)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$constant$1.apply(INode.scala:151)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$constant$1.apply(INode.scala:151)
at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:170)
at sbt.EvaluateSettings$INode.evaluate(INode.scala:126)
at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.apply$mcV$sp(INode.scala:61)
at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:70)
at sbt.EvaluateSettings$$anon$3.run(INode.scala:66)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)

this is a real show stopper for me, since all my projects rely on using the sbt integration of IDEA. if i run sbt from a terminal, there seems to be no problem with git lookup.

my settings are in this case:

seq( lsSettings :_* )

(LsKeys.tags in LsKeys.lsync) := Seq( "osc", "open-sound-control", "sound", "network" )

(description in LsKeys.lsync) := "A library for OpenSoundControl (OSC), a message protocol used in multi-media applications."

// (LsKeys.ghUser in LsKeys.lsync) := Some( "Sciss" )

// (LsKeys.ghRepo in LsKeys.lsync) := Some( "ScalaOSC" )

(i commented out the github stuff, since i wasn't sure it was involved in ls trying to run 'git').