Scala Compiler Won't Run

Hi,

Attempting Make Project or Rebuild Project gives this:

Information:
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Compiler internal error. Process terminated with exit code 1



I invalidated the caches and relaunched IDEA and the error still occurs.
I've switched from 2.7.4 to 2.7.3 and the error remains.


IDEA 8.1.2 #9852
Sun JDK 1.6.0_13
OS: Linux 2.6.27.23-0.1-pae (openSUSE 11.1)
Platform: Intel x86


Randall Schulz

8 comments
Comment actions Permalink

Addendum: No output is sent to the standard out or standard error streams when this error occurs.

RRS

0
Comment actions Permalink

Currently, some error messages from scalac are swallowed: http://jetbrains.net/jira/browse/SCL-996

I have experienced this often with missing indirect dependencies, for example using Specs without having a dependency of Scalacheck; and once when scalac tried to read a Cp1252 file as UTF-8.

You can try to reproduce the compile error on the command line via Maven / Simple Build Tool, or drectly using scalac.

0
Comment actions Permalink

Odd you should mention that. Since this error cut me off from incremental compilation and even my modest project takes over a half a minute to build via Ant, I decided to get set up with SBT. Doing that disclosed that my command-line CLASSPATH (which I used as a reference copy JARs to the SBT project's dependency directory) was missing ScalaCheck. But the IDEA configuration does include all the necessary JARs. And I haven't added any code with new external dependencies.

To be clear, independent compilation (outside IDEA) using Ant and SBT both succeed.

So I think it remains an open question what is causing this error.


Randall Schulz

0
Comment actions Permalink

I should would appreciate some clues on how to diagnose this problem. I'm not getting much feedback from IDEA.


Randall Schulz

0
Comment actions Permalink

Hello, Randall.

As usual, the better way to help us to reproduce a problem (varian with wrong encoding sounds reasonable, but it seems this is not your case) is to send us a little project to test. Presumably, problems may start since last build, where I changed some of compiler keys. What vesrion of Scala plugin do you use now?

With best regards,
Ilya

0
Comment actions Permalink

Sorry, I forgot to include the Scala verson (it is the latest—I always run the latest):

Scala plug-in: 0.2.24703

And now I'm running IDEA 8.1.3 (#9886)

As for a project that reproduces this, I have no idea how to do that. (Keep in mind that the compiler basically does not even get going.) Also, I the symptom did not coincide with any software update, wither IDEA itself or the Scala plug-in.


Randall Schulz

0
Comment actions Permalink

I removed the Scala plug-in using the Plug-in Manager then eradicated every JAR file under ~/.IntelliJIdea80 and ~/.IntelliJIdea8x with "scala" or "Scala" in its name then reinstalled the Scala plug-in using the plug-in manager and now the compiler is working again.

Evidently something got corrupted somehow.


Randall Schulz

0
Comment actions Permalink

Indeed miracles do not happen, but I cannnot assume anything resonable for this case.

With best regards,
Ilya

0

Please sign in to leave a comment.