This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (3)
- # arachne (6)
- # boot (17)
- # cider (51)
- # cljs-edn (19)
- # cljsjs (1)
- # clojure (22)
- # clojure-russia (154)
- # clojurebridge (5)
- # clojurescript (20)
- # cursive (1)
- # emacs (2)
- # ldnclj (1)
- # liberator (1)
- # mount (1)
- # om (44)
- # onyx (6)
- # ring-swagger (4)
- # rum (30)
- # slack-help (8)
- # untangled (40)
@cch1 cider asks nrepl for the metadata of the var you're looking at. In the repl you can try
(:file (meta #'your-ns/your-var))
@cch1 in elisp you can then try
(cider--find-buffer-for-file "...filename from metadata...")
How does CIDER calculate which tests need to be run by
C-c C-t p? If I navigate to a buffer with tests and press
C-c C-t n there, then my tests are run, but
C-c C-t p does not run any.
Looks like something is broken (I'm using master, btw). In
cider.nrepl.middleware.util.namespace in function
project-namespaces returns a list of namespaces, which is passed into
(map ensure-namespace), but
(symbol ns) on the argument, which fails with
java.lang.ClassCastException clojure.lang.Namespace cannot be cast to java.lang.String.
I'd like to run
(map symbol (project-namespaces)) in the standalone REPL in the
c.n.m.u.namespace ns, just to compare it with the Lein scenario.
But some of the files do some weird dependency magic to support ClojureScript, and then loading it doesn't work
@cch1: my mistake. I thought you were referring to library files. Yes, I think cider should be able to find your project files. Have you tried evaluating them with C-c C-k?
cider-connect to remote
lein repl :headless server (both the cider emacs client and the remote server are running from a git clone of the same repo)
2. In the resulting repl,
(:file (meta #'exchange/get-rates)) => "apij/lib/exchange.clj”
3. From the scratch buffer in emacs, I eval
(cider--find-buffer-for-file "apij/lib/exchange.clj”) and the result is
4. I can now change to the exchange.clj buffer -which had not been opened before evalin the elisp command.
AFAICT, this looks to be the best place to ask about cider-nrepl. Specifically as embedded in an app. I have
WARNING: CIDER's version (0.12.0) does not match cider-nrepl's version (nil). Things will break! WARNING: The following nREPL ops are not supported: artifact-list artifact-versions clean-ns extract-definition find-symbol find-used-locals hotload-dependency namespace-aliases rename-file-or-dir resolve-missing stubs-for-interface find-used-publics version warm-ast-cache Please, install (or update) refactor-nrepl and restart the REPL. You can mute this warning by changing cljr-suppress-middleware-warnings.
OMG - I put it in the WRONG server call! It's amazing I couldn't see it until publicly showing my blindness!😱
cljr-project-clean keeps asking for a place to save a file, i think corresponding to a test file for a particular ns. any notion offhand what might be triggering this or how to stop it?
(and then proceeds to hang, so i'll give it a few minutes to complete and then give up on it...)
When I try to “lookup a symbol in Grimoire” via
C-c C-d C-r I get a "400 Bad Request: The plain HTTP request was sent to HTTPS”. Does anyone else see this?
@bvulpes: what do you mean by
> yeah, seems to be having trouble with the
for one, project-clean wants to make a test file for every thing along the
project clean opens or visits (if already opened) all files in the project. it does not create new ones