scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

Evaluator crashed - java.io.IOException: No such file or directory #109

Open dotta opened 11 years ago

dotta commented 11 years ago

I got this while creating a worksheet with V0.1.2. It's not a big issue (the worksheet is robust enough to self-heal), but it would be nice to have a look and see what can be done to fix it.

java.io.IOException: No such file or directory
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:883)
    at org.scalaide.worksheet.runtime.Configuration$$anonfun$createFile$1.apply(Configuration.scala:49)
    at org.scalaide.worksheet.runtime.Configuration$$anonfun$createFile$1.apply(Configuration.scala:48)
    at org.scalaide.worksheet.runtime.Configuration.create(Configuration.scala:55)
    at org.scalaide.worksheet.runtime.Configuration.createFile(Configuration.scala:48)
    at org.scalaide.worksheet.runtime.Configuration.touchSource(Configuration.scala:71)
    at org.scalaide.worksheet.runtime.SourceInstrumenter.org$scalaide$worksheet$runtime$SourceInstrumenter$$writeInstrumented(SourceInstrumenter.scala:45)
    at org.scalaide.worksheet.runtime.SourceInstrumenter$$anonfun$instrument$1.apply(SourceInstrumenter.scala:23)
    at org.scalaide.worksheet.runtime.SourceInstrumenter$$anonfun$instrument$1.apply(SourceInstrumenter.scala:21)
    at scala.Either$RightProjection.map(Either.scala:533)
    at org.scalaide.worksheet.runtime.SourceInstrumenter.instrument(SourceInstrumenter.scala:21)
    at org.scalaide.worksheet.runtime.WorksheetRunner$$anonfun$act$1$$anonfun$apply$2.apply(WorksheetRunner.scala:59)
    at org.scalaide.worksheet.runtime.WorksheetRunner$$anonfun$act$1$$anonfun$apply$2.apply(WorksheetRunner.scala:52)
    at scala.actors.ReactorTask.run(ReactorTask.scala:31)
    at scala.actors.Reactor$class.resumeReceiver(Reactor.scala:129)
dotta commented 11 years ago

This can be reproduced consistently when creating a worksheet named queries (wow!?)

dotta commented 11 years ago

This can be reproduced consistently when creating a worksheet named queries (wow!?)

And, of course, I can't reproduce this anymore...