nedap / archetype-languageserver Goto Github PK
View Code? Open in Web Editor NEWA language server and vs code extension for OpenEHR archetypes, to be used in your favorite IDE
License: Apache License 2.0
A language server and vs code extension for OpenEHR archetypes, to be used in your favorite IDE
License: Apache License 2.0
No idea why, the symbol extractor seems to supply a result, I can even use the symbols to fix the terminology, but nothing is displayed at all. May need to find the vscode language server debugger and see what happens.
archetype (adl_version=2.0.4; rm_release=1.0.4)
openEHR-EHR-CLUSTER.simple_sum.v0.0.1
language
original_language = <[ISO_639-1::nl]>
description
lifecycle_state = <"unmanaged">
copyright = <"">
details = <
["nl"] = <
language = <[ISO_639-1::nl]>
purpose = <"">
>
["en"] = <
language = <[ISO_639-1::en]>
purpose = <"">
>
>
definition
CLUSTER[id1] matches { -- A test cluster
items matches {
ELEMENT[id2] matches {
value
}
ELEMENT[id4] occurrences matches {0..*} matches {
value
}
}
}
terminology
term_definitions = <
["nl"] = <
["id1"] = <
text = <"A test cluster"> --test
description = <"A test cluster">
>
["id2"] = <
text = <"A test element">
description = <"A test element">
>
["id4"] = <
text =<"Missing translation">
description =<"Missing translation">
>
>
["en"] = <
["id1"] = <
text = <"A test cluster"> --test
description = <"A test cluster">
>
["id2"] = <
text = <"A test element">
description = <"A test element">
>
["id4"] = <
text =<"Missing translation">
description =<"Missing translation">
>
>
>
It is only shown that a template overlay validation failed for the entire template - not which overlay and what the error is. That is highly annoying :)
for ADL 2 files this shoiuld probably work. Also test itfor ADl 1.4 files, there seem to be some issues.
gives exception, oddly enough
The AQL syntax highlighting currently happens to highlight reserved words like "order". "from" etc also inside variable names. It likely should only whitespace-delomited reserved words instead.
For example an AQL line like...
x/protocol[at0004]/items[at0094]/items[at0062]/value/value AS Requester_order_from_somewhere,
...will highlight the order/from/where parts of the variable name too.
See blue "order" in screenshot below
Would expect some kind of error. instead, it swallows it and shows no further problems.
Workaround: convert them to unix line endings. VSCode has a command for this, or use a commandline utility such as dos2unix.
Trying to auto-generate terminology (for example adding DV_TEXT to openEHR-EHR-CLUSTER.exam_body_fluid.v1.0.0
), results in the following error:
SEVERE: Internal error: java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
... 11 more
Caused by: java.lang.RuntimeException: term definitions symbol not found amongs symbols: term_definitions
at com.nedap.openehr.lsp.utils.DocumentSymbolUtils.getDocumentSymbolOrThrow(DocumentSymbolUtils.java:33)
at com.nedap.openehr.lsp.commands.AddTerminologyCommmand.apply(AddTerminologyCommmand.java:52)
at com.nedap.openehr.lsp.ADL2TextDocumentService.executeCommand(ADL2TextDocumentService.java:306)
... 16 more
[Error - 12:30:21 PM] Request workspace/executeCommand failed.
Message: Internal error.
Code: -32603
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:67)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.request(GenericEndpoint.java:120)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleRequest(RemoteEndpoint.java:261)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:190)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint.lambda$null$0(GenericEndpoint.java:65)
... 11 more
Caused by: java.lang.RuntimeException: term definitions symbol not found amongs symbols: term_definitions
at com.nedap.openehr.lsp.utils.DocumentSymbolUtils.getDocumentSymbolOrThrow(DocumentSymbolUtils.java:33)
at com.nedap.openehr.lsp.commands.AddTerminologyCommmand.apply(AddTerminologyCommmand.java:52)
at com.nedap.openehr.lsp.ADL2TextDocumentService.executeCommand(ADL2TextDocumentService.java:306)
... 16 more
line 222:20 mismatched input 'id' expecting {'[', '<'}
line 222:22 extraneous input ']' expecting {'}', '[', SYM_DEFAULT, ADL_PATH, ALPHA_LC_ID}
line 222:51 mismatched input 'matches' expecting {SYM_RULES, SYM_TERMINOLOGY}
Aug 19, 2020 12:31:09 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 3363
Aug 19, 2020 12:31:10 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 3364
In the modular JVM, some parts are missing for JAXB support, notably java.awt.Image.
results in many validation errors that are not validation errors at all - the validator just does not handle OPTS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.