lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
ericdallo 2020-05-07T01:14:35.038400Z

Hey @snoe, I'm trying to add a new funcionality to clean-ns and I want to test the LSP server local, how can I generate the binary from my local code?

ericdallo 2020-05-07T01:24:14.038500Z

Forget it, I realized that it's lein bin 🙂

ericdallo 2020-05-07T01:24:28.038700Z

I think I'll add to README 😛

ericdallo 2020-05-07T02:47:05.039600Z

:reviewplease: https://github.com/snoe/clojure-lsp/pull/129

snoe 2020-05-07T03:43:38.040700Z

Thanks @ericdallo - should https://github.com/snoe/clojure-lsp/pull/125 be merged? I just don't know emacs enough to understand where the convo landed.

ericdallo 2020-05-07T11:50:06.040900Z

I think so, that's the way I use for mothns/lsp-mode recommends. 🙂

ericdallo 2020-05-07T13:00:57.041700Z

Do you think it's "easy" to implement the search for unused symbols and remove on clean-ns ?

ericdallo 2020-05-07T13:02:01.041900Z

If we can use some function that return if a symbol is used I think it's easy to remove it on clean-ns

ericdallo 2020-05-07T15:48:07.042100Z

@snoe

snoe 2020-05-07T18:18:46.042300Z

I think so - add-missing-libspec should be a decent start. One thing I would want is to keep "raw" namespaces - I often see those required from a main for defmethod or similar reasons (:require [foo.a :as a] foo.b) => (:require foo.b) even if unused.

👍 1
ericdallo 2020-05-07T18:32:21.042700Z

Right, any easy way to converta node (from n/children) to use a zip ?

ericdallo 2020-05-07T18:33:09.042900Z

I'm want to do something like this:

(-> (n/vector-node [:c :a])
    z/rightmost)

ericdallo 2020-05-07T18:33:34.043100Z

but it cant cast from SeqNode

snoe 2020-05-07T21:22:21.043300Z

hrm, maybe z/of not sure though usually it's stay in zipper or stay in nodes 😕

1
ericdallo 2020-05-07T21:25:40.043700Z

I think there's no way 😔