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.

Bug 96643 - CC is not accurate wrt the schema
Summary: CC is not accurate wrt the schema
Status: STARTED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
: 90952 90961 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-27 01:00 UTC by htt
Modified: 2007-05-18 17:53 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
.xml and .xsd sources (1.41 KB, application/octet-stream)
2007-02-27 01:01 UTC, htt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description htt 2007-02-27 01:00:47 UTC
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)
Comment 1 htt 2007-02-27 01:01:45 UTC
Created attachment 38932 [details]
.xml  and .xsd sources
Comment 2 htt 2007-02-27 01:17:11 UTC
Not considered Beta showstopper.
Comment 3 Samaresh Panda 2007-02-27 19:51:22 UTC
Will fix for FCS.
Comment 4 Samaresh Panda 2007-03-02 00:23:07 UTC
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.

Comment 5 Samaresh Panda 2007-03-02 18:17:23 UTC
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.
Comment 6 Samaresh Panda 2007-03-02 18:20:44 UTC
*** Issue 90961 has been marked as a duplicate of this issue. ***
Comment 7 Samaresh Panda 2007-03-02 18:23:40 UTC
*** Issue 90952 has been marked as a duplicate of this issue. ***
Comment 8 Alexei Mokeev 2007-03-05 17:23:29 UTC
Removed Beta EP551_WAIVER_APPROVED keyword - we are going forward to FCS.