Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364911 - [xtext] Dangling error annotation in editor
Summary: [xtext] Dangling error annotation in editor
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-27 12:11 EST by Sebastian Zarnekow CLA
Modified: 2017-09-19 17:25 EDT (History)
0 users

See Also:
sebastian.zarnekow: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2011-11-27 12:11:22 EST
1) Create a new Xtext project with this initial grammar ([] indicate the selection)

==

grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals

[generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"]

Model:
	greetings+=Greeting*;
	
Greeting:
	'Hello' name=ID '!';


==

2) Replace the selection with this import 

import "http://www.eclipse.org/xtext/xbase/Xbase"

==

3) Wait for the reconciler to mark both rules as erroneous

4) Cmd+Z (undo)

5) See the dangling error marker on

Greeting:
	'Hello' name=ID '!';
                    ^^^^^^^^

which is probably the length difference between the replace region and the replacement string
Comment 1 Sebastian Zarnekow CLA 2011-11-30 11:02:39 EST
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:13:56 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:25:39 EDT
Closing all bugs that were set to RESOLVED before Neon.0