Fork me on GitHub
#cider
<
2023-11-08
>
John12:11:49

is there a snippet integrating *remote-javadocs* and http://javadoc.io (or CIDER/etc)

John12:11:18

the URL's there take a group-id/artifact-id/version-or-latest/ prefix

John12:11:11

maybe I should be trying to get maven to download sources and docs

vemv12:11:51

Are you familiar with the concept of enrich-classpath? It downloads sources CIDER then parses them and does a number of useful things with them See yesterday's video in #C0617A8PQ for instance

vemv12:11:39

Enrich also downloads javadocs. Personally I've never used them in any way - given the mentioned parsing, I have everything I need without leaving emacs

John13:11:28

i've seen it in the docs a bunch of times but it just doesn't happen or doesn't get used think_beret and it is in the clj cmdline when jacking in

John13:11:35

i see the cache file and it has the content I'd expect

John13:11:29

maybe my expectation that C-d C-d j would leverage this is wrong

vemv13:11:29

Do you see it available in misc places? Code completion (if you're using CIDER for that), *cider-doc* , the inspector as shown yesterday I know that Javadocs are there / get passed at nREPL level, but I never got to try them in cider. Maybe we don't know how to open a Javadoc that's inside a .jar :thinking_face:

John13:11:19

ohhhh I now recall a bit better, as once upon a time I did investigate it a bit and it had to do with the docs being inside the jar

John13:11:01

in *cider-doc* I get Not documented.

John13:11:12

it does give me the type and what it extends, which is evidence it's not lost looking for something else

vemv13:11:25

This is what I see when using M-x cider-doc over Thread

vemv13:11:00

and this is the completions integration (parsing the java doc comments from .java sources)

vemv13:11:11

M-x cider-javadoc probably doesn't know how to dig into .jar javadocs. Feel free to follow https://github.com/clojure-emacs/cider/issues/3575

🙇 1
John13:11:19

emacs (well, mine with 123141 doom modules at least) knows to open zips (and therefore jars) transparently, so if cider just lists and finds the file, some find-file magic should work

John13:11:38

but then the browser. yeah right

👍 1
mikerod16:11:58

Is there a way for cider to close both the clj & cljs buffers upon quit? I’m on the latest prior to yesterday’s release. However, for a long time I’ve noticed that doing cider-quit doesn’t remove both buffers. It only removes the one you are actively looking at and the nrepl server. So I always have to navigate to both buffers manually and quit each every time. Perhaps I’m missing something of how this works though. I use figwheel-main target as well if that matters.

vemv16:11:11

Sounds like GH issue material :) Will be happy to attend it

mikerod16:11:42

Ok. I can write one up in a bit that is more structured then.

magnars16:11:17

C-c C-s q will do sesman-quit IIRC, and will quit both repls.

mikerod17:11:34

Interesting. Would you still need cider-quit (or kill buffer) to remove the nrepl server in that case though?

mikerod17:11:45

So perhaps it’d be both cider-quit and the sesman-quit. I can mess around with this of course.

magnars21:11:21

There is no need to cider-quit after sesman-quit . It will shut it properly down.

👀 1