11 Replies Last post: Dec 28, 2012 11:31 PM by Pavel Fatin  
Oleksii Iepishkin Novice 121 posts since
Aug 21, 2002
Currently Being Moderated

Dec 20, 2012 3:36 AM

How to configure external build with scala

I was able to configure External Build with scala plugin (v.0.7.41). Here are my steps:

 

1. Open Settings -> Compiler and select "Use external build". Close the dialog

Screen Shot 2012-12-19 at 6.24.53 PM.png

 

2. Open Project Structure -> Global Libraries and create a library with scala-library.jar and scala-compiler.jar files. Right now scala plugin has these names hardcoded and will fail if you use different names.

Screen Shot 2012-12-19 at 6.23.51 PM.png

 

3. Open Project Structure -> Facets and in every scala facet select the library created in step #2 as Compiler Library.

Screen Shot 2012-12-19 at 6.26.17 PM.png

 

4. Stop FSC if you have it running. There is and icon in the status bar. Click and select Stop.

Screen Shot 2012-12-19 at 6.28.14 PM.png

5. Build -> Make

Barry Kaplan Novice 299 posts since
Sep 28, 2006
Currently Being Moderated
Dec 20, 2012 9:26 PM in response to: Oleksii Iepishkin
Re: How to configure external build with scala

Not for me. When I try to compile anything I get Unknown source file errors. eg:

 

: Error: Unknown source file: /mnt/ssd/si/vimana.dev/servers/si-infra/src/main/scala/com/mongodb/ErrorInterceptingDB.scala

java.lang.RuntimeException: Unknown source file: /mnt/ssd/si/vimana.dev/servers/si-infra/src/main/scala/com/mongodb/ErrorInterceptingDB.scala

 

Barry Kaplan Novice 299 posts since
Sep 28, 2006
Currently Being Moderated
Dec 21, 2012 12:04 AM in response to: Oleksii Iepishkin
Re: How to configure external build with scala

No, its my SSD. Its internal. However the directory containing the idea project is soft linked to the SSD (on lunix).

Pavel Fatin JetBrains 214 posts since
Nov 12, 2009
Currently Being Moderated
Dec 24, 2012 11:07 PM in response to: Barry Kaplan
Re: How to configure external build with scala

The problem with links is fixed in the latest plugin builds.

Alexander Podkhalyuzin JetBrains 893 posts since
Jun 7, 2008
Currently Being Moderated
Dec 25, 2012 10:48 AM in response to: Oleksii Iepishkin
Re: How to configure external build with scala

Probably you are using "compile independent modules in parallel" option?

 

Best regards,

Alexander Podkhalyuzin.

Pavel Fatin JetBrains 214 posts since
Nov 12, 2009

More Like This

  • Retrieving data ...