Skip to content

Commit 2783605

Browse files
authored
Merge pull request #10 from common-workflow-language/improve-readme
Improve README.md
2 parents 142cd7a + 4fd9e85 commit 2783605

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed

README.md

+11-26
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,28 @@
44

55
# What is Language Server ?
66

7-
[Langserver\.org](https://langserver.org/)
7+
For details, see [Langserver\.org](https://langserver.org/).
88

99
# Requirements
1010

11-
python3
11+
- Python3
12+
- master branch of [yeger00/pylspclient: LSP client implementation in Python](https://github.com/yeger00/pylspclient/)
1213

1314
# How to setup
1415

1516
```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
1920
```
2021

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-
2522
# How to execute example
2623

2724
```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
4329
{'capabilities': {'completionProvider': {'triggerCharacters': [': ']}}}
4430
None
4531
{'jsonrpc': '2.0', 'method': 'initialized', 'params': {}}
@@ -58,9 +44,8 @@ Use `CTRL-c` to exit the example.
5844
(add-to-list 'eglot-server-programs
5945
'(cwl-mode . ("/path/to/python" "/path/to/cwl-language-server/cwl_language_server/main.py")))
6046
(add-hook 'cwl-mode-hook 'eglot-ensure)
61-
(eglot-ensure)
6247
```
6348
- Open CWL file
6449
- 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.
6651
- Have fun!

0 commit comments

Comments
 (0)