FSC works in the latest build!

It makes my compilation x4 faster! Was 20sec and now only 5sec!

FSC icon in the status bar
Screen Shot 2011-09-19 at 4.52.21 PM.png

Project structure
Screen Shot 2011-09-19 at 4.50.19 PM.png

Settings
Screen Shot 2011-09-19 at 4.51.11 PM.png

0
36 comments
Avatar
Permanently deleted user

Smooth!
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.

0
Avatar
Permanently deleted user

Excellent!

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.

0

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

0
Avatar
Permanently deleted user

Oh! I also got that today. Cleaning caches / restart / complete rebuild didn't help. Installing build 1407 finally helped, and so far no error.

0

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.

0
Avatar
Permanently deleted user

FSC is probably also not the culprit, because when I switched back to "standard Scala compiler", the error still appeared. Strange.

0

not working for me:

Information:Compilation completed with 4 errors and 0 warnings
Information:4 errors
Information:0 warnings
Error: error while loading package, class file 'S:\tools\scala builds\scala-2.9.1.final\lib\scala-library.jar(scala/package.class)' is broken
Error:(class java.lang.NullPointerException)
Error: error while loading Class, class file 'S:\Program Files\Java\jdk1.6.0_20\jre\lib\rt.jar(java/lang/Class.class)' is broken
Error:

:(

any ideas?

0

Please, ensure there's no Scala compiler / library versions conflict, then run Rebuild.

0

It is likely that you have an empty "Project SDK" (I've just added a proper validation).

0

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?

0

i'm getting the NPE, no matter what i do. anything i can do to get more information?

0
Avatar
Permanently deleted user

HamsterofDeath schrieb:

not working for me:

Information:Compilation completed with 4 errors and 0 warnings
Information:4 errors
Information:0 warnings
Error: error while loading package, class file 'S:\tools\scala builds\scala-2.9.1.final\lib\scala-library.jar(scala/package.class)' is broken
Error:(class java.lang.NullPointerException)
Error: error while loading Class, class file 'S:\Program Files\Java\jdk1.6.0_20\jre\lib\rt.jar(java/lang/Class.class)' is broken
Error:

:(

any ideas?


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 2.9.0.1. I'm using JDK 1.7, but seems to make no difference as Hamster is using 1.6.

0

i tried both 1.6 and 1.7 and different scala versions - same error everywhere

0

I'm unable to reproduce the problem, sorry. Is there a sure way to do it (a demo project or a sequence of steps)?

0
Avatar
Permanently deleted user

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?

0
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

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.

Any thoughts?

0

i can try to reproduce the problem using a virtual machine (oracle virtualbox) and upload that whole thing. that might help, right?

0
Avatar
Permanently deleted user

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.

0

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...

0
Avatar
Permanently deleted user

I do have whitespace in my path. I will remove the whitespace and report on whether or not it fixed the problem.

0
Avatar
Permanently deleted user

HamsterofDeath schrieb:

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...


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 :-)

0
Avatar
Permanently deleted user

I removed the whitespace, now it works! I'm excited, I finally get to use fsc :D

0

Thank you very much for figuring it out! We'll fix the problem with whitespaces soon.

0

The problem is fixed.

0

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.

0
Avatar
Permanently deleted user

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:

java.util.NoSuchElementException: None.get
    at scala.None$.get(Option.scala:275)
    at scala.None$.get(Option.scala:273)
    at org.jetbrains.plugins.scala.components.CompileServerLauncher.readPort(CompileServerLauncher.scala:113)
    at org.jetbrains.plugins.scala.components.CompileServerLauncher.start(CompileServerLauncher.scala:53)
    at org.jetbrains.plugins.scala.components.CompileServerLauncher.init(CompileServerLauncher.scala:37)
    at org.jetbrains.plugins.scala.components.CompileServerManager$Start$.actionPerformed(CompileServerManager.scala:129)
    at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:506)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.a(FocusManagerImpl.java:509)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.e(FocusManagerImpl.java:492)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.d(FocusManagerImpl.java:476)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:52)
    at com.intellij.openapi.wm.impl.FocusManagerImpl$1.runEdt(FocusManagerImpl.java:82)
    at com.intellij.openapi.util.EdtRunnable$1.run(EdtRunnable.java:25)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:662)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:515)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:411)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2011-10-13 22:16:05,218 [36159890]  ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 10.5.2  Build #IU-107.587
2011-10-13 22:16:05,218 [36159890]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_22
2011-10-13 22:16:05,218 [36159890]  ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2011-10-13 22:16:05,218 [36159890]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2011-10-13 22:16:05,218 [36159890]  ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2011-10-13 22:16:05,218 [36159890]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: CompileDirty

0
Avatar
Permanently deleted user

I just tested out the new FSC support, and it looks like it's working great. IDEA 10.5.2 on Win7 x64.  Thanks!

Sam

0

Please sign in to leave a comment.