Code Analyzer finds some classes, but not others? (Bad code is green?)

IntelliJ 7.0.3, linux, JDK 1.6.0_04

The project is a clean project, with one external library configured containing three jars (filterbuilder.jar, htmlexer.jar and htmlparser.jar from - latest release)

The code:

If you add a forward slash to the second commented block of code, all the right stuff gets red underlines, and the suggestion is to import org.htmlparser.beans.StringBean

Now, if you re-comment it and get it back to 'green' again, and un-comment the first block.. nothing. No suggestions, no underlines. Leaving that code uncommented, now un-comment the second block. Again, nothing.

Hovering over the little box at the top right gives me:
"Performing code analysis
Syntax: 18%
No errors or warnings found so far

and it's stuck there, forever.

Now, insert a // to comment out the Parser p = new Parser() line. Everything starts working again.

What's going on?

1 comment
Comment actions Permalink

For what it's worth, the answer appears to be "clean out the IntelliJ cache".

I blew away everything in the directories listed by Mark Derricutt, in this post:

And IntelliJ "got smart" again.


Please sign in to leave a comment.