Giter Club home page Giter Club logo

archetype-languageserver's People

Contributors

dependabot[bot] avatar pieterbos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archetype-languageserver's Issues

document outline does not work for archetype

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">
            >
        >
    >

AQL Syntax highlighting catching reserved words also inside variable names

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

image

Bug-issue: terminology generation

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.