Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 94184

Summary: Warning created by checkstyle plug-in don't appear.
Product: [Eclipse Project] Platform Reporter: Randy Hudson <hudsonr>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Hudson CLA 2005-05-09 15:11:00 EDT
I have warnings set to appear as squiggles.  Checkstyle created a warning that I
had a line longer than 100 characters. The squiggles do not appear, but when I
inserted a newline inside that line, all of a sudden the squiggles show up on
both lines.

None of checkstyle's markers appear in the editor. This is frustrating because
you  don't see the warnings unless you open the problems view. For some reason,
causing the error range to span across a newline causes them to start appearing.

I'm using version:
com.atlassw.tools.eclipse.checkstyle_3.1.1
Comment 1 Dani Megert CLA 2005-05-09 15:16:30 EDT
Please open/report a bug against checkstyle. If their investigation results in
being an Eclipse SDK bug they will file a bug with more details.
Comment 2 Randy Hudson CLA 2005-05-09 15:32:57 EDT
Have you ever tried creating warning markers for which the range included the 
line and its trailing line delimiter? I'm going to guess that this is causing 
the problem.
Comment 3 Dani Megert CLA 2005-05-09 15:56:59 EDT
You can add markers (e.g. bookmarks) that span exactly one line or several
lines. Maybe their markers end just between CR LF. If you can provide more
details or steps we can track this further.
Comment 4 Randy Hudson CLA 2005-05-10 10:17:12 EDT
I think your suspicion might be correct. Would it be too difficult to hack up 
one of the builders, spell checker, or something, to create a marker at say 
line 30 which starts at the beginning of the line, and terminates in the middle 
of the delimiter?
Comment 5 Dani Megert CLA 2005-05-10 13:02:30 EDT
Adding markers that end between cr lf works.
Comment 6 Dani Megert CLA 2005-05-10 13:02:37 EDT
Adding markers that end between cr lf works.
Comment 7 Randy Hudson CLA 2005-05-26 16:23:03 EDT
Using the latest version of checkstyle, squiggles appear, but they are not on
the same line as the icon for the same annotation in the vertical ruler. It
seems that the annotation has the wrong offsets but the right line number.

Do annotations contain redundant information? i.e., can they contain an absolute
offset, and also a line number which *should* agree with the offset?
Comment 8 Dani Megert CLA 2005-05-26 16:39:06 EDT
I assume that the checkstyle plug-in doesn't do anything with annotations but
simply creates markers which do not check anything i.e. you can set offset 0,
length 0 and line to 100. You have three choices:

1) file a bug against the checkstyle guys
2) debug yourself
3) attach the checkstyle plug-in here so that we can debug it

oh, choice for is to drop it ;-)