References are not highlighted

Hi,

I am wondering if there was any recent changes in the way PsiReference / find usage works. My plugin has a strange behavior which I do not recall was present one or two months ago.
My plugin is for a custom language, I have a declaration, and later in the file multiple references to this declaration. If I click on the declaration or one of the references, I expect them to be all highlighted, but only the declaration is highlighted. Also, find usages finds nothing (I'm quite sure this is the same mechanism that is failing somewhere). But ctrl-clicking on a reference jumps to the declaration, so my PsiReference implementation kind of works.

I tested my plugin on a previous SDK (IDEA 11.1), and it works as expected: both declarations and references are highlighted. I only changed some non related code which is Open API v12 only and does not compile in 11.1.

Did anything change in the recent builds of Leda? Is the documentation on confluence still up-to-date regarding this?

Thanks for your answers
Bastien

4 comments
Comment actions Permalink

Could you share your (relevant parts) of code?


0
Comment actions Permalink

That's weird, I just tested it again at home on my macbook and it works fine... I will try to investigate further tomorrow, or perhaps reinstalling IDEA to see if it helps... I will post my code if I still can't find what is causing the problem.
Anyway, thanks for helping :)

0
Comment actions Permalink

I don't know what I did, it works fine now...

0
Comment actions Permalink

Maybe some cache corruption?


0

Please sign in to leave a comment.