[2151]False Error message in VB and problem with marker bar on large files

I have found a code construct in my code which is marked as error by R#, but VB compiler accepts it.

2011-05-12 11h27_30.png
The variables which are compared are Enums. If i enclose the comparison in braces the error disappears, but it's common in VB to omit the braces.

Another issue is, that a redundant cast warning is marked as error in the marker bar. Further investigation shows that there seems to be a problem with displaying the correct tooltip in the marker bar for large files (the one i'm editing has around 10.000 lines). The redundand cast warning is directly below an error warning

2011-05-12 12h21_30.png
so i think the markers overlap. I've seen it in similar cases that the marker is split in a yellow and a red part, so maybe the behavior is the result of the file size. I also notice this behavior for the combination of TODO items and errors. When a TODO item is only a few lines away from the error (in my case 15 lines) the markers overlaps and sometimes i get the error tooltip and other times the todo tooltip.

Regards
Klaus

1 comment

Hello Klaus,

I wasn't able to reproduce this behavior with the latest build. Could you
please try the next build when it comes out and check if this behavior is
still reproducible for you? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have found a code construct in my code which is marked as error by
R#, but VB compiler accepts it.

Image:2011-05-12 11h27_30.png The variables which are compared are
Enums. If i enclose the comparison in braces the error disappears, but
it's common in VB to omit the braces.

Regards
Klaus
---
Original message URL:
http://devnet.jetbrains.net/message/5302962#5302962



0

Please sign in to leave a comment.