Build the plugin from source

Hello,

has someone tried to build the Scala plugin from source as described here?:
http://www.jetbrains.net/confluence/display/SCA/How+to+build+Scala+plugin+for+IntelliJ+IDEA+from+scratch

I tried it but I get the error that "ClassManifest" cannot be found in class src/org/jetbrains/plugins/scala/lang/resolve/BaseProcessor.scala.

Is there a file missing in the svn or do I need another Scala version to compile the plugin?

5 comments
Comment actions Permalink

You need Scala 2.8 to build plugin.
This compiler version is built-in plugin. You can find scala-compiler.jar and scala-library.jar in installation directory of plugin.
So you need to remove flag from facet page and to add dependency to this jars. After that compilation should be successful.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

I already used Scala 2.8 for the compilation, but I tried the console way via ant (as described on the web page).

Is it better to compile the plugin with IDEA?

I tried that too, but that seems to be even more complicated than via ant. Since the Scala library and Scala compiler are not in the svn, I have chosen the Scala jar files from the Scala plugin that I have downloaded today. I clickt on "rebuild project" but the compilation failed with the following output:

Information:Previous compilation did not terminate properly. Caches may have been corrupted. Starting rebuild...
Information:Compilation completed with 1 error and 0 warnings
Information:1 error
Information:0 warnings
Error:Internal error (Plugin: org.intellij.scala): null

0
Comment actions Permalink

Here is the output of "ant".



Attachment(s):
ant.output.txt.zip
0
Comment actions Permalink

No, via IDEA will be more simple. But you need appropriate Scala 2.8 compiler. I can suggest you to use compiler which is built-in plugin.
I use ant build only on buildserver. So I cannot to say something interesting about it for now. But I think I'll try to built with ant on my machine soon, then I'll give you some hints.
Page and most of other pages need some update, I'll also do it (not soon, but it should be up-to-date).

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

What do you mean with "built-in plugin"? - The scala-library.jar and scala-compiler.jar included in the binary releases of the Scala plugin?

That is exactly what I have done. I tried to compile the plugin with these Scala libs but got only this strace internal error

0

Please sign in to leave a comment.