David Thompson
David Thompson
@angelozerr do you think the second portion of this issue is worth pursuing? I know we were thinking of implementing a command that will bind to a schema that is...
We will need to do a bit of work in order to get the binary to work
See https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/3540, https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/issues/3539
Here's what's needed to get the binary working: ```diff diff --git a/org.eclipse.lemminx/src/main/resources/META-INF/native-image/resource-config.json b/org.eclipse.lemminx/src/main/resources/META-INF/native-image/resource-config.json index 12a4fcdb..18d3640d 100644 --- a/org.eclipse.lemminx/src/main/resources/META-INF/native-image/resource-config.json +++ b/org.eclipse.lemminx/src/main/resources/META-INF/native-image/resource-config.json @@ -50,6 +50,12 @@ { "name": "org.apache.xerces.impl.msg.XMLMessages" }, + {...
I'll double check, but I thought it was working when I tried it. edit: yep, it seems to be working with the binary
Given: ```xml David ``` and an empty `asdf.rnc`, the "schema invalid" error is placed on the first line of the file (it's not adjusted properly), and 2 NPE appear in...
If you reference an empty `.rng` file, then the error message that appears is `::::-1:-1:-1:Premature end of file.xml(RelaxNGNotFound)`. It would be nice if we could remove the `::::-1:-1:-1:` part
It would be nice to associate all `.rng` files with the relaxng.rng or relaxng.xsd schema. Do you want to do this in a future PR?
If you reference an empty `.rng` file, the `SAXParseException` appears in the logs.
This looks like it'd be really elegant, but according to the POM we're still using Java 8 for lemminx, so I don't think this is available unfortunately.