This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-18
Channels
- # announcements (2)
- # architecture (10)
- # beginners (51)
- # cider (14)
- # cljsrn (1)
- # clojure (13)
- # clojure-uk (3)
- # clojurescript (63)
- # cursive (1)
- # datomic (8)
- # emacs (1)
- # figwheel (1)
- # figwheel-main (18)
- # fulcro (62)
- # hyperfiddle (1)
- # incanter (1)
- # jobs-discuss (4)
- # off-topic (3)
- # parinfer (6)
- # reagent (5)
- # ring-swagger (3)
- # shadow-cljs (25)
- # sql (2)
- # tools-deps (2)
Is there a way to jump to Java source code from cider?
@kwcharllie379 I think step one is to add the source artefacts to your project. I think it works though, you could try jumping to source against some clojure java.
How can I add them?
an example of something that I expect would work: java.util.concurrent.ThreadPoolExecutor
Well it works perfectly with your example but what if I am trying to jump to the source of 3rd party library?
@kwcharllie379 you add an additional dependency, so say you depend on [foo/bar]
there is usually a source jar deployed as well, so you add an additional dependency on [foo/bar :classifier "sources"]
.
Thank you very much ❤️
@dominicm Funny thing is that although I can jump to the sources after adding classifier I am receiving the error with not matching ctor. It's funny because without classifier it works as expected. http://central.maven.org/maven2/commons-codec/commons-codec/1.11/
@kwcharllie379 do you have both?
Nope ;(
Ok sory that’s my bad. You emphasized that it should be an additional dependency.
Thank you one more time
@kwcharllie379 that's okay, it's an easy mistake, I quite expected it 😛