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

Bug 335561

Summary: NPE when using content assist
Product: [Modeling] TMF Reporter: Paul Webster <pwebster>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jessev, sebastian.zarnekow, sven.efftinge
Version: unspecifiedFlags: sven.efftinge: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Log with NPE trace
none
XText grammer for UIElements.ecore
none
File that we're editing
none
The ecore model that we used none

Description Paul Webster CLA 2011-01-27 07:20:43 EST
Created attachment 187724 [details]
Log with NPE trace

We have an xtext grammer that compiles and runs without errors (attached).  When editing the file, it starts off working OK and then NPEs eventually on a CTRL+SPACE.

PW
Comment 1 Paul Webster CLA 2011-01-27 07:21:26 EST
Created attachment 187725 [details]
XText grammer for UIElements.ecore
Comment 2 Paul Webster CLA 2011-01-27 07:23:33 EST
Created attachment 187726 [details]
File that we're editing

To cause the NPE, I just opened this file, added a ',' after
HandledMenuItem "exit" {
command exit
type Push
}
and hit CTRL+SPACE (I expect to see more choices like HandledMenuItem, Menu_Impl, etc.

PW
Comment 3 Sebastian Zarnekow CLA 2011-03-26 20:33:57 EDT
Paul, could you please attach the version of UIElements.ecore that you used?
Comment 4 Jesse CLA 2011-03-28 12:18:16 EDT
Created attachment 192021 [details]
The ecore model that we used

This is the ecore model that we used for this. We didn't use a modified, intermediary one like you guys did for your demo at last year's eclipsecon.
Comment 5 Sebastian Zarnekow CLA 2011-03-29 09:15:49 EDT
I cannot reproduce this bug with Xtext 2.0. What I tried is:

HandledMenuItem "exit" {
command exit
type Push
}, |

Invoke CA at cursor position | and I got DirectMenuItem, HandledMenuItem, Menu and a bunch of other things that looked good to me.

Please reopen if the problem is still reproducable for you with Xtext 2.0.
Comment 6 Karsten Thoms CLA 2017-09-19 18:01:10 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 7 Karsten Thoms CLA 2017-09-19 18:11:31 EDT
Closing all bugs that were set to RESOLVED before Neon.0