Fork me on GitHub
#lsp
<
2024-03-15
>
devurandom12:03:56

Does IntelliJ Clojure LSP use one Clojure LSP process for all projects? I noticed that one window / project still shows that it is connecting to Clojure LSP, while another one is still "analyzing external classpath" -- I wonder whether these two things are related.

ericdallo12:03:03

That's my highest priority issue for this plugin ATM, the window changes mess up the plugin, but after fixed, it should be one clojure-lsp process per window/project

ericdallo12:03:16

For now, the workaround is to close and open one project at the time

ericdallo12:03:18

thanks, I was about to create, glad you did it

devurandom12:03:23

Do you also embed ClojureDocs, or where do the "examples" come from when I press ^Q?

ericdallo12:03:43

Yes, clojure-lsp request clojuredocs and cache all content for subsequent hover information

ericdallo13:03:01

Thanks for the issue, I tried that when I implemented that feature on the plugin but could not find a way to achieve that via Markdown (That's what clojure-lsp returns), all other editors support that though 😔

devurandom13:03:28

Can you return GH markdown from LSP?

"""clojure
(def sym 1)
"""
(`"` representing backticks here, which I cannot write in Code snippets)

devurandom13:03:04

Then you could find that in the IntelliJ plugin and render it with highlighting. (Or register with IntelliJ as a highlighter for Markdown code snippets in the clojure language, or however IntelliJ does these things. I think they have a Markdown plugin, not sure whether that is extensible...)

ericdallo13:03:50

it's what clojure-lsp does already

ack 1
ericdallo13:03:31

which I guess should work the same?

ericdallo13:03:12

but when I tried rendering that in Intellij, it only worked when using HTMLBuilder, which doesn't have syntax highlight indeed

ericdallo13:03:47

it should not be hard, there must be some class for that or so, the intellij docs/api is just hard to find those things 😅

devurandom13:03:56

Yeah, Colin Fleming was also regularly struggling with their API and, even worse, API changes or, even worse, semantic changes without API changes...

ericdallo13:03:51

yeah, I feel that... There were cases was faster to ask to chat gpt instead of spending 2hours reading the source code 😂

devurandom13:03:15

I guess that's the new way anyway It seems to be what a lot of ppl do and they are much faster. Just need to fact check the code...

ericdallo13:03:18

yeah, I was surprised though after it saved me a couple of times from spending time on checking the code

1
witek15:03:55

Hi. With Emacs integration I can use lsp-rename to rename a namespace alias. Is it possible to use the API to rename a namespace alias?

ericdallo15:03:32

Currently not, only vars, but we could improve it to support, feel free to create a issue