You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Matthias Bläsing (Jira)" <ji...@apache.org> on 2020/02/24 18:30:00 UTC

[jira] [Commented] (NETBEANS-2613) [XML] Code completion for XSD's defined with urn: syntax

    [ https://issues.apache.org/jira/browse/NETBEANS-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17043738#comment-17043738 ] 

Matthias Bläsing commented on NETBEANS-2613:
--------------------------------------------

Please have a look at the referenced github PR. The problem boils down to the jdk not correctly parsing URNs. URNs are URIs but the JDK can't decode them. NetBeans does not directly pass URIs to the resolver, but modifies them to carry meta-data and this meta-data must first be stripped of before they can be used.

With this change I can:
 # Download the UiBinder Schema from here: https://github.com/gwtproject/gwt/blob/2.8.2/user/src/com/google/gwt/uibinder/resources/UiBinder.xsd
 # Add the schema to the UserCatalog (Tools -> DTDs and XML Schemas) - > User Catalog [read-write]) with "System ID" set to _urn:ui:com.google.gwt.uibinder_ 
and URI set to the local path to the schema I downloaded
 # create a new XML document, bind the _urn:ui:com.google.gwt.uibinder_ namespace and after that, I can use code completion in it with data from the schema

Could you please verify?

> [XML] Code completion for XSD's defined with urn: syntax
> --------------------------------------------------------
>
>                 Key: NETBEANS-2613
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2613
>             Project: NetBeans
>          Issue Type: New Feature
>          Components: editor - Hints &amp; Annotations, xml - Schema
>            Reporter: Mondane
>            Assignee: Matthias Bläsing
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I would like to have code completion in my XML's when the XSD's are referred to using an urn: syntax like in PHPStorm. This is useful for instance when developing in Magento 2:
> [https://devdocs.magento.com/guides/v2.3/config-guide/cli/config-cli-subcommands-urn.html]
> There's this current state which doesn't mention the urn: syntax: [https://xml.netbeans.org/specs/sacc/sacc.html]
>  and this old bug report: [https://netbeans.org/bugzilla/show_bug.cgi?id=214486]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists