-
Notifications
You must be signed in to change notification settings - Fork 91
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
Invalid "schemaLocation" is not reported #1143
Comments
The issue also arises for local paths, so that it is not a matter of the 404 error when requesting the XSD: <?xml version="1.0" encoding="UTF-8"?>
<application xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee file:///C:/Temp/wildfly-26.0.0.Final/docs/schema/application_9.xsdaaa">
<invalid>
</invalid>
</application> |
It should report an error but with warning severity. |
@WolfgangHG you are right, there were a bug. I have fixed in #1155 I refactor a lot of thing with the download process and now it should work: We plan to do a release soon, after that WWD will adopt it. //cc @mickaelistria |
I don't see this warning when using Eclipse 2022-6, the original problem is still present. Is the fix contained in this version? |
Which version of WWD are you using? |
I suggest that you install last version of WWD https://github.com/eclipse/wildwebdeveloper/releases/tag/0.15.0 |
I downloaded the windows version from https://download.eclipse.org/wildwebdeveloper/releases/latest/IDEs/, but also here this issue still happens. |
Ok let me some time to retry again with WWD 0.15 to see what it happens. |
You need to set After that you should see: @mickaelistria @vrubezhny is there any reason that |
I suggest that you create an issue for that to discuss about that but I dont know if it is easy to implement your suggestion beczuse it is the behavior of xerces.
If you remove shemaLocation your xml is not validated by a xsd, (except if the xml defined à namespace which matche a catalog entry).and you have only syntax error. Always is just when you define a schemaLocation.
Please create an issue but it seems the problem comes from the xsd or dtd catalog. |
New issue #1272 created for the schemaLocation validation and eclipse-wildwebdeveloper/wildwebdeveloper#847 for catalog validation (don' know whether it is an lemminx or wildwebdeveloper issue). |
I first created https://bugs.eclipse.org/bugs/show_bug.cgi?id=578009 and was pointed here:
The new LanguageServer based validation in Eclipse does not report errors when a xml file has an invalid schemaLocation.
This is a valid XML file:
Two errors are reported in this file (missing attribute "version" on root element, the child element "invalid" is invalid).
Now, change anything in the schemaLocation URI to make it invalid:
Here, no error at all is shown for this file.
I would expect a message "schema location xyz could not be resolved" or similar.
The text was updated successfully, but these errors were encountered: