Entire file highlighted as unused

So occasionally I have this problem (and it's only happened a few times) where all the imports and all the methods and all the variables, etc. in a file are highlighted as unused. They grey out and I get yellow bars all the way down the gutter. The only way I can fix it is to make some trivial change that introduces an actual error (like delete the 'p' from 'package') and then put it back. After it rescans the file, everything is fine again.

Anybody else ever see this?

4 comments
Comment actions Permalink

Hello Gordon,

So occasionally I have this problem (and it's only happened a few
times) where all the imports and all the methods and all the
variables, etc. in a file are highlighted as unused. They grey out and
I get yellow bars all the way down the gutter. The only way I can fix
it is to make some trivial change that introduces an actual error
(like delete the 'p' from 'package') and then put it back. After it
rescans the file, everything is fine again.

Anybody else ever see this?


Yes, we see this once in a while, but unfortunately we don't know how to
reproduce this.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Yep seen it a few times myself recently. I didn't know if it was
possibly anything to do with having two projects open that share some
files in a sandbox - specifically one is a subset of the other.

Thanks for the info on the workaround tho, I couldn't work out what
fixed it!

Cheers,
N.

Gordon Tyler wrote:

So occasionally I have this problem (and it's only happened a few
times) where all the imports and all the methods and all the
variables, etc. in a file are highlighted as unused. They grey out
and I get yellow bars all the way down the gutter. The only way I can
fix it is to make some trivial change that introduces an actual error
(like delete the 'p' from 'package') and then put it back. After it
rescans the file, everything is fine again.

Anybody else ever see this?

0
Comment actions Permalink

Yep seen it a few times myself recently. I didn't
know if it was
possibly anything to do with having two projects open
that share some
files in a sandbox - specifically one is a subset of
the other.


I've seen it a couple of times and I believe it's got something to do with the fact that the same file was being opened in two projects at the same time (both projects were using the same Clearcase view, if it matters).

0
Comment actions Permalink

Unfortunately, single project here.

0

Please sign in to leave a comment.