This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-21
Channels
- # announcements (1)
- # aws-lambda (62)
- # babashka (116)
- # beginners (67)
- # chlorine-clover (39)
- # cider (10)
- # cljs-dev (5)
- # clojure (30)
- # clojure-austin (2)
- # clojure-europe (2)
- # clojure-italy (6)
- # clojure-nl (24)
- # clojure-uk (28)
- # clojurescript (33)
- # data-science (6)
- # datascript (10)
- # datomic (5)
- # duct (39)
- # emacs (1)
- # events (8)
- # fulcro (9)
- # graalvm (29)
- # hoplon (7)
- # juxt (10)
- # malli (4)
- # off-topic (6)
- # pathom (10)
- # perun (1)
- # reagent (45)
- # shadow-cljs (5)
- # sql (14)
- # tools-deps (10)
- # xtdb (9)
Usually the source code is in different artifacts (e.g. source jars) and you just have to configure this in your build tool.
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?
Oh, and thanks for the response
Maybe @U05254DQM is more knowledgable on tools.deps?
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.
I know that we are talking the clj cli, but it might be worth checking out the lein-ubersource
plugin
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
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
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)