-
Notifications
You must be signed in to change notification settings - Fork 78
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
Aggregate errors in xsd:import|include@schemaLocation for referenced grammar which have errors #596
Comments
Thanks for reporting this issue @Mooninaut I tested quickly your usecase and indeed the error reporting is totally unusable. It requires some investigation how to fix this problem. |
page Fixes redhat-developer/vscode-xml#596 Signed-off-by: azerr <azerr@redhat.com>
page Fixes redhat-developer/vscode-xml#596 Signed-off-by: azerr <azerr@redhat.com>
page Fixes redhat-developer/vscode-xml#596 Signed-off-by: azerr <azerr@redhat.com>
grammar which have errors Fixes redhat-developer/vscode-xml#596 Signed-off-by: azerr <azerr@redhat.com>
grammar which have errors Fixes redhat-developer/vscode-xml#596 Signed-off-by: azerr <azerr@redhat.com>
grammar which have errors Fixes redhat-developer/vscode-xml#596 Signed-off-by: azerr <azerr@redhat.com>
I'm able to reproduce as well. However, @angelozerr , do you also notice the following behaviour ? If the Even with the PR, which is fixing things I notice the behaviour so maybe a separate issue ? UPDATE : stacktrace
|
grammar which have errors Fixes redhat-developer/vscode-xml#596 Signed-off-by: azerr <azerr@redhat.com>
It's an another problem with cache, I created an issue for this problem at eclipse/lemminx#1121 |
Opening any XSD file that attempts to import a no-longer-present http[s]-served XML Schema with the VSCode XML plugin, version v0.18.0 active causes a large number of errors to appear in the Problems pane. These are a result of attempting to parse a web page as an XSD.
Steps to reproduce
j2ee_1_4.xsd
in Visual Studio Code.Observed result
See attached screenshot. The majority of the file is highlighted as an error. Many error messages like the following appear in the Problems view:
Confusingly, from a user's perspective, the error messages imply that the source code of that IBM webpage is present immediately following the closing angle bracket of the opening
xsd:schema
tag. The error highlight continues from that point until the end of the file.Cause
j2ee_1_4.xsd
lines 85-86 contain an import directive for http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd, which is no longer present at that location. There is an HTTP redirect to a regular web page, https://www.ibm.com/products/softwareExpected result
<!DOCTYPE html>
,<html>
, etc. with a useful error message.Screenshot
The text was updated successfully, but these errors were encountered: