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

Error range for cvc-complex-type.2.3 #885

Closed
datho7561 opened this issue Sep 23, 2020 · 1 comment · Fixed by #908 or enxio/lsp4xml#88
Closed

Error range for cvc-complex-type.2.3 #885

datho7561 opened this issue Sep 23, 2020 · 1 comment · Fixed by #908 or enxio/lsp4xml#88
Assignees
Labels
bug Something isn't working validation
Milestone

Comments

@datho7561
Copy link
Contributor

Given the schema

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="foo">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="bar" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="foo" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="bar">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="bar" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="foo" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

...and this document, which is an instance of the schema:

<?xml version="1.0" encoding="UTF-8"?>
<foo
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="close-tag-type.xsd">
  <bar>/bar></bar>
</foo>

The error range for cvc-complex-type.2.3 is between the pipes: <bar>/bar></bar|>|
Instead, it should be between these pipes: <|bar|>/bar></bar>

@datho7561 datho7561 added bug Something isn't working validation labels Sep 23, 2020
@datho7561
Copy link
Contributor Author

datho7561 commented Sep 23, 2020

Oops this might be a regression in a PR one second... Not a regression, also in master

datho7561 added a commit to datho7561/lemminx that referenced this issue Oct 9, 2020
Now handles text nodes that are only take up one line,
as well as <![CDATA[]]>.

Closes eclipse#885

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/lemminx that referenced this issue Oct 15, 2020
Now handles text nodes that are only take up one line,
as well as <![CDATA[]]>.

Closes eclipse#885

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/lemminx that referenced this issue Oct 15, 2020
Now handles text nodes that are only take up one line,
as well as <![CDATA[]]>.

Closes eclipse#885

Signed-off-by: David Thompson <davthomp@redhat.com>
datho7561 added a commit to datho7561/lemminx that referenced this issue Oct 15, 2020
Now handles text nodes that are only take up one line,
as well as <![CDATA[]]>.

Closes eclipse#885

Signed-off-by: David Thompson <davthomp@redhat.com>
angelozerr pushed a commit that referenced this issue Oct 15, 2020
Now handles text nodes that are only take up one line,
as well as <![CDATA[]]>.

Closes #885

Signed-off-by: David Thompson <davthomp@redhat.com>
@angelozerr angelozerr added this to the 0.14.0 milestone Oct 15, 2020
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