Inspections hide each other

This is bothering me right now. Sometimes a piece of code can be marked
by several different inspections. Using on the fly error checking only
one inspection message appears. It's possible that useful quick fixes or
messages are hidden this way.
Take for example the following piece of code and the inspection gadgets
inspections:

"test = false" on my system is marked with "condition test = false is
always false.". After disabling the inspection "Constant conditions &
exceptions", it is marked with "Nested assignment test = false". After
disabling the inspection "Nested assignment" it is marked with "test =
false is used as condition".
I would like to be able to see all warnings and quick fixes at once.

Does anybody else see this too? Was it always this way? Is it a bug?

Bas

3 comments
Comment actions Permalink


It's always been this way. Also, the tooltip over the code may be different than the tooltip in the right gutter, as they may show different errors. Worse, I've seen cases (not reproducible) where the quickfix applied comes from a different error than the tooltip error. Quite confusing, but fortunately rare.

--Dave Griffith

0
Comment actions Permalink

This is definitely annoying. The errors, tooltips and quickfixes should all
be additive. They should not hide one another.

"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:689816.1083252890479.JavaMail.itn@is.intellij.net...
>

It's always been this way. Also, the tooltip over the code may be

different than the tooltip in the right gutter, as they may show different
errors. Worse, I've seen cases (not reproducible) where the quickfix
applied comes from a different error than the tooltip error. Quite
confusing, but fortunately rare.
>

--Dave Griffith



0
Comment actions Permalink

As I couldn't find any relevant request in the bug database I have
created a new one for this issue:
http://www.intellij.net/tracker/idea/viewSCR?publicId=32302

Bas

On 29-04-2004 18:30, Tim Haley wrote:

This is definitely annoying. The errors, tooltips and quickfixes should all
be additive. They should not hide one another.

"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:689816.1083252890479.JavaMail.itn@is.intellij.net...

>>
>> It's always been this way. Also, the tooltip over the code may be

different than the tooltip in the right gutter, as they may show different
errors. Worse, I've seen cases (not reproducible) where the quickfix
applied comes from a different error than the tooltip error. Quite
confusing, but fortunately rare.

>>
>> --Dave Griffith


0

Please sign in to leave a comment.