Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313755 - [Quickfix] SyntaxErrors do not have a useable user data channel
Summary: [Quickfix] SyntaxErrors do not have a useable user data channel
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 11:48 EDT by Sebastian Zarnekow CLA
Modified: 2017-09-19 17:43 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2010-05-20 11:48:29 EDT
The API for SyntaxError(Message) does not allow to set user data that will finally be available in the issue and thereby in the Quickfix-Provider.

There is no workaround as AbstractInternalAntlrParser#appendError is private. If it were public, one could do the following:

Subclass SyntaxErrorMessage, set the user data as an adapter on the actual SyntaxError, read the adapter-value and set it in XtextResource#addSyntaxErrors on a subclass of XtextSyntaxDiagnostic.
Comment 1 Sebastian Zarnekow CLA 2010-12-13 17:12:39 EST
Done with the refactoring of the node model.
Comment 2 Karsten Thoms CLA 2017-09-19 17:32:37 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:43:48 EDT
Closing all bugs that were set to RESOLVED before Neon.0