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$ ./idea.sh
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.
Sincerely,
Andreas Maier
Attachment(s):
IntelliJError.log.zip
请先登录再写评论。
Do you generate or modify your code by some external means (in particular files like XenoConstants.java, ActionJournalControllerImpl.java) ?
I don't modify the code by any means (also not the files you mentioned).
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.