Spring bean highlighting doesn't always appear

Hi everyone,
There's a weird behavior in Idea 14 (I had it with 14.0.3 and not with 14.1.1 as well).
Sometimes, and I can't tell exactly when, the little green bean icon that indicates a class is defined as a spring bean disappears.
I don't it being related to maven re-imports, to svn updates or to anything else.

I also don't exactly know how to reproduce it. To fix it I try the following:

  1. Go to the XML context where the bean is defined, and then CTRL+CLICK on the class where the bean is defined to go to that class.
  2. Highlight some code on the file
  3. Open-close it


Sometimes it works, sometimes it doesn't.
In short, this is very annoying and I would love for this great feature to be more dependent.

Thanks,
Guy

2 comments
Comment actions Permalink

Please try File | Invalidate Caches | Invalidate and Restart.

Check idea.log for exceptions.

0
Comment actions Permalink

Hello,
I have an update for this
It seems this is caused because the file inspections have not yet finished, when I open the file the top right corner of its window looks like in the attachment.
Basically this is fine, I guess the inspections related to beans have not yet been executed. My problem is that it takes too long.

I'm working on a multi-module project. And by multi I mean ~400 modules. Some of those contain spring contexts and some don't.
Thanks,
Guy



Attachment(s):
file inspections.png
0

Please sign in to leave a comment.