unable to compile 123 branch (but can compile master)

I am trying (unsucessfully) to compile the 123 branch of the Scala plugin using Ant. (Compiling the 123 branch since I need it to work with IntelliJ 12.0.x.) My system is running Mac OS X 10.7.5 with the latest Java update from Apple installed (JDK 1.6.0_41).

I am able to build the plugin's master branch using "ant" by setting idea.home=/Applications/Leda-IU-126.330.app/. So I am confused why the 123 branch won't build.

When I set idea.home=/Users/tdyas/Code/IntelliJ/intellij-idea in scala.properties, which points at a checkout of the 123 branch of IntelliJ Community built with "ant," I get this error message:


/Users/tdyas/Code/IntelliJ/intellij-scala/build.xml:141: taskdef class com.intellij.ant.Javac2 cannot be found
using the classloader AntClassLoader[/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-antlr.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-apache-bcel.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-apache-bsf.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-apache-log4j.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-apache-oro.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-apache-regexp.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-apache-resolver.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-apache-xalan2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-commons-logging.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-commons-net.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-jai.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-javamail.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-jdepend.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-jmf.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-jsch.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-junit.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-launcher.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-netrexx.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-swing.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant-testutil.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ant/lib/ant.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/asm-commons.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/asm.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/asm4-all.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/automaton.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/cglib-2.2.2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/cli-parser-1.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/commons-codec-1.3.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/commons-httpclient-3.1-patched.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/commons-logging-1.1.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/commons-net-3.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/easymock.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/easymockclassextension.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/hamcrest-core-1.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/hamcrest-library-1.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/jmock-1.0.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/jmock-2.5.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/jmock-cglib-1.0.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/jmock-junit4-2.5.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/jmock-legacy-2.5.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/mockobjects-core-0.09.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dev/objenesis-1.0.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/dtdparser113.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/eawtstub.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/ecj-4.2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/groovy-all-1.8.5.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/gson-2.2.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/guava-12.0.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jaxb-api.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jaxb-impl.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jsr173_1.0_api.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jaxen-1.1.3.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jcip-annotations.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jdom.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jgoodies-common-1.2.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jgoodies-forms.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jgoodies-looks-2.4.2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jh.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jna-utils.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jna.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/jsch-0.1.49.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/junit-4.10.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/junit.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/kryo-1.04.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/log4j.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/microba.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/miglayout-swing.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/minlog-1.2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/nanoxml-2.2.3.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/nekohtml-1.9.14.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/netty-3.5.10.Final.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/oromatcher.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/picocontainer.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/protobuf-2.4.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/proxy-vole_20120920.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/reflectasm-1.01.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/resolver.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/rhino-js-1_7R4.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/sanselan-0.98-snapshot.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/serviceMessages.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/snappy-java-1.0.4.1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/cglib-src-2.2.2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/commons-lang-2.4-sources.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/commons-net-3.1-sources.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/ecjsrc-4.2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/gson-2.2.1-sources.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/guava-12.0-sources.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/jhsrc.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/jsch-0.1.49-sources.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/junit-4.10-src.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/junit3_8_1.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/miglayout-sources.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/netty-3.5.10.Final-sources.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/sanselan-0.98-snapshot-src.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/serviceMessages_275963_src.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/serviceMessages_279xxx_src.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/trove4j_src.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/src/xpp3-1.1.4-min-src.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/swingx-core-1.6.2.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/trove4j.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/velocity.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/winp-1.16-patched.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/xbean.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/xerces.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/xmlrpc-2.0.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/xpp3-1.1.4-min.jar:/Users/tdyas/Code/IntelliJ/intellij-idea/lib/xstream-1.4.3.jar]



When I set idea.home=/Applications/IntelliJ IDEA 12.app/ in scala.properties, I instead get this error message:


BUILD FAILED
/Users/tdyas/Code/IntelliJ/intellij-scala/build.xml:246: Forms instrumentation failed for /Users/tdyas/Code/IntelliJ/intellij-scala/src/org/jetbrains/plugins/scala/compiler/ScalaApplicationSettingsForm.form: /Users/tdyas/Code/IntelliJ/intellij-scala/build.xml:246: /Users/tdyas/Code/IntelliJ/intellij-scala/src/org/jetbrains/plugins/scala/compiler/ScalaApplicationSettingsForm.form: Class not found: javax.swing.JPanel


When I set idea.home=/Users/tdyas/Code/IntelliJ/intellij-idea/out/dist.all.ce, I get this error message:

   [scalac] /Users/tdyas/Code/IntelliJ/intellij-scala/src/org/jetbrains/plugins/scala/config/scalaProjectTemplate/scalaDownloader/GenericScalaArchiveDownloader.scala:5: error: object webcore is not a member of package com.intellij
   [scalac] import com.intellij.webcore.libraries.ui.download.DownloadWebLibraryDialog
   [scalac]                     ^
   [scalac] /Users/tdyas/Code/IntelliJ/intellij-scala/src/org/jetbrains/plugins/scala/config/scalaProjectTemplate/scalaDownloader/GenericScalaArchiveDownloader.scala:33: error: not found: type DownloadWebLibraryDialog
   [scalac]     val myDialog = new DownloadWebLibraryDialog(project, versionDescriptions)
   [scalac]                        ^

Not sure what I am missing. Regarding the second error, it was my understanding that Swing was supposed to come with the JDK and, if not, shouldn't it be available on IDEA's class path under idea.home? (Unless I'm missing something obvious.)

The other relevant scala.properties options are:

jdk.home=/System/Library/Frameworks/JavaVM.framework/Home
scala.lib=/Users/tdyas/Code/scala-2.10.0/lib

2 comments

Ant way to compile is deprecated in our project.
In case if you need to compile production binaries, please use from IDEA: Build -> Build Artifacts -> Production

Best regards,
Alexander Podkhalyuzin.

0

And in your case it looks like you are trying to build Scala sources for 123 IDEA branch with 126 IDEA branch, what is causing such errors.
So you just need to have in LedaSDK directory IDEA 12.0.X and to use artifact build.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.