Fork me on GitHub
#calva
<
2024-01-07
>
Stef Coetzee19:01:16

How does one have the namespace doc string show upon hover? (The file is saved; I've restarted VSCode and Shadow CLJS to cover the "Have you tried turning it off and on again?" case.)

seancorfield20:01:58

For a lot of this sort of stuff, you need a connected REPL.

pez21:01:30

This should work without a connected repl, I think. Could be a classpath issue? I’ll try myself when I’m at a keyboard.

pez21:01:48

It works without a connected repl. (You’ll have to take my word for that the repl isn’t connected here. 😃 ) I also tried with the repl connected to see if that brakes it, but it doesn’t. Is clojure-lsp started, @U03CPPKDXBL?

1
seancorfield22:01:11

Good to know. I thought docstrings required a REPL -- my bad!

Stef Coetzee04:01:58

Thanks for the responses! I'm on the latest version of Calva, using VSCode in Windows connected to Ubuntu via Windows Subsystem for Linux (WSL2), with clojure-lsp started and my editor connected to a REPL. Yet it didn't show the doc string. Hadn't restarted the computer, though. picard-facepalm Just did and the doc strings show up after the fact. Not sure what made the difference. :thinking_face:

pez06:01:27

Very strange. But happy it works now!

🙏 1