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 108610 - Misleading text in status bar when using Schema Based code completion
Summary: Misleading text in status bar when using Schema Based code completion
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks: 122444
  Show dependency tree
 
Reported: 2007-07-02 10:09 UTC by Rohan Ranade
Modified: 2008-01-24 20:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the issue - look at the text in the status bar (66.03 KB, image/png)
2007-07-02 10:10 UTC, Rohan Ranade
Details
Catalog which registers the schema files (5.42 KB, text/plain)
2007-07-02 10:11 UTC, Rohan Ranade
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rohan Ranade 2007-07-02 10:09:40 UTC
When the user is editing an XML file which is bound by an XML Schema, the status bar displays a "Cannot load XML
document grammer" error, even though the completion items show up properly. This occurs when code completion is invoked
for the first time in the document.

I am specifying the location of the schema files through a catalog (code attached).
Comment 1 Rohan Ranade 2007-07-02 10:10:25 UTC
Created attachment 44617 [details]
Screenshot of the issue - look at the text in the status bar
Comment 2 Rohan Ranade 2007-07-02 10:11:27 UTC
Created attachment 44618 [details]
Catalog which registers the schema files
Comment 3 Samaresh Panda 2007-09-21 21:19:48 UTC
CC infrastructure is such that multiple completion provider come into play and one of the provider writes that in the
status bar. This is perfectly fine. I do not consider this as a bug.
Comment 4 Samaresh Panda 2007-09-21 21:21:16 UTC
I'm not sure what misleads the user. Changing status to wontfix.
Comment 5 Rohan Ranade 2007-09-22 04:22:47 UTC
Implementation wise it might be a non issue, but the fact that the message text is shown up inspite of correct loading
of schema model for completion, misleads the users. We get error reports and support requests from our users telling us
that something is not working. 

Also, I have never seen such a message appear with DTD based code completion.
Comment 6 sathivaid 2007-09-25 09:11:25 UTC
I agree with Rohan. This might confuse the user.
Perhaps bug priority can be reduced.
Comment 7 Rohan Ranade 2007-09-25 09:31:58 UTC
Reopening the issue as per the comments mentioned earlier
Comment 8 Samaresh Panda 2008-01-08 01:09:23 UTC
/cvs/xml/text-edit/src/org/netbeans/modules/xml/text/completion/GrammarManager.java,v  <--  GrammarManager.java
new revision: 1.14; previous revision: 1.13
Comment 9 Mikhail Matveev 2008-01-10 16:10:00 UTC
Still exists in 200801100000.

1. Create newLoanApplication schema.
2. Create a new XML document based on that schema.
3. Delete "utoLoanApplication  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'" text.
4. Invoke code completion.
Result: "No suggestions" tooltip and "Cannot load XMLdocument grammar" in the status bar.
Comment 10 Samaresh Panda 2008-01-15 20:16:35 UTC
1. With "No Suggestion", it is OK to see the message "Cannot load XMLdocument grammar". 
2. You should try a newer build because the message is not being used at all. So it shouldn't appear.
Comment 11 tonybeckham 2008-01-24 20:08:47 UTC
Fix Verified, the message no longer appears.

Product Version: NetBeans IDE Dev (Build 200801220251)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.1 running on i386; MacRoman; en_US (nb)