This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-27
Channels
- # bangalore-clj (2)
- # beginners (37)
- # boot (16)
- # cider (17)
- # clara (4)
- # cljs-dev (351)
- # cljsrn (16)
- # clojure (219)
- # clojure-belgium (4)
- # clojure-dev (3)
- # clojure-france (2)
- # clojure-italy (24)
- # clojure-russia (23)
- # clojure-spec (55)
- # clojure-switzerland (3)
- # clojure-uk (89)
- # clojurescript (121)
- # cursive (2)
- # datomic (29)
- # devops (2)
- # graphql (8)
- # hoplon (15)
- # immutant (5)
- # lein-figwheel (4)
- # liberator (3)
- # luminus (18)
- # off-topic (9)
- # om (6)
- # onyx (31)
- # pedestal (48)
- # precept (9)
- # re-frame (19)
- # reagent (63)
- # ring-swagger (69)
- # robots (1)
- # slack-help (14)
- # spacemacs (12)
- # sql (2)
- # test-check (4)
- # unrepl (28)
- # untangled (5)
- # yada (3)
Probably a very stupid question but what’s the basic difference between cider-jack-in
and cider-jack-in-clojurescript
?
@luchini the latter creates two buffers , one for clj and one for cljs
Why CIDER does not complete .getCanonicalPath
?
Which is a method from object java.io.File
that created by
.
@stardiviner because it's a java method, not clojure function. You'd have to introspect the object on which that method is invoked.
I see, is it possible to make cider-doc
related functions work on .getCanonicalPath
?
I'm not sure, but I'd say no - everything works on static methods (like java.io.File/createTempFile
), but in case of instance methods it's probably the same problem as with autocomplete
That's said, it seems to work in many cases, especially classes from java.lang
package, e.g. .toUpperCase
This is the best source I could find: https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/util/java.clj#L263
resolve-symbol
and resolve-member
(in case of instance method) in cider-nrepl are used for getting the list of candidates.
and looking at the source it seems that it scans java classes imported in current namespace - you can try
(doseq [[name fq-name] (ns-imports *ns*)] (println fq-name))
If you import File:
(import java.io.File)
Then you should be able to get autocomplete and documentation work on .getCanonicalPath
.
It's not a smooth experience, however.@jumar I see, thanks for your explain, very detailed.
Already asked in #spacemacs but trying here too: Is there any good way to search for a string in all jars/libraries (or at least in given jar/library) on the classpath ?
The best thing I've found so far is to invoke cider-classpath
, look for interesting jars and then do zipgrep "search-string" library.jar
in eshell