-
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
cant get it to do anything, Java exceptions in lsp4xml.log #183
Comments
I'm also seeing lots of exceptions in lsp4xml.log
|
Could you share your XML file please. |
IO-Link-01-DirectParamsDevice-20130515-IODD1.1.zip This is an official examle IODD file from the IO-Link specification (industrial automation protocol), vendors describe their devices with such files so the master can configure the port accordingly and load the correct software modules for this device. |
I am on Ubuntu Linux:
|
Thank you, I can reproduce your NPE problem. I will investigate your problem. |
@prof7bit after studying your usecase, I have found 2 little bugs that I will fix it, but you can benefit with validation and completion. At first you don't need xml.fileAssociation since you bind your XML with XML Schema (according your sample): <IODevice xmlns="http://www.io-link.com/IODD/2010/10" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.io-link.com/IODD/2010/10 IODD1.1.xsd">
This declaration means that you have the XML Schema If you unzip the following folder you can open your the XML file of the folder and validation, completion, hover, etc should work. Normaly, you could write too: <IODevice xmlns="http://www.io-link.com/IODD/2010/10" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.io-link.com/IODD/2010/10 https://io-link.com/IODD/2010/10/IODD1.1.xsd">
To bind your XML file with https://io-link.com/IODD/2010/10/IODD1.1.xsd but validation , completion doesn't work because:
You could write your own XML catalog too to avoid setting your XSD files in the same folder your XML files. I suggest you that you read documentation about XML catalogs. |
error. See redhat-developer/vscode-xml#183 (comment) Signed-off-by: azerr <[email protected]>
@fbricon this PR eclipse-lemminx/lemminx#569 should fix NPE #183 (comment) I will prepare an another PR for completion cache bug. |
error. See redhat-developer/vscode-xml#183 (comment) Signed-off-by: azerr <[email protected]>
Done with eclipse-lemminx/lemminx#570 |
Either the documentation is incomplete and missing to explain how to actually activate it or there is a bug and it won't do anything.
I have associated a file extension with a schema
but if I load one of these xml files it won't do any validation, I can intentionally insert unknown tags or even syntactic errors and save the document but there is no indication that anything is being validated at all or anything with the configuration is wrong or that there are any errors in my xml document.
The text was updated successfully, but these errors were encountered: