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

Incorrect error range for src-import.3.2 #1069

Closed
datho7561 opened this issue Jun 24, 2021 · 0 comments · Fixed by #1087
Closed

Incorrect error range for src-import.3.2 #1069

datho7561 opened this issue Jun 24, 2021 · 0 comments · Fixed by #1087
Assignees
Labels
bug Something isn't working validation
Milestone

Comments

@datho7561
Copy link
Contributor

datho7561 commented Jun 24, 2021

Given a schema:

<xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://example.org/my-example"
    xmlns:NS="http://example.org/my-example">
  <xs:import schemaLocation="./otherSchema.xsd"/>
</xs:schema>

and given that the schema file otherSchema.xsd exists and contains:

<xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://foo.bar"
>
  <xs:element name="root-element"></xs:element>
</xs:schema>

an error with the code xsd(src-import.3.2) is generated somewhere in the the starting tag of <xs:schema> in the first file. It would be nice if this error range instead covered the name of the <xs:import> element, or maybe even the value of the schemaLocation attribute of the <xs:import> element.

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
Development

Successfully merging a pull request may close this issue.

2 participants