Bug 550071 - Generating autocomplete from XSD crashes Eclipse
Summary: Generating autocomplete from XSD crashes Eclipse
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsd (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: Future   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2019-08-14 10:27 EDT by Chakir el Moussaoui CLA
Modified: 2023-06-08 00:53 EDT (History)
5 users (show)

See Also:


Attachments
The respective XML and XSD file (131.44 KB, application/x-zip-compressed)
2019-08-14 10:27 EDT, Chakir el Moussaoui CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chakir el Moussaoui CLA 2019-08-14 10:27:33 EDT
Created attachment 279569 [details]
The respective XML and XSD file

When generating autocomplete from an XSD for XML configuration it causes Eclipse to crash when pressing 'ctrl + space' (for showing autocomplete suggestions). We thought the size of the XSD caused Eclipse to crash, but that did not turn out to be the cause of the multiple crashes.

- Download the respective (ibisdoc.)xsd and (ConfigurationHelloBeautifulWorld.)xml file and put them in the same directory
- Open the ConfigurationHelloBeautifulWorld.xml (note that noNamespaceSchemalocation referes to the ibisdoc.xsd file).
- Go in between the Pipeline tags.
- Then hit Shift+Space (to show code completion).
- As you should see Eclipse is not responding (and has crashed).
Comment 1 Mickael Istria CLA 2019-08-22 04:07:57 EDT
I guess it's more an issue for WTP than Platform as it.
So I'm moving the patch.
Please also add details about the version of Java and Eclipse IDE you're using, and about your OS.
Comment 2 Karsten Thoms CLA 2019-08-22 04:10:06 EDT
Which XML editor do you use exactly? The Eclipse Platform itself does not provide an XML editor, and it is likely that the problem has to be addressed by the respective project. For example, org.eclipse.wst.xml.ui provides an XML editor, but there are also others. To find out you can use the "Plugin Selection Spy" when having PDE installed. Open the Spy with Quick Assist (CMD+3, enter "Spy") when having the editor open.
Comment 3 Angelo ZERR CLA 2019-08-22 04:23:37 EDT
I can reproduce the problem with WTP XML Editor. Please note that XML Editor from https://github.com/eclipse/wildwebdeveloper is working with your usecase.
Comment 4 Eclipse Genie CLA 2019-11-26 19:25:02 EST
New Gerrit change created: https://git.eclipse.org/r/153453
Comment 5 Eclipse Genie CLA 2021-02-24 22:53:33 EST
New Gerrit change created: https://git.eclipse.org/r/c/sourceediting/webtools.sourceediting/+/176870