Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335561 - NPE when using content assist
Summary: NPE when using content assist
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 07:20 EST by Paul Webster CLA
Modified: 2017-09-19 18:11 EDT (History)
3 users (show)

See Also:
sven.efftinge: indigo+


Attachments
Log with NPE trace (22.55 KB, text/plain)
2011-01-27 07:20 EST, Paul Webster CLA
no flags Details
XText grammer for UIElements.ecore (39.50 KB, text/plain)
2011-01-27 07:21 EST, Paul Webster CLA
no flags Details
File that we're editing (608 bytes, text/plain)
2011-01-27 07:23 EST, Paul Webster CLA
no flags Details
The ecore model that we used (32.00 KB, text/plain)
2011-03-28 12:18 EDT, Jesse CLA
no flags Details

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