4
4
5
5
# What is Language Server ?
6
6
7
- [ Langserver\. org] ( https://langserver.org/ )
7
+ For details, see [ Langserver\. org] ( https://langserver.org/ ) .
8
8
9
9
# Requirements
10
10
11
- python3
11
+ - Python3
12
+ - master branch of [ yeger00/pylspclient: LSP client implementation in Python] ( https://github.com/yeger00/pylspclient/ )
12
13
13
14
# How to setup
14
15
15
16
``` console
16
- git clone -b sandbox https://github.com/common-workflow-language/cwl-language-server.git
17
- cd cwl-language-server
18
- pip install -r requirements.txt
17
+ $ git clone https://github.com/common-workflow-language/cwl-language-server.git
18
+ $ cd cwl-language-server
19
+ $ pip install -r requirements.txt
19
20
```
20
21
21
- ## Install pylspclient
22
-
23
- Currently, we must use ` send-result-wip ` branch of [ yeger00/pylspclient: LSP client implementation in Python] ( https://github.com/yeger00/pylspclient/ )
24
-
25
22
# How to execute example
26
23
27
24
``` console
28
- $ PYTHONPATH=/path/to/cwl-language-server python examples/first-step.py
29
- ```
30
-
31
- ## for example
32
-
33
- ```
34
- PYTHONPATH=$PWD python examples/first-step.py
35
- ```
36
-
37
- ### Expected Result
38
-
39
- Looks like this.
40
-
41
- ``` console
42
- $ python examples/first-step.py
25
+ $ git clone https://github.com/common-workflow-language/cwl-language-server.git
26
+ $ cd cwl-language-server
27
+ $ pip install -r requirements.txt
28
+ $ PYTHONPATH=$PWD python examples/first-step.py
43
29
{'capabilities': {'completionProvider': {'triggerCharacters': [': ']}}}
44
30
None
45
31
{'jsonrpc': '2.0', 'method': 'initialized', 'params': {}}
@@ -58,9 +44,8 @@ Use `CTRL-c` to exit the example.
58
44
(add-to-list 'eglot-server-programs
59
45
'(cwl-mode . ("/path/to/python" "/path/to/cwl-language-server/cwl_language_server/main.py")))
60
46
(add-hook 'cwl-mode-hook 'eglot-ensure)
61
- (eglot-ensure)
62
47
```
63
48
- Open CWL file
64
49
- Set the cursor after ` cwlVersion: `
65
- - ` M-x completion-at-point `
50
+ - If you installed ` company.el ` , possible versions are listed in the completion list. Otherwise use ` M-x completion-at-point ` or ` M-x company-complete ` by hand.
66
51
- Have fun!
0 commit comments