Im using the community edition of IntelliJ Idea on Ubuntu 10.04 LTS with java/64bit/jdk1.6.0_22 .
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.