You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When invoking fsc by the compilation of a script fsc creates a /tmp/scala-devel directory that is writable only by the user.
A second user is not able to compile his scripts on the same machine. She gets the error: "Could not find a directory for temporary files".
in CompileSocket.scala
/** A temporary directory to use */
val tmpDir = {
val udir = Option(Properties.userName) getOrElse "shared"
val f = (Path(Properties.tmpDir) / "scala-devel" / udir).createDirectory()
if (f.isDirectory && f.canWrite) {
info("[Temp directory: " + f + "]")
f
}
else fatal("Could not find a directory for temporary files")
}
adding something like:
new java.io.File(Path(Properties.tmpDir) / "scala-devel").setWritable(true,false)
would maybe help.
When invoking fsc by the compilation of a script fsc creates a /tmp/scala-devel directory that is writable only by the user.
A second user is not able to compile his scripts on the same machine. She gets the error: "Could not find a directory for temporary files".
in CompileSocket.scala
/** A temporary directory to use */
val tmpDir = {
val udir = Option(Properties.userName) getOrElse "shared"
val f = (Path(Properties.tmpDir) / "scala-devel" / udir).createDirectory()
}
adding something like:
new java.io.File(Path(Properties.tmpDir) / "scala-devel").setWritable(true,false)
would maybe help.
see also this thread:
http://scala-programming-language.1934581.n4.nabble.com/fsc-Error-when-compiling-on-a-shared-machine-td3163377.html
The text was updated successfully, but these errors were encountered: