Problem with "Unused declaration" inspection

Im using the community edition of IntelliJ Idea on Ubuntu 10.04 LTS with java/64bit/jdk1.6.0_22 .

idea-IC-107.587/bin$ ./
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

When I try to inspect a module of my project using "run inspection by name" and choosing "unused declaration" it seem to work and I get as result

> Declaration redundancy (180 items)

However when rerunning the inspection without changing anything I get as result

> Declaration redundancy (18 items)

So suddenly IntelliJ cannot find all the items it found before. Only by invalidating caches and restart I was able to find again the 180 items.
On the terminal I see a bunch of error messages (see the attached log file)

Is this a bug in IntelliJ? Is there a workaround? It is very annoying for me to always have to restart IntelliJ to run the inspection again.

Andreas Maier

Comment actions Permalink

Do you generate or modify your code by some external means (in particular files like, ?

Comment actions Permalink

I don't modify the code by any means (also not the files you mentioned).

Comment actions Permalink

Could you please check if the problem is reproducible with IntelliJ IDEA 11 Beta ?
In reproducible case we will be able to investigate the problem in more detail.


Please sign in to leave a comment.