Closed arkceajin closed 4 years ago
You are using fileAssociation and XML catalog both. You must choose your binding kind.
I suggest you that you attach in this issue a zip of your vscode project.
I suggest you that you attach in this issue a zip of your vscode project.
The project only contain a arxml
which I going to create by using the xsd
.
xsd: https://github.com/autosaros/Standards/blob/master/Adaptive%20Platform/19.03/MethodologyAndManifests/AUTOSAR_MMOD_XMLSchema/AUTOSAR_00047.xsd
I tried create the xml and put in the same folder with xsd.
<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="http://autosar.org/schema/r4.0 AUTOSAR_00047.xsd" uri="file://./AUTOSAR_00047.xsd" />
</catalog>
But still not working...
@arkceajin at first vscode-xml doesn't support *.arxml
I suggest you to rename to .xml
file.
@fbricon @NikolasKomonen @xorye do you know if it's possible to customize this file extension by user?
If it doesn't work, @arkceajin please share your vscode project. Your error could come from your settings.json for instance if the catalog path is not good.
arxml and xsd files in the same folder, it works for me, but it's very slow, as the xsd is over 7MB. I increased the memory attributed to lsp4xml to 256MB in settings.json:
"xml.server.vmargs": "-noverify -Xmx256m -XX:+UseG1GC -XX:+UseStringDeduplication -Dlog.level=off",
but it's very slow
If I remember, today when XSD file is on the local, it is parsed every time:
It should be improved by caching the XSD.
@fbricon Thanks, using the setting and without xml.catalogs
simply put XML and XSD in the same folder could work well. So the problem is just the loading was too slow...
So the problem is just the loading was too slow...
You mean that completion based on XML Schema to show in completion INTRODUCTION, FORMULA, etc is slow?
@angelozerr Yes, after specific "xml.server.vmargs": "-noverify -Xmx256m -XX:+UseG1GC -XX:+UseStringDeduplication -Dlog.level=off",
the completion popup almost immediately.
@arkceajin just to clarify this issue:
Is that?
Not nothing but sometimes popup Loading
or sometimes popup dialog doesn't contain the completions as below:
Correct completions:
Thanks @adelasofia for your feedback. I'm working on this issue https://github.com/angelozerr/lsp4xml/issues/547
@arkceajin I fixed this issue in https://github.com/angelozerr/lsp4xml/issues/547 Now completion should be slow the first time and quick after. This feature is available for 0.9.0
settings.json:
arxml:
How to set the
xsi:schemaLocation
and"systemId"
to making thexsd
relate to thearxml
?