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 133819 - completition not working in XML files
Summary: completition not working in XML files
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks: 138486
  Show dependency tree
 
Reported: 2008-04-24 09:45 UTC by m1k0
Modified: 2008-07-17 04:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screencast (h264 codec) Play on eg. mplayer (1.03 MB, video/mpeg)
2008-04-24 10:49 UTC, m1k0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m1k0 2008-04-24 09:45:17 UTC
Hi,
I trying develop some XMLs but, XML Editor not working properly. 
Completition sometimes works but sometime not works.

<application  xmlns='http://geronimo.apache.org/xml/ns/j2ee/application-2.0'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xsi:schemaLocation='http://geronimo.apache.org/xml/ns/j2ee/application-2.0 
    http://geronimo.apache.org/xml/ns/j2ee/application-2.0'>

<!-- here works -->
        
</application>


<application  xmlns='http://geronimo.apache.org/xml/ns/j2ee/application-2.0'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xsi:schemaLocation='http://geronimo.apache.org/xml/ns/j2ee/application-2.0 
    http://geronimo.apache.org/xml/ns/j2ee/application-2.0'>
        
    <dep:environment xmlns:dep='http://geronimo.apache.org/xml/ns/deployment-1.2'
        xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
        xsi:schemaLocation='http://geronimo.apache.org/xml/ns/deployment-1.2 
        http://geronimo.apache.org/xml/ns/deployment-1.2'>
            <!-- here works -->
    </dep:environment>
        

<!-- now, here not works -->

</application>

Look at screencast please.
Comment 1 m1k0 2008-04-24 09:52:32 UTC
screencast (Ogg video theora codec)
http://michal.kudla.googlepages.com/out-5.ogv
Comment 2 m1k0 2008-04-24 10:49:02 UTC
Created attachment 60646 [details]
screencast (h264 codec) Play on eg. mplayer
Comment 3 Samaresh Panda 2008-04-24 14:26:25 UTC
Looks like, completion doesn't take care of this use case. I'm not sure, can you have an arbitrary element such as
"environment" inside "application"? I will have to do some analysis on that.

In any case, this is a very uncommon use-case and cannot be a P1 as per priority guidelines.
Comment 4 m1k0 2008-04-28 21:47:45 UTC
This is a very important deployment plan for Geronimo.
Comment 5 Samaresh Panda 2008-07-16 02:36:06 UTC
Fixed: http://hg.netbeans.org/main/rev/7d9ce9241445.
Comment 6 Samaresh Panda 2008-07-16 02:38:51 UTC
I have to say that this is a very uncommon use-case and I'm not sure if it is a valid use-case. I mean are you able to
validate this XML. Where did "environment" come from? Is it a child element of "application"? I don't know how is this
supposed to work.
Comment 7 Quality Engineering 2008-07-17 04:37:23 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #324 build
Changeset: http://hg.netbeans.org/main/rev/7d9ce9241445
User: samaresh@netbeans.org
Log: #133819 completition not working in XML files