Skip to content

Commit 76cd314

Browse files
committed
Bug fix and README update for v0.0.5
1 parent 90a33d2 commit 76cd314

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Other editors that implement LSP client protocols, either built-in or through ed
4545
- Sublime Text
4646
- Helix
4747
- Kakoune
48+
- Zed
4849

4950
If you get Janet LSP working with any of these options, please let me know!
5051

@@ -61,16 +62,22 @@ $ jpm deps
6162
$ jpm build
6263
```
6364

64-
Both a stand-alone (albeit _dynamically_ linked) binary executable and a .jimage (Janet image) file will be generated.
65+
A .jimage (Janet image) file will be generated in `/build`. Using a .jimage file makes Janet LSP fully cross-platform (wherever there is a compatible Janet binary on the user's path). But it also means that you must have a Janet binary to use Janet LSP (this author struggles to imagine a scenario where you would both need the LSP and NOT have Janet itself installed).
6566

6667
### Installing
6768

68-
After running the commands above, the following command will copy the `janet-lsp` binary to a location that can be executed via the command line.
69+
After running the commands above, the following command will copy the `janet-lsp` binscript to a location that can be executed via the command line.
6970

7071
```shell
7172
$ jpm install
7273
```
7374

75+
Test successful install by running the following:
76+
77+
```shell
78+
$ janet-lsp --version
79+
```
80+
7481
### Debug Console
7582

7683
Starting in version 0.0.3, you can start a debug console by passing `--console` to any invocation of Janet LSP, including any of the following:

project.janet

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
:description "A Language Server (LSP) for the Janet Programming Language"
44
:version "0.0.5"
55
:dependencies ["https://github.com/janet-lang/spork.git"
6-
"https://github.com/ianthehenry/judge.git"])
6+
"https://github.com/CFiggers/jayson.git"
7+
"https://github.com/ianthehenry/judge.git"
8+
"https://github.com/CFiggers/cmd.git"])
79

810
# (def cflags
911
# (case (os/which)

src/main.janet

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@
5151

5252
(if (dyn :push-diagnostics)
5353
(let [d (run-diagnostics uri content)]
54-
(if (empty? d)
55-
[:noresponse state]
56-
[:ok state {:method "textDocument/publishDiagnostics"
57-
:params {:uri uri
58-
:diagnostics d}} :notify true]))
54+
[:ok state {:method "textDocument/publishDiagnostics"
55+
:params {:uri uri
56+
:diagnostics d}} :notify true])
5957
[:noresponse state])))
6058

6159
(defn on-document-diagnostic [state params]

0 commit comments

Comments
 (0)