lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
borkdude 2021-01-09T12:48:51.236400Z

Any chance I can get some feedback from the LSP team here: https://github.com/clj-kondo/clj-kondo/issues/1112#issuecomment-756380648 ?

ericdallo 2021-01-09T14:41:25.236700Z

I think @snoe has more context on that clj-kondo code indeed 😕

pez 2021-01-09T16:13:07.237800Z

Is clojure-lsp supposed to work for babashka scripts?

borkdude 2021-01-09T16:14:14.238600Z

I can see it having trouble with deps that are built into bb, so there is no deps.edn for it

borkdude 2021-01-09T16:14:58.239Z

but clj-kondo doesn't care about deps, they are optional to lint, it won't try to find them anywhere unless you lint those yourself

pez 2021-01-09T16:20:40.240300Z

The clj-kondo extension helps me nicely with the script. Calva with clojure-lsp does not seem to do anything at all.

pez 2021-01-09T16:23:37.240900Z

And since babashka doesn’t support cider-nrepl I have a less than stellar experience. 😃

borkdude 2021-01-09T16:24:13.241500Z

> And since babashka doesn’t support cider-nrepl it does support nrepl though?

pez 2021-01-09T16:27:43.244400Z

Yeah, that’s awesome. Only takes me so far though.

pez 2021-01-09T16:28:20.244700Z

I was hoping clojure-lsp would close some of the gap.

borkdude 2021-01-09T16:29:39.245Z

What is it from cider-nrepl that you would like to have in bb nrepl?

borkdude 2021-01-09T16:36:19.245900Z

Anyway, it would be great if LSP could support bb scripts ;)

1🤘
pez 2021-01-09T16:46:36.246100Z

The ones that Calva use 😃 . In some order of preference for my own workflow: 1. info 2. complete 3. stacktrace 4. init-debugger/debug-input 5. test-var-query/retest/test-stacktrace

borkdude 2021-01-09T18:55:50.246300Z

@pez The complete op should work in the nREPL

snoe 2021-01-09T19:25:55.246500Z

@borkdude lgtm I'll get as far as possible without str... I've got a couple more fixes in the pipe that were missed in locals and name pos too..

borkdude 2021-01-09T19:26:40.246700Z

@snoe I just wondered: when using a local, it's always the same as the name, there isn't a syntactical change possible, right?

borkdude 2021-01-09T19:26:50.246900Z

This is why it didn't seem necessary to me

1👍
pez 2021-01-09T21:17:21.247200Z

In fact it does. I think it might be missing some metadata, so it looks like a regular word match in vscode.