Fork me on GitHub
#cider
<
2020-03-21
>
bozhidar09:03:33

Usually the source code is in different artifacts (e.g. source jars) and you just have to configure this in your build tool.

Felipe Marques16:03:31

I'm usings clojure cli.tools (deps.edn). Is it possible to have an out-of-the-box solution for every project that uses deps?

Felipe Marques16:03:41

Oh, and thanks for the response

bozhidar18:03:29

I’m afraid I haven’t used it much - I’m a lein person myself.

bozhidar18:03:57

Maybe @U05254DQM is more knowledgable on tools.deps?

practicalli_john22:03:35

First thought is to download the source (where ever that can be downloaded from?), create a symbolic link to it from your project(s). Probably adding a specific :path in the deps.edn file that is the name of the symbolic link. I've never needed to look at the Java source code when coding, I just search in the browser for docs. I very rarely need to do that either.

Mitch13:03:40

I know that we are talking the clj cli, but it might be worth checking out the lein-ubersource plugin

Mitch13:03:21

it will try to download the source for libraries included in your project.clj, which you would presumably then add to your classpath in the :dev profile or something

Mitch13:03:39

Additionally, I have the path to the jdk source in my :resource-paths so that I can jump to source in all my projects. I think that this also enables cider-javadoc

practicalli_john23:03:59

I've noticed that calling cider-doc in a Clojure source code buffer as the first thing after running a Clojure repl (cider-jack-in-clj) fails to work. It prompts with Doc: rather than displaying the function docstring. Entering the name of a function at the prompt fails with the error Symbol ,,, not resolved . If I evaluate an expression, any expression, then cider-doc works perfectly. I believe I get the same issue for clj-find-var . I am using CIDER 0.25.0snapshot (package: <tel:202002271414|20200227.1414>), Emacs 26.3 and Java 11. If this is not a known issue, I'll raise a ticket (I didnt see anything relevant on GitHub issues)