Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone repo and run sbt scripted fails #111

Open
stevejagodzinski opened this issue Jan 26, 2017 · 2 comments
Open

Clone repo and run sbt scripted fails #111

stevejagodzinski opened this issue Jan 26, 2017 · 2 comments

Comments

@stevejagodzinski
Copy link

stevejagodzinski commented Jan 26, 2017

I am trying to contribute to your project and implement #110. But, when I fork the repo, and run sbt scripted, the build fails.

I have tried running as both my local user and using a command prompt promoted to local administrator.

I see that the travis-ci build is passing. Wish I could help.

Build output attached.

xsbt.test.TestException: {line 34}  Command failed
        at xsbt.test.ScriptRunner.xsbt$test$ScriptRunner$$processStatement$1(ScriptRunner.scala:23)
        at xsbt.test.ScriptRunner$$anonfun$apply$2.apply(ScriptRunner.scala:38)
        at xsbt.test.ScriptRunner$$anonfun$apply$2.apply(ScriptRunner.scala:38)
        at scala.Function$$anonfun$tupled$1.apply(Function.scala:77)
        at scala.Function$$anonfun$tupled$1.apply(Function.scala:76)
        at scala.collection.immutable.List.foreach(List.scala:318)
        at xsbt.test.ScriptRunner.apply(ScriptRunner.scala:38)
        at sbt.test.ScriptedTests.runTest$1(ScriptedTests.scala:73)
        at sbt.test.ScriptedTests.sbt$test$ScriptedTests$$scriptedTest(ScriptedTests.scala:82)
        at sbt.test.ScriptedTests$$anonfun$scriptedTest$1$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(ScriptedTests.scala:42)
        at sbt.test.ScriptedTests$$anonfun$scriptedTest$1$$anonfun$apply$1$$anonfun$apply$2$$anonfun$apply$3.apply(ScriptedTests.scala:36)
        at sbt.Resources.sbt$Resources$$readWrite$1(Resources.scala:58)
        at sbt.Resources$$anonfun$readWriteResourceDirectory$1.apply(Resources.scala:60)
        at sbt.Resources$$anonfun$readWriteResourceDirectory$1.apply(Resources.scala:60)
        at sbt.IO$.withTemporaryDirectory(IO.scala:344)
        at sbt.Resources.readWriteResourceDirectory(Resources.scala:60)
        at sbt.Resources.readWriteResourceDirectory(Resources.scala:48)
        at sbt.test.ScriptedTests$$anonfun$scriptedTest$1$$anonfun$apply$1$$anonfun$apply$2.apply(ScriptedTests.scala:36)
        at sbt.test.ScriptedTests$$anonfun$scriptedTest$1$$anonfun$apply$1$$anonfun$apply$2.apply(ScriptedTests.scala:34)
        at sbt.test.ScriptedRunner$$anonfun$3.apply(ScriptedTests.scala:154)
        at sbt.test.ScriptedRunner$$anonfun$3.apply(ScriptedTests.scala:154)
        at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
        at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
        at scala.collection.mutable.ArraySeq.foreach(ArraySeq.scala:73)
        at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
        at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
        at sbt.test.ScriptedRunner.runAll(ScriptedTests.scala:154)
        at sbt.test.ScriptedRunner.run(ScriptedTests.scala:151)
        at sbt.test.ScriptedRunner.run(ScriptedTests.scala:125)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at sbt.ScriptedPlugin$$anonfun$scriptedTask$1$$anonfun$apply$3$$anonfun$apply$4.apply(ScriptedPlugin.scala:61)
        at sbt.ScriptedPlugin$$anonfun$scriptedTask$1$$anonfun$apply$3$$anonfun$apply$4.apply(ScriptedPlugin.scala:57)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
        at sbt.std.Transform$$anon$4.work(System.scala:63)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
        at sbt.Execute.work(Execute.scala:237)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
        at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Cannot run program "test" (in directory "C:\Users\STEVEN~1.JAG\AppData\Local\Temp\sbt_99690325\copy-dependencies"): CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:349)
        at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:126)
        at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:154)
        at xsbt.test.FileCommands.execute0(FileCommands.scala:76)
        at xsbt.test.FileCommands.execute(FileCommands.scala:71)
        at xsbt.test.FileCommands$$anonfun$commandMap$9.apply(FileCommands.scala:23)
        at xsbt.test.FileCommands$$anonfun$commandMap$9.apply(FileCommands.scala:23)
        at xsbt.test.FileCommands$CommandBuilder$$anonfun$nonEmpty$1.apply(FileCommands.scala:91)
        at xsbt.test.FileCommands$CommandBuilder$$anonfun$nonEmpty$1.apply(FileCommands.scala:87)
        at xsbt.test.FileCommands$$anonfun$apply$1.apply(FileCommands.scala:31)
        at xsbt.test.FileCommands$$anonfun$apply$1.apply(FileCommands.scala:31)
        at scala.Option.map(Option.scala:145)
        at xsbt.test.FileCommands.apply(FileCommands.scala:31)
        at xsbt.test.BasicStatementHandler$class.apply(StatementHandler.scala:16)
        at xsbt.test.FileCommands.apply(FileCommands.scala:10)
        at xsbt.test.FileCommands.apply(FileCommands.scala:10)
        at xsbt.test.ScriptRunner.xsbt$test$ScriptRunner$$processStatement$1(ScriptRunner.scala:16)
        ... 51 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
        at java.lang.ProcessImpl.start(ProcessImpl.java:137)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 68 more

testOutput.txt

@xerial
Copy link
Owner

xerial commented Jan 26, 2017

It seems your are using Windows, and your user name contains white space characters. I suspect this is causing the following error:

Caused by: java.io.IOException: Cannot run program "test" (in directory "C:\Users\STEVEN~1.JAG\AppData\Local\Temp\sbt_99690325\copy-dependencies"): CreateProcess error=2, The system cannot find the file specified

@stevejagodzinski
Copy link
Author

Thanks, I will see if I can find a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants