Scala 2.8.x Snapshot Problem

Hi there,
when I use a 2.8.x snapshot *older* than

scala-library-2.8.0-20090528.003955-138.jar 

I get the following exception when trying to build my Scala project:

Information:Compilation completed with 15 errors and 0 warnings
Information:15 errors
Information:0 warnings
Error:Scalac internal error: class java.lang.reflect.InvocationTargetException [sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)][java.io.WinNTFileSystem.createFileExclusively(Native Method), java.io.File.createNewFile(File.java:883), scala.tools.nsc.Global.<init>(Global.scala:224), scala.tools.nsc.Main$compiler$3$.<init>(Main.scala:57), scala.tools.nsc.Main$.compiler$2(Main.scala:57), scala.tools.nsc.Main$.process(Main.scala:72), scala.tools.nsc.Main$.main(Main.scala:87), scala.tools.nsc.Main.main(Main.scala), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25), java.lang.reflect.Method.invoke(Method.java:597), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)]
Error:sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error:sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Error:sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Error:java.lang.reflect.Method.invoke(Method.java:597)
Error:org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:74)
Error:Caused by java.io.IOException: Access is denied
Error:java.io.WinNTFileSystem.createFileExclusively(Native Method)
Error:java.io.File.createNewFile(File.java:883)
Error:scala.tools.nsc.Global.<init>(Global.scala:224)
Error:scala.tools.nsc.Main$compiler$3$.<init>(Main.scala:57)
Error:scala.tools.nsc.Main$.compiler$2(Main.scala:57)
Error:scala.tools.nsc.Main$.process(Main.scala:72)
Error:scala.tools.nsc.Main$.main(Main.scala:87)
Error:scala.tools.nsc.Main.main(Main.scala)

Any ideas?

2 comments
Comment actions Permalink

When running IDEA with administrator privileges (Vista), the error does not occur anymore.

What and where is IDEA trying to create the files? Only happens with the June 2.8.x snapshots.

0
Comment actions Permalink

Try running FileMon from the SysInternals suite, available from Microsoft. This lets you track all file access.

The problem could either be the IntelliJ process, or scalac.exe that it spawns.

0

Please sign in to leave a comment.