Problem with AstWrapperPsiElement

Hello again, and Happy New Year!

I am working on a Parser for Clojure, and am following the instructions in http://www.jetbrains.net/confluence/display/IDEADEV/Developing+Custom+Language+Plugins+for+IntelliJ+IDEA

I am implementing my ClojureElement as described, however when I try to use the provided AstWrapperPsiElement I get get compilation problems

'getManager' in 'com.intellij.extapi.psi.ASTDelegatePsiElement' clashes with 'getManager()' in 'com.intellij.extapi.psi.PsiElementBase'; attempting to use incompatible return type


can not access com.intellij.psi.impl.PsiManagerEx class file for  com.intellij.psi.impl.PsiManagerEx not found


I am using Intellij SDK 9164.  Any ideas?

Thanks
Peter

2 comments
Comment actions Permalink

P.S.  Here is the code that generates the above errors...
Thanks
P

package org.clojure.intellij.parser;

import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.intellij.lang.ASTNode;
import org.jetbrains.annotations.NotNull;


public class ClojureElement extends ASTWrapperPsiElement {
    public ClojureElement(@NotNull ASTNode astNode) {
        super(astNode);
    }
}

0
Comment actions Permalink

Hello Peter,

Hello again, and Happy New Year!

I am working on a Parser for Clojure, and am following the
instructions in
../confluence/display/IDEADEV/DevelopingCustomLanguagePluginsfor+I
ntelliJ+IDEA

I am implementing my ClojureElement as described, however when I try
to use the provided AstWrapperPsiElement I get get compilation
problems

+'getManager' in 'com.intellij.extapi.psi.ASTDelegatePsiElement'
clashes with 'getManager()' in
'com.intellij.extapi.psi.PsiElementBase'; attempting to use
incompatible return type+


Make sure that you've added idea.jar to the classpath of your IntelliJ IDEA
SDK, not as a separate library.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.