How to jump to clojure.lang java source?
Asked Answered
P

1

12

When using Cider, doing "M-." above symbol "clojure.lang.ISeq" gives error "No source available for clojure.lang.ISeq".

I see that the source for this file is in "clojure-1.5.1-sources.jar".

How can I make Cider see this source?

Phlegm answered 14/11, 2014 at 2:26 Comment(2)
Use github.com/clojure-emacs/cider/issuesAutoclave
Are you having the same issue as described here?Humidity
D
2

ISeq is a java interface that every seq-able collection in clojure implements. Thus you can't get the source by issuing a (source var). To get to the source you have to peruse the Clojure repo on GitHub. The idea is that the underlying java code that powers Clojure is an implementation detail, therefore it's not designed to be exposed to the users of the language. It's perfectly fine to look at it, but you have to do some digging. You can verify this by eval-ing (javadoc clojure.lang.ISeq).

Depreciatory answered 22/12, 2015 at 6:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.