How to compile Ruby plugin

Hi, Jetbrainers.

I am trying to compile plugin for ruby from http://svn.jetbrains.org/idea/Trunk/ruby

I am just opened it in Idea6.0 beta and try to compile but I have a lot of compile errors like this one.

"Cannot access com.intellij.psi.impl.ElementBase" file com\intellij\psi\impl\ElementBase not found.

How to solve it?

4 comments
Comment actions Permalink

For language plugins, you need to add idea.jar to your IDEA JDK.

--Dave Griffith

0
Comment actions Permalink

When I try to compile it with the latest beta jars, it tells me that RubyRunConfigurationEditor.java has a problem:

Error: (72,29) cannot access com.intellij.openapi.extensions.AreaInstance file com\intellij\openapi\extensions\AreaInstance.class not found.

I added idea.jar annotations.jar and open-api.jar to the classpath.

-Matt

0
Comment actions Permalink

Hello Matthew,

MS> When I try to compile it with the latest beta jars, it tells me that
MS> RubyRunConfigurationEditor.java has a problem:
MS>
MS> Error: (72,29) cannot access
MS> com.intellij.openapi.extensions.AreaInstance file
MS> com\intellij\openapi\extensions\AreaInstance.class not found.
MS>
MS> I added idea.jar annotations.jar and open-api.jar to the classpath.

You need to use an IDEA JDK, which automatically adds all required IDEA JAR
files (except for idea.jar) to the classpath. Since you were setting up the
classpath manually, you missed extensions.jar.

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks guys, it helped

0

Please sign in to leave a comment.