Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368908 - Endless Loop in Content Assist Parser
Summary: Endless Loop in Content Assist Parser
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-18 00:26 EST by Ralph Mayr CLA
Modified: 2016-04-13 16:54 EDT (History)
3 users (show)

See Also:


Attachments
Simple grammar to reproduce the behavior (736 bytes, text/plain)
2012-01-18 00:27 EST, Ralph Mayr CLA
no flags Details
Test file (21 bytes, text/plain)
2012-01-18 00:27 EST, Ralph Mayr CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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