-
Notifications
You must be signed in to change notification settings - Fork 93
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
No validation when referencing a schema in the same directory #144
Comments
It works for me, I have none error? And it exists test for that https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/test/java/org/eclipse/lsp4xml/extensions/contentmodel/XMLSchemaDiagnosticsTest.java#L202 |
I still have the error, but completion for resource nodes and attributes work as expected. Weird |
I'm sorry @fbricon I cannot reproduce? |
@fbricon this issue is annoying because it works for me on Windows OS and tests https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/test/java/org/eclipse/lsp4xml/extensions/contentmodel/XMLSchemaDiagnosticsTest.java#L202 is passing. @NikolasKomonen have you the same problem? |
I still see this error. @NikolasKomonen please double check |
@fbricon I can reproduce your issue! To reproduce your problem, you need to open 2 XML files which are linked to an XML Schema which have no target namespace:
To fix this bug, we need not to use Xerces cache. If you replace in XMLValidator, the line 50
with
Your bug dispareas, but we losse cache feature -( I would liek to keep cache feature, no find a solution for the moment. |
As WTP uses XIncludeAwareParserConfiguration, I decide to do the same thing. @fbricon tell me if it fixes your problem. |
can't we bind one parserconfiguration to one document? so that caching would be scoped to that particular document |
Yes we could do that, but performances seems good, we will see if we need that in the future. Is this issue is fixed for you @fbricon ? |
Sanitizing the rootUri fixes this issue. |
I don't understand, it should not be linked? I have fixed rootURI for file associations, but I'm sceptical that it fixes this issue? Please give me feedback. |
You're right, this is irrelevant. It's working for me now anyway. |
Trying the example in https://stackoverflow.com/a/8780114/753170
resources.xsd:
and resources.xml:
resources.xml has an error on the opening resources tag:
The text was updated successfully, but these errors were encountered: