Fork me on GitHub
#spacemacs
<
2022-04-30
>
Brian Beckman00:04:56

? javadoc and jdk sources in spacemacs ? in this clever video https://www.youtube.com/watch?v=4ecC3jqHooc, Curious Programmer shows javadoc (around the 24:06 mark) in an emacs buffer, and jdk sources a few seconds later, again in an emacs buffer. In my installation, both javadoc and jdk sources are outside the emacs environment. When I find the cider-javadoc command, it opens Firefox. The cider “goto source” command doesn’t know where I cloned the jdk sources. How do I set them up like “Curious Programmer’s” environment? I’m using spacemacs with emacs keys; he is using VIM keys, so his keystrokes and bindings are no help to me.

jumar05:04:18

I produced this video a long time ago. At that time it was, obviously, working for me. I don't exactly remember but I might have added the JDK sources to classpath explicitly. I've just tried it quickly and it doesn't seem to work for me, at least not for all projects - but I didn't add jdk sources to my classpath explicitly. Now, there's this issue out there about this problem so perhaps check the comments there: https://github.com/clojure-emacs/cider/issues/2819

👍 1
jumar05:04:42

Also, here has been some work related to enrich-classpath "plugin" which will automatically download javadocs and sources for all the 3rd party dependencies - not sure if that's enabled by default right now or not. Maybe ask in #cider

👍 1