com.intellij.psi.impl.ElementBase isn't in the openapi library

Hi.

It seems that there are some classes missing. I first stumbled over this when I looked on the code of the JSLanguage Plugin.

If I understand this in the right way then the ASTWrapperPsiElement is there for a simpler usage of the openApi. It implements most of the methods of the interface PsiElement.
So when you need a PsiElement (e.g.) for a statement in your language you can use ASTWrapperPsiElement as base class and you have much less work to do.. am I a right? (at least a bit)

The problem is that ASTWrapperPsiElement itself extends
com.intellij.psi.impl.ElementBase and this class is missing. This is the main reason why I can't compile
the JS or the groovy plugin..

Has anyone a solution to this?

My OS is equipped with

jdk 1.05_06
Idea 5.1
the actual dev_kit for idea

(any other information needed?)

Cheers
Patrick

1 comment

Hello Patrick,

You need to add idea.jar to the classpath of your IDEA JDK if you need to
compile custom language plugins. The source code for the ASTWrapperPsiElement
and related classes is indeed not provided because they have too many dependencies
on IDEA internals.

P> It seems that there are some classes missing. I first stumbled over
P> this when I looked on the code of the JSLanguage Plugin.
P>
P> If I understand this in the right way then the ASTWrapperPsiElement
P> is there for a simpler usage of the openApi. It implements most of
P> the methods of the interface PsiElement.
P>
P> So when you need a PsiElement (e.g.) for a statement in your language
P> you can use ASTWrapperPsiElement as base class and you have much less
P> work to do.. am I a right? (at least a bit)
P>
P> The problem is that ASTWrapperPsiElement itself extends
P>
P> com.intellij.psi.impl.ElementBase and this class is missing. This is
P> the main reason why I can't compile
P>
P> the JS or the groovy plugin..
P>
P> Has anyone a solution to this?
P>
P> My OS is equipped with
P>
P> jdk 1.05_06
P> Idea 5.1
P> the actual dev_kit for idea
P> (any other information needed?)
P>
P> Cheers
P> Patrick
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.