Problem with Annotator

Hi all,

I'm using an annotator for my custom language plugin, and I'm seeing that it's not called for all elements - I end up with some dangling elements that are not correctly annotated. I've been printing out the contents of the PsiElement during the annotation process, and it's definitely missing some. Is there anything obvious that might cause this?

Cheers,
Colin

2 comments
Comment actions Permalink

Hello Colin,

I'm using an annotator for my custom language plugin, and I'm seeing
that it's not called for all elements - I end up with some dangling
elements that are not correctly annotated. I've been printing out the
contents of the PsiElement during the annotation process, and it's
definitely missing some. Is there anything obvious that might cause
this?


Does the file in which you see this problem have any syntax errors (PsiErrorElements)?

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


0
Comment actions Permalink

Hi Dmitry,

Ah, that was it, thanks. I have a problem with my lexer which I haven't fixed yet, and I hadn't noticed that all the non-annotated elements were ancestors of one of the error nodes.

Thanks!
Colin

0

Please sign in to leave a comment.