| Summary: | NPE when using content assist | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Paul Webster <pwebster> | ||||||||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | jessev, sebastian.zarnekow, sven.efftinge | ||||||||||
| Version: | unspecified | Flags: | sven.efftinge:
indigo+
|
||||||||||
| Target Milestone: | M7 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
Created attachment 187725 [details]
XText grammer for UIElements.ecore
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
Paul, could you please attach the version of UIElements.ecore that you used? 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.
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.
Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
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