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

Bug 364911

Summary: [xtext] Dangling error annotation in editor
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Flags: sebastian.zarnekow: juno+
Version: 2.2.0   
Target Milestone: M4   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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