Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open namespaced schema location fails #318

Closed
Morgy93 opened this issue Aug 29, 2020 · 2 comments
Closed

open namespaced schema location fails #318

Morgy93 opened this issue Aug 29, 2020 · 2 comments

Comments

@Morgy93
Copy link

Morgy93 commented Aug 29, 2020

Hello,

I don't know if it's just me or some bug, that's why I'm here. =)

I'm using Magento 2 and schema validation works just fine (so I assume that there is no error here) but if I try to "Follow link" on namespaced xsd it fails:

image

Sample xml:

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>

    </body>
</page>

catalog.xml

<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    ...
    <system systemId="urn:magento:framework:View/Layout/etc/page_configuration.xsd" uri="/path/to/magento/vendor/magento/framework/View/Layout/etc/page_configuration.xsd"/>
    ...
</catalog>

Any obvious reason why it fails?

@angelozerr
Copy link
Contributor

Any obvious reason why it fails?

It's a bug which is perhaps fixed in 1.4.0 (not released) with eclipse-lemminx/lemminx#850

Could you try to install last version of vsix https://download.jboss.org/jbosstools/vscode-xml/staging/?C=M;O=D and tell me if it works? Thanks!

@Morgy93
Copy link
Author

Morgy93 commented Aug 30, 2020

@angelozerr Yes it works beautifully!
I'll close this issue since it will then be automatically fixed with the new release, thanks!

@Morgy93 Morgy93 closed this as completed Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants