Fork me on GitHub
#lsp
<
2021-08-11
>
lassemaatta10:08:33

is it possible to see (at least some rows) of the docstring of a var in the modeline with clojure-lsp & emacs? This (https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/) gives advice on how to turn it off (part 13), but describe-variable says lsp-signature-render-documentation is already t.

ericdallo12:08:05

ATM we only support showing the first or second line which bring the function arity

ericdallo12:08:43

To check the whole doc, I use lsp-describe-thing-at-point

seancorfield15:08:46

If I'm seeing occasional "hangs" in VS Code/Calva that I suspect are coming from LSP, is there somewhere I can look in a log file or a setting to making logging more verbose to help track down a repro case? I probably get one or sometimes two such "hangs" a day where the Clojure features stop working for a few seconds and then "catch up". Sometimes it actually locks VS Code for a second or two.

ericdallo15:08:41

Check "Viewing the Logs Between the Client and Server" section

seancorfield15:08:42

Thanks! I set it to messages and if that doesn't help, I'll set it to verbose.

👍 2
seancorfield15:08:18

(we have 115k lines of code in 700 files)

jjttjj15:08:34

Hi, is there a way to do a "add missing require" programmatically, like the api namespace allows for some other features? Being hacky is fine :)

ericdallo15:08:28

Hi! ATM there is no public API way, but I intend to add it soon, meanwhile I don't think there is an easy way to call it :/

ericdallo15:08:51

Please open an issue with the expected API usage following the other features, that would help a lot

jjttjj15:08:34

Great thanks, I'll give it a bit of thought and open an issue soon. Loving the exposed api btw. It's really awesome just having a separate repl open that i can run these little tools in while I'm developing stuff, without any editor integration

ericdallo15:08:12

Cool, glad to know there are people using that way :)

👍 2
ericdallo15:08:27

LMK if any feedbacks

ericdallo15:08:48

I want to add find-definition/references and especially the most used refactors to the API

❤️ 2
seancorfield15:08:41

On the subject of "adding things", when I create a new .edn file, LSP adds an ns directive to the top of it -- it should only do that for .clj files (and .cljc/`.cljs`) right?

ericdallo15:08:19

Hum, right, probably it's missing a check for that

ericdallo15:08:36

I'm surprised I never found that bug 😅

ericdallo15:08:36

Yeah, it probably only happen for edn files, it's easy to fix though, feel free to open an issue and I can take a look soon :)