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

Multiple xml(DownloadProblem) errors when referencing missing schema in file association #878

Closed
fbricon opened this issue Feb 15, 2023 · 0 comments · Fixed by eclipse-lemminx/lemminx#1484
Assignees
Labels
bug Something isn't working validation
Milestone

Comments

@fbricon
Copy link
Collaborator

fbricon commented Feb 15, 2023

Given this foo.myxml file:

<?xml version="1.0" encoding="UTF-8"?>
<foo>
    <bar>
        <meh></meh>
    </bar>
</foo>

If bound to a non-existing schema via file association, like:

"xml.fileAssociations": [
   {
      "pattern": "**/*.myxml",
      "systemId": "https://nope/myschema.xsd"
   }
]

Then multiple xml(DownloadProblem) are shown, one for each opening tag, with some weird range:

Screenshot 2023-02-15 at 13 45 25

The larger the number of tags, the worse it gets.

There should be only one error on the root node (with the proper range), similar to other binding methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validation
Projects
None yet
2 participants