Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 107401 - [Markers] Description of markers goes blank
Summary: [Markers] Description of markers goes blank
Status: RESOLVED DUPLICATE of bug 83992
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-19 00:31 EDT by Lars Ködderitzsch CLA
Modified: 2005-11-03 09:13 EST (History)
0 users

See Also:


Attachments
eclipse-cs plugin binary (1.39 MB, application/octet-stream)
2005-08-19 13:42 EDT, Lars Ködderitzsch CLA
no flags Details
eclipse-cs plugin sources (1.39 MB, application/octet-stream)
2005-08-19 13:51 EDT, Lars Ködderitzsch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Ködderitzsch CLA 2005-08-19 00:31:57 EDT
I am reporting on behalf of the Eclipse Checkstyle Plugin project.
We have 2 similar bug reports where users are experiencing a strange phenomenon 
with the marker items the plugin creates.
It seems that the marker description suddently goes blank, while the icons 
remain as they are.

The two bug reports can be accessed here:
https://sourceforge.net/tracker/index.php?
func=detail&aid=1261926&group_id=80344&atid=559494

https://sourceforge.net/tracker/index.php?
func=detail&aid=1212983&group_id=80344&atid=559494

Sadly I was never able to reproduce the problem on my system - which leaves me 
nothing than to ask for help here.
One user pointed to this bug report against eclipse, which may be related to the 
problem:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=94184
Comment 1 Tod Creasey CLA 2005-08-19 09:14:17 EDT
It is likely the same as Bug 94184. I have to see if I can look at this without
violating the Eclipse Public License at this project is not hosted on Eclipse.org
Comment 2 Lars Ködderitzsch CLA 2005-08-19 11:59:26 EDT
I don't know much about license issues.
The Eclipse Checkstyle Plugin project is a non-commercial project - we are 
entirely developing in our spare time. The plugin itself is issued under the 
LGPL, the complete sources and binaries are freely available on our sourceforge 
page. 
If I can do anything to make it easier for you (for instance attaching the 
plugin to this report) please tell me.

Regards,
Lars Ködderitzsch

Comment 3 Tod Creasey CLA 2005-08-19 12:48:30 EDT
We can always look at anything attached to Bugzilla - otherwise I have to check
with the lawyers here.
Comment 4 Lars Ködderitzsch CLA 2005-08-19 13:42:01 EDT
Created attachment 26314 [details]
eclipse-cs plugin binary
Comment 5 Lars Ködderitzsch CLA 2005-08-19 13:51:20 EDT
Created attachment 26315 [details]
eclipse-cs plugin sources
Comment 6 Lars Ködderitzsch CLA 2005-08-19 14:00:37 EDT
I attached to plugin in binary and source builds to the report.
I needed to strip out all documentation to remain within the 2000 kb limit for 
attachments.

The markers are created within the Auditor class of the plugin (in the inner 
class CheckstyleAuditListener to be more specific).
In addition to the lineNumber attribute, the charStart and charEnd attributes 
of the marker is set as well. This is needed to see MarkerAnnotations within 
the Eclipse editors.

The Checkstyle core only provides line based offsets but CharStart is a 
document based offset.
To calculate the offset the document for the current resource is created and 
used to determine the document based offset.

CharEnd is always set to the end of the line where CharStart lies.
Comment 7 Tod Creasey CLA 2005-11-03 09:13:26 EST

*** This bug has been marked as a duplicate of 83992 ***