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 179135 - Code completion in XML files not working
Summary: Code completion in XML files not working
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on: 180205
Blocks:
  Show dependency tree
 
Reported: 2009-12-30 21:41 UTC by darkrv
Modified: 2010-02-04 09:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Just an exemple of xml file using XSD schema, i added the library jar too... (432.84 KB, application/zip)
2010-01-26 16:25 UTC, darkrv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkrv 2009-12-30 21:41:10 UTC
Hello, i'm using a maven 2 project, everything is working except the auto code completion in xml files ( using the schemaLocation...)
In my xml files i'm using something like xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">

but the auto complete functionnality does not work...
In a "normal" netbeans project, netbeans retrieve a xml catalog OASIS from the jar libraries and we can use it to auto complete in xml files (.xsd files)...

Is this a bug? or is there a manipulation??? i've searched everywhere and no answer...
Thanks!
Comment 1 Milos Kleint 2009-12-30 23:59:56 UTC
-> bug.
as far as I know it should be providing the completion. maybe it's related to "feature on demand"? reassigning to xml for evaluation
Comment 2 darkrv 2009-12-31 12:25:45 UTC
Hello,

I just tried to uninstall the "feature on demande" to get all the features working but it still doesn't work, my schema catalog aren't retrieved from my Maven jars and i still can't use xml code completion.
i think it's a bug.
Is there a way to tell to netbeans to download the schema from the web instead of looking in the libraries?
I'm using spring framework with netbeans.

Example of xml file:

<flow xmlns="http://www.springframework.org/schema/webflow"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">

No code completion happen, but this work in a normal project using ants instead of maven...
Comment 3 Sergey Lunegov 2010-01-11 06:23:56 UTC
Alex, please take a look.
Comment 4 _ alexpetrov 2010-01-26 10:17:53 UTC
Please, attach your project or XML file.
Comment 5 darkrv 2010-01-26 16:25:54 UTC
Created attachment 93572 [details]
Just an exemple of xml file using XSD schema, i added the library jar too...

The xml code completion doesnt work on a maven 2 project
But it works on a normal Ant project.
Comment 6 _ alexpetrov 2010-02-03 05:11:51 UTC
Depends on the bug https://netbeans.org/bugzilla/show_bug.cgi?id=180205.
Comment 7 _ alexpetrov 2010-02-04 09:10:38 UTC
Fixed due to fix for the bug https://netbeans.org/bugzilla/show_bug.cgi?id=180205 
(fixed in trunk: http://hg.netbeans.org/main/rev/16a6c70dd1b7).