FSC works in the latest build! Follow Oleksii Iepishkin Created September 19, 2011 21:53 It makes my compilation x4 faster! Was 20sec and now only 5sec!FSC icon in the status barProject structureSettings
It should be possible to configure a global "Use FSC" so one doesn't have to loop thru all your modules enabling it for each one.
However, I noticed that for the SBT 0.7 generated IDEA project, if I set the "project" module to use FSC, FSC is restarted on every rebuild.
Setting "project" to the standard Scala compiler (2.7) and the rest of the modules to FSC (2.9.1) fixed the problem.
The compilation is faster, especially if only parts of the project need rebuilding.
I tried enabling FSC for my fairly large multi-module Maven project, and once again I get the dreaded "Compiler internal error. Process terminated with exit code 1".
idea.log is useless:
2011-09-21 10:20:53,411 [ 34830] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2011-09-21 10:20:53,574 [ 34993] INFO - lij.compiler.impl.CompilerUtil - Initial VFS refresh took 112 ms: 0 min 0sec
2011-09-21 10:20:58,747 [ 40166] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED; Errors: 1; warnings: 0 took 5336 ms: 0 min 5sec
Oh! I also got that today. Cleaning caches / restart / complete rebuild didn't help. Installing build 1407 finally helped, and so far no error.
I'm on 1407 already... This is a pretty old symptom, I've been seeing it for years but never managed to pin down a common cause.
FSC is probably also not the culprit, because when I switched back to "standard Scala compiler", the error still appeared. Strange.
not working for me:
Please, ensure there's no Scala compiler / library versions conflict, then run Rebuild.
set everything to 2.9.1 final, but i still get:
It is likely that you have an empty "Project SDK" (I've just added a proper validation).
still not working, i'm back at the original NPE without stacktrace (used 2.9.1 everywhere). it doesn't seem to matter which jdk is set in the project settings. is there a log that i could switch on which tells me more?
You may check Real FSC support blog post.
i'm getting the NPE, no matter what i do. anything i can do to get more information?
I'm getting exactly the same error and I've no idea what it could be. Maybe a problem specific to version 2.9.1? The examples all seem to be based on 220.127.116.11. I'm using JDK 1.7, but seems to make no difference as Hamster is using 1.6.
i tried both 1.6 and 1.7 and different scala versions - same error everywhere
I'm unable to reproduce the problem, sorry. Is there a sure way to do it (a demo project or a sequence of steps)?
I just created a project from scratch with default options selected. I let the IDE create the global compiler library based on my Scala 2.9.1 home directory, enable FSC. But same error. I'm using a 64-bit JDK, could that be the problem?
I'm using 64 bit JDK, Scala 2.9.1 and both on Kubuntu 11.04 and Windows 7 I had no problems with FSC.
I’m finding it impossible to get rid of the “Compiler internal error. Process terminated with exit code 1″ error. Non-fsc compile works fine. idea.log has nothing useful in it. I’m on IntelliJ 10.5.2 with Scala plugin 0.4.1440. My project appears to be identically configured to that of a coworker who is using fsc just fine. I’m on Windows, he’s on OSX.
There is nothing on the net that offers any answers. I see a lot of you are using Scala 2.9, but it works fine on my coworkers computer with Scala 2.8.1.
i can try to reproduce the problem using a virtual machine (oracle virtualbox) and upload that whole thing. that might help, right?
Yes, that would help.
I will also try to repro with a fresh install in a virtual machine. At this point I've tried a billion variations of options and can't get it to work on my dev machine, so a fresh virtual machine would be a good approach.
just a random thing before i go all out: do all people with the mysterious problem have a whitespace in their project path, and those who don't don't?
that seems to be it for me...
I do have whitespace in my path. I will remove the whitespace and report on whether or not it fixed the problem.
That's it. A darn whitespace ...
I created a test project in "TestProject", works. Renaming the folder to "Test Project", and voila, the dreaded error. It's the whitespace. I hope this can be fixed soon.
Thank you Hamster :-)
I removed the whitespace, now it works! I'm excited, I finally get to use fsc :D
Thank you very much for figuring it out! We'll fix the problem with whitespaces soon.
The problem is fixed.
once again, the community and jetbrains worked together 24/7/365 to provide everyone with the awesome experience of a fast scala compilation.
i'm going to spend the next 4 hours in my basement incrementally compiling stuff quickly.
I'm having mixed results with my Maven 2.9.1 projects. On a single module project I can start the FSC and get the compliation to work (really sweet). However on my larger project (with multiple modules, some in Scala, some in Java, some POM, and scala definition on the main POM), I can't start the compiler and get an every whenever at least one module uses FSC (internal):
Internal error (Plugin: org.intellij.scala): None.get
I have no white space on the path I'm running IDEA 10.5.2 with plugin 0.4.1461.
On the logs I see the following error:
2011-10-13 22:16:05,218  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 10.5.2 Build #IU-107.587
2011-10-13 22:16:05,218  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_22
2011-10-13 22:16:05,218  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2011-10-13 22:16:05,218  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2011-10-13 22:16:05,218  ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2011-10-13 22:16:05,218  ERROR - com.intellij.ide.IdeEventQueue - Last Action: CompileDirty
I just tested out the new FSC support, and it looks like it's working great. IDEA 10.5.2 on Win7 x64. Thanks!