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

Bug 368908

Summary: Endless Loop in Content Assist Parser
Product: [Modeling] TMF Reporter: Ralph Mayr <ralph.mayr>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: karsten.thoms, ralph.mayr, sebastian.zarnekow
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Simple grammar to reproduce the behavior
none
Test file none

Description Ralph Mayr CLA 2012-01-18 00:26:30 EST
Build Identifier: Version: 3.7.0 Build id: I20110613-1736

For details see the last few posts in http://www.eclipse.org/forums/index.php/m/775170/.

I was able to reproduce this behavior in 2.0.1 and the latest available 2.2.1 release.

Reproducible: Always

Steps to Reproduce:
1. Create an Xtext project with the attached grammar (MyDsl.xtext)
2. Generate, build and run the editor
3. Open the attached test file (test.mydsl)
4. Put the cursor behind the colon in line 1
5. Press CTRL+Space to invoke content assist

-> Endless loop in the InternalMyDslParser
Comment 1 Ralph Mayr CLA 2012-01-18 00:27:02 EST
Created attachment 209656 [details]
Simple grammar to reproduce the behavior
Comment 2 Ralph Mayr CLA 2012-01-18 00:27:30 EST
Created attachment 209657 [details]
Test file
Comment 3 Sebastian Zarnekow CLA 2012-06-08 07:50:19 EDT
see also 382088
Comment 4 Sebastian Zarnekow CLA 2013-04-19 08:38:37 EDT
Still reproducable.

Antlr error recovery fails on the emtpy 'Access' rule.
Comment 5 Karsten Thoms CLA 2016-04-13 16:54:53 EDT
Still happens with 2.9