bbatsov on master
Correct signal descriptions in … (compare)
Error loading refactor-nrepl.middleware: java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/util/misc__init.class or cider/nrepl/middleware/util/misc.clj on classpath., compiling:(refactor_nrepl/middleware.clj:1:1)
Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: refactor-nrepl.middleware/wrap-refactor in this context, compiling:(/private/var/folders/fg/1tzg0xt88v5bp20059blypr00000gq/T/form-init7039836408815040552.clj:1:9942)
C-h m
worked quite well here. Rock on cider :thumbsup:
let
as global? Like, if there's (let [b1 c1] ,,,)
, I want to move the point to let
and make it evaluate (def b1 c1)
, making them available in the current namespace - this will make interactive debugging easier. It's like https://github.com/vvvvalvalval/scope-capture, but more straightforward
@Andre0991 that's a good idea... and thanks for pointing out scope-capture
which I am going to try out for this purpose. IMHO the easiest thing to do is probably to use scope-capture
(if it works) and then make some emacs automation around that. What spyscope
does is provide tagged literals to make it very easy to mark a form (whereas scope-capture
gives you a macro and you wrap the form). If you add a tagged literal that wraps the next form in that macro, and then make an emacs hotkey that does something like
(defun cider-scope-capture-at-point ()
(interactive)
(save-excursion
(insert "#scope/capture\n")
(next-line)
(next-line)
(cider-eval-defun-at-point)))
Then you can move your point to the start of a form and hit a hotkey bound to that fn.
jump-to-definition
for java functions. I looked over some closed issues regarding this issue and it should just work ootb, but even for internal java stuff like java.util.UUID/randomUUID
it doesn't work. How do I go about figuring it out / debugging and solving it?
develop
branch). After jacking in, evaluation and completion works fine. But I am missing refactoring commands. I have activated clj-refactor in my .spacemacs
. It seams there is a bug in Spacemacs develop. Any suggestions where to look for the problem?
Hi! I'm having a very strange issue with cider. I'm developing a docker application, and during development, I spawn a repl using leingen inside the container, map the port to the host, and connect from my emacs using cider-connect
. When launching my containers normally, this works without issue. However, when I use an alternative deployment method called docker-swarm, I get a "Sync nREPL request timed out" error right after attempting a cider-connect
.
On a terminal in the same machine emacs is running on, I can run LEIN_REPL_PORT=1234 lein repl :connect
, and this connects to the repl inside the container just fine (assuming it's running on port 1234). This makes me thing cider may be at fault here. But I can't think of anything that may be different between a plain lein :connect
and what cider does internally that would cause the second to time out.
Any ideas?
Hello! I'm using spacemacs and recently, I have being seen the following error:
"Error building classpath. Could not transfer artifact refactor-nrepl:refactor-nrepl:jar:2.5.0-20191224.082108-5 from/to clojars (https://repo.clojars.org/): Range Not Satisfiable (416)"
The command being runned to start the repl is:
/usr/local/bin/clojure -A:dev -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} refactor-nrepl {:mvn/version "2.5.0-SNAPSHOT"} cider/cider-nrepl {:mvn/version "0.23.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"]'
Setting cider-inject-dependencies to nil solve it. But it removes the refactor capabilities.
When changing the version with universal argument, it works.
Does any one have any idea how to solve this?
Is there a way to specify the version of this packages for cider?
Thanks!