-
Notifications
You must be signed in to change notification settings - Fork 82
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
XML attribute associated to wrong type from XSD #524
Labels
Milestone
Comments
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 15, 2023
Fixes redhat-developer/vscode-xml#524 Signed-off-by: azerr <[email protected]>
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 15, 2023
Fixes redhat-developer/vscode-xml#524 Signed-off-by: azerr <[email protected]>
Sorry @Nerpson I skipped your issue -( The PR eclipse-lemminx/lemminx#1480 should fix your issue: |
angelozerr
added a commit
to angelozerr/lemminx
that referenced
this issue
Feb 15, 2023
Fixes redhat-developer/vscode-xml#524 Signed-off-by: azerr <[email protected]>
angelozerr
added a commit
to eclipse-lemminx/lemminx
that referenced
this issue
Feb 16, 2023
Fixes redhat-developer/vscode-xml#524 Signed-off-by: azerr <[email protected]>
github-project-automation
bot
moved this from 🏗 In progress
to ✅ Done
in IDE Cloudaptors
Feb 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Type: Bug
I created an XML schema containing a complexElement with two attributes. The first one is just a simple string, the second one has a custom simpleType inheriting from string but having an additional minLength=1 restriction.
When trying this schema, the first attribute is wrongly associated to the second's custom type.
You can easily reproduce this issue with the linked ZIP archive. It contains a simple schema and an XML file using it and having the described issue.
VSCode_XSD_Bug.zip
In
test.xml
you'll see that two errors are highlighted where only one should exist, on theSome_Restricted_Value
attribute.The helper popup even tells the wrong type.
When writing a value in the restricted attribute, both of the errors disappear.
Extension version: 0.16.1
VS Code version: Code 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48, 2021-06-17T13:28:07.755Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: