Dear all,
[My apologies if this is not the right list for SBT problems. If so, please guide me to the right list.]
I have just installed SBT on Windows using the MSI here:
And, get the error messages in the P.S. when I try the first Hello World example of Getting Started with SBT:
Having tried Google, I see people with larger projects have had a similar problem for almost two years:
I also noticed the issue was closed 5 days ago. But, I fail to spot the solution. Any idea please?
TIA,
--Hossein
P.S.
C:\Program Files (x86)\sbt\bin>sbt new sbt/scala-seed.g8
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
WARN: No sbt.version set in project/build.properties, base directory: C:\Program Files (x86)\sbt\bin
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Set current project to bin (in build file:/C:/Program%20Files%20(x86)/sbt/bin/)
java.lang.RuntimeException: Could not create directory C:\Program Files (x86)\sbt\bin\target\streams\$global\projectDescriptors\$global\streams
at scala.sys.package$.error(package.scala:27)
at sbt.IO$.createDirectory(IO.scala:233)
at sbt.IO$.touch(IO.scala:209)
at sbt.std.Streams$$anon$3$$anon$2.make(Streams.scala:129)
at sbt.std.Streams$$anon$3$$anon$2.text(Streams.scala:113)
at sbt.std.Streams$$anon$3$$anon$2.log(Streams.scala:124)
at sbt.std.TaskStreams$class.log(Streams.scala:56)
at sbt.std.Streams$$anon$3$$anon$2.log$lzycompute(Streams.scala:102)
at sbt.std.Streams$$anon$3$$anon$2.log(Streams.scala:102)
at sbt.EvaluateTask$$anonfun$logIncomplete$2.log$1(EvaluateTask.scala:290)
at sbt.EvaluateTask$$anonfun$logIncomplete$2.apply(EvaluateTask.scala:294)
at sbt.EvaluateTask$$anonfun$logIncomplete$2.apply(EvaluateTask.scala:289)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at sbt.EvaluateTask$.logIncomplete(EvaluateTask.scala:289)
at sbt.EvaluateTask$.logIncResult(EvaluateTask.scala:282)
at sbt.EvaluateTask$.run$1(EvaluateTask.scala:365)
at sbt.EvaluateTask$.runTask(EvaluateTask.scala:378)
at sbt.EvaluateTask$$anonfun$apply$1$$anonfun$apply$3.apply(EvaluateTask.scala:279)
at sbt.EvaluateTask$$anonfun$apply$1$$anonfun$apply$3.apply(EvaluateTask.scala:279)
at scala.Option$WithFilter.map(Option.scala:206)
at sbt.EvaluateTask$$anonfun$apply$1.apply(EvaluateTask.scala:279)
at sbt.EvaluateTask$$anonfun$apply$1.apply(EvaluateTask.scala:278)
at sbt.EvaluateTask$.withStreams(EvaluateTask.scala:314)
at sbt.EvaluateTask$.apply(EvaluateTask.scala:278)
at sbt.Extracted.runTask(Extracted.scala:44)
at sbt.TemplateCommandUtil$.templateCommandParser(TemplateCommand.scala:25)
at sbt.TemplateCommandUtil$$anonfun$templateCommand$1.apply(TemplateCommand.scala:15)
at sbt.TemplateCommandUtil$$anonfun$templateCommand$1.apply(TemplateCommand.scala:15)
at sbt.Command$$anonfun$sbt$Command$$argParser$1.apply(Command.scala:78)
at sbt.Command$$anonfun$sbt$Command$$argParser$1.apply(Command.scala:78)
at sbt.Command$$anonfun$simpleParser$2$$anonfun$apply$8.apply(Command.scala:85)
at sbt.Command$$anonfun$simpleParser$2$$anonfun$apply$8.apply(Command.scala:82)
at sbt.complete.BindParser$$anonfun$resultEmpty$7.apply(Parser.scala:656)
at sbt.complete.BindParser$$anonfun$resultEmpty$7.apply(Parser.scala:656)
at sbt.complete.Parser$Value.flatMap(Parser.scala:159)
at sbt.complete.BindParser.resultEmpty$lzycompute(Parser.scala:656)
at sbt.complete.BindParser.resultEmpty(Parser.scala:656)
at sbt.complete.HomParser.resultEmpty$lzycompute(Parser.scala:625)
at sbt.complete.HomParser.resultEmpty(Parser.scala:625)
at sbt.complete.ParserMain$class.loop$1(Parser.scala:428)
at sbt.complete.ParserMain$class.result(Parser.scala:437)
at sbt.complete.Parser$.result(Parser.scala:132)
at sbt.complete.ParserMain$class.parse(Parser.scala:383)
at sbt.complete.DefaultParsers$.parse(Parsers.scala:261)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.State$$anon$1.doX$1(State.scala:183)
at sbt.State$$anon$1.process(State.scala:190)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:96)
at sbt.MainLoop$.run(MainLoop.scala:89)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:68)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:63)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:63)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:46)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:30)
at sbt.MainLoop$.runLogged(MainLoop.scala:22)
at sbt.StandardMain$.runManaged(Main.scala:109)
at sbt.xMain.run(Main.scala:38)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
[error] Could not create directory C:\Program Files (x86)\sbt\bin\target\streams\$global\projectDescriptors\$global\streams
[error] Use 'last' for the full log.
------------------------------------------------------------------
Seyed H. HAERI (Hossein), Dr.
Post-Doctoral Research Fellow
Department of Computing Science and Engineering
Catholic University of Louvain
Louvain-la-Neuve, Belgium
ACCU - Professionalism in programming -
http://www.accu.org/--------------------------------------------------------------------------------------------------------------