Why doesn't my compile work?

I'm trying to set up IDEA IntelliJ for Scala 2.8 beta1.

I'm running Sun JDK 1.6.0_17.

I downloaded IntelliJ Community Edition 95.24.

Tried the scala plugin in the plugin manager, but that only offered Scala 2.7.

Downloaded git://git.jetbrains.org/idea/scala-plugin.git, edited scala.properties:

scala.plugin.version=0.3 idea.home=/Program Files/JetBrains/IntelliJ IDEA Community Edition 95.24 jdk.home=/Program Files/java/jdk1.6.0_17 scala.lib=/java/scala/lib





I have verified these directories (several times). However when I run ant I get this:

   [scalac] Compiling 3 scala and 1 java source files to C:\java\idea\scala-plug in\classes\production\Runners    [scalac] C:\Program Files\Java\jdk1.6.0_17\jre\bin\java.exe -Xmx724M -Xss32m -XX:MaxPermSize=200M -server -classpath C:\java\scala\lib\scala-compiler.jar;C:\ java\scala\lib\scala-library.jar scala.tools.nsc.Main @C:\Users\Magnus\AppData\L ocal\Temp\scalac-ant-6057452495627236695.args    [scalac] scala.tools.nsc.MissingRequirementError: object scala not found.    [scalac]     at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrCl ass(Definitions.scala:514)    [scalac]     at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage( Definitions.scala:43)    [scalac]     at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageC lass(Definitions.scala:44)    [scalac]     at scala.tools.nsc.symtab.Definitions$definitions$.UnitClass(Def initions.scala:86)    [scalac]     at scala.tools.nsc.symtab.Definitions$definitions$.init(Definiti ons.scala:770)    [scalac]     at scala.tools.nsc.Global$Run.<init>(Global.scala:620)    [scalac]     at scala.tools.nsc.Main$.process(Main.scala:109)    [scalac]     at scala.tools.nsc.Main$.main(Main.scala:124)    [scalac]     at scala.tools.nsc.Main.main(Main.scala)    [scalac] error: fatal error: object scala not found. BUILD FAILED



Any suggestions?

-Magnus

10 comments

i only have a question: why don't you use idea's make-button? it takes care of directory-fiddling

0

Where can I find instructions for building the plugin in IDEA? I'm a complete IDEA newbie..

-Magnus

0

i don't know if you need to do anything special, i never tried to compile the plugin. you should probably get some basic projects running (to make sure you understand how you have to set up a project and its modules in idea) before trying to compile something more complex

since you admitted to be a total newbie: are you sure you want to COMPILE the plugin, or do you want to compile scala code USING the plugin?

0

What I really want is to use the plugin to compile scala code for scala 2.8.0 beta 1. However, as far as I have been able to figure out I have to compile the plugin myself to be able to use it with 2.8.

-Magnus

0

use this:
http://confluence.jetbrains.net/display/SCA/Scala+Plugin+Nightly+Builds

most of them are pretty stable. about 1 out of 5 is broken. 1043 is hamster-approved
afaik all of them use the latest 2.8.0-scala-build at the time of their compilation

0

All the Scala plug-in builds of a recent (even not so recent) vintage support development of either 2.7 or 2.8 code and do so out-of-the-box.


Randall Schulz

0

That's what I was expecting, but when I create a new project using IDEA 95.24 and version 0.3.1058 of the plugin, I'm offered this list of possible Scala versions:

2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6

-Magnus

0

It's a Usability bug. Choose anything, check flag to not  download anything, then create your project. Then you can configure your scala 2.8 development with your own scala-compiler.jar and scala-library.jar.

Best regards,
Alexander Podkhalyuzin.

0

You can find in tomorrow nightly that 2.8.0.Beta1 added to version list. Moreover fixed bug about compiler configuration. So if you use this project dialog to create new project and you choose some compiler version, then you can be sure that this compiler will be used in your module.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.