This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-31
Channels
- # aws (1)
- # beginners (70)
- # boot (12)
- # calva (45)
- # cider (45)
- # clara (1)
- # cljdoc (10)
- # cljs-dev (133)
- # clojure (315)
- # clojure-dev (2)
- # clojure-europe (2)
- # clojure-italy (16)
- # clojure-nl (1)
- # clojure-spec (23)
- # clojure-uk (19)
- # clojurescript (48)
- # cursive (11)
- # data-science (5)
- # datomic (18)
- # figwheel-main (3)
- # fulcro (18)
- # graphql (14)
- # jackdaw (1)
- # juxt (1)
- # kaocha (1)
- # off-topic (10)
- # other-languages (3)
- # pathom (2)
- # pedestal (7)
- # re-frame (23)
- # reagent (1)
- # reitit (4)
- # ring-swagger (12)
- # rum (4)
- # shadow-cljs (26)
- # specter (6)
- # speculative (12)
- # tools-deps (44)
- # vim (8)
- # yada (2)
Ok I will subscribe to the issue. thank you @dominicm @dpsutton
hey guys. Is there any chance C-c M-n
(`cider-repl-set-ns`) in a REPL buffer can limit the namespaces to the project namespaces?
Hmm, I (almost) always set the repl ns to the current buffer's ns... I'm not sure what you're trying to achieve.
Say I'm in the REPL, and I want to switch to another buffer, which is not the one I am visiting in the other buffer currently showing beside the REPL.
I achieved what I want with:
(defun mu-cider-repl-set-ns (ns)
"Switch the namespace of the REPL buffer to NS.
If called from a cljc buffer act on both the Clojure and ClojureScript REPL
if there are more than one REPL present. If invoked in a REPL buffer the
command will prompt for the name of the namespace to switch to."
(interactive (list (if (or (derived-mode-p 'cider-repl-mode)
(null (cider-ns-form)))
(completing-read "Switch to namespace: "
(projectile-current-project-files))
(cider-current-ns))))
(when (or (not ns) (equal ns ""))
(user-error "No namespace selected"))
(cider-map-repls :auto
(lambda (connection)
(cider-nrepl-request:eval (format "(in-ns '%s)" ns)
(cider-repl-switch-ns-handler connection)))))
Which differs from the original because it relies on (projectile-current-project-files)
. Problem solved. 🙂Sort of, the REPL looks like this now:
src/cinvat/adapters/arca/core.clj>
Still needs some work.Ah, I didn't even know that it's possible to use cider-repl-set-ns
from the repl buffer
this would help, for instance, when looking for core
and not ending up with many candidates from other libraries.
Hi, I'm trying to get CIDER to work with nREPL.
I've added nREPL as dependency to my profiles.clj.
~/.lein cat profiles.clj
{:repl {:dependencies [[nrepl/nrepl "0.5.0"]]}}
However cider-jack-in
still launches the old version.
@dpsutton Thanks! I'm on NixOS so leiningen was installed through nix.
I guess I need to create an override. I will ask a few people in the NixOS IRC channel.
thanks for your help!
@patrickwinter 2.8.3 is available on nixos already
I'm a nixos user, too
but you need to install it from unstable channel(s)
eg: nix-channel add https://nixos.org/channels/nixos-unstable-small nus
nix-env -iA nus.leiningen
hi all, anyone have any ideas what this might mean? Unhandled REPL handler exception processing message {:op clone, :id 1}
how did you trigger this? you are starting a new repl session and dying at the start. got information about the project type, cider version, etc?
[WARNING] No nREPL middleware descriptor in metadata of #'refactor-nrepl.middleware/wrap-refactor, see nrepl.middleware/set-descriptor!
ERROR: Unhandled REPL handler exception processing message {:id 9d733e0f-2b56-43d3-ae83-82c0626e9879, :op describe}