This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using the attached .xsd and .xml sources... a. Code completion contains the wrong items; e.g. + child[1..1] is not a legal variable + POP2:child is missing b. Code completion should be more selective; e.g. aside from POP:root and POP2:root, nothing else should be available at this point.. so as to avoid misleading user into making errors such as: POP:child => validated child => error (as expected) POP:root => error (as expected) yada:anotherRoot => error (as expected)
Created attachment 38932 [details] .xml and .xsd sources
Not considered Beta showstopper.
Will fix for FCS.
On a second look, this issue reveals just one use-case of a more improved and accurate code completion infrastructure. In other words, we need a more accurate schema-aware-code-completion. We should target to fix this for 6.0.
For example if the schema had <PO> <Seq> <A> <B> <C> </Seq> </PO> And user invokes CC under PO, you should ideally see only 'A' but we ignore the compositor and show all the children (A, B, C). Similarly, there are a lot of other use-cases that must be reviewed and fixed.
*** Issue 90961 has been marked as a duplicate of this issue. ***
*** Issue 90952 has been marked as a duplicate of this issue. ***
Removed Beta EP551_WAIVER_APPROVED keyword - we are going forward to FCS.