Questions tagged [nrepl]

nREPL is a networked Clojure REPL: it provides a server and client, along with some common APIs of use to IDEs and other tools that may need to evaluate Clojure code in remote environments. Several Clojure development tools connect to nREPL servers, such as Leiningen, Counterclockwise, and nrepl.el.

nREPL is a networked Clojure REPL: it provides a server and client, along with some common APIs of use to IDEs and other tools that may need to evaluate Clojure code in remote environments. Several Clojure development tools connect to nREPL servers, such as Leiningen, Counterclockwise, and nrepl.el.

85 questions
3
votes
1 answer

Evaluate Clojure namespace in *nrepl* buffer in emacs

After creating a project with lein new, I open my core.clj in emacs and launch nrepl. The *nrepl* buffer shows up and looks something like this: ; nREPL 0.1.6-preview user> Okay, but now I want to change the namespace, so I decide to evaluate or…
DJG
  • 6,413
  • 4
  • 30
  • 51
3
votes
1 answer

nrepl inserting every 1024 characters

I'm seeing a newline forcibly inserted in nrepl output roughly every 1024 characters. This commit looks like it's setting clojure.tools.nrepl.middleware.session/*out-limit* to 1024, but binding it to a new value did not fix it. This is reproducible…
event_jr
  • 17,467
  • 4
  • 47
  • 62
2
votes
1 answer

Although CIDER works without projects and the Clojure project is successfully built, why I can't bring both things together?

I have a Clojure/ClojureScript project that I am able to build locally. The project is built with the following command: Pedros-MacBook-Air:balance pedro$ shadow-cljs watch app shadow-cljs - config:…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
2
votes
1 answer

cider-connect-clj cannot connect to nrepl.server/start-server

A) I'm having a problem where Cider can't cider-connect-clj (or cider-connect-cljs) to an nREPL server I launch in my application code. Cursive also doesn't work. It must be a simple configuration or middleware that needs to be included. But I've…
Nutritioustim
  • 2,686
  • 4
  • 32
  • 57
2
votes
2 answers

Clojurescript first steps doubts and problems

I just started with clojurescript and I have many doubts, what I want to do is use clojurescript only to solve basic problems, for now nothing to do with web. If I eliminate the web development part, would there be any difference between coding in…
trim-paper
  • 23
  • 2
2
votes
1 answer

Cider nREPL using virtualbox error: connection broken by remote peer

Starting repl using: lein repl :headless :port 4242 When I try to connect VIA cider connect I get the following error: Connection closed unexpectedly (connection broken by remote peer) When I try to connect VIA: lein repl :connect 4242 I get the…
kkruit
  • 31
  • 4
2
votes
1 answer

copy result from leiningen repl into clipboard

Occasionally I would like to poke a result in the repl in other software. Is there a convenient way to copy the outcome of a function run in a repl to system clipboard? I know I can spit the result out to a file. I'm using mac os x.
sumek
  • 26,495
  • 13
  • 56
  • 75
2
votes
1 answer

cider-nrepl error when running project

I try running lein project with cider/cider-nrepl. I write [cider/cider-nrepl "0.10.1"] in plugins section of project.clj After running cider-jack-in i have error - Caused by: java.lang.RuntimeException: Unable to resolve var: …
Amigo
  • 109
  • 7
2
votes
3 answers

How can I run lein repl outside of a project?

I spent some time last night messing with my leinigen profiles.clj to get rid of all the errors that were being printed when starting cider in my project. Today I went to start a repl from the terminal (I like to keep one open while I work) but it…
Jeff Engebretsen
  • 666
  • 2
  • 8
  • 21
2
votes
0 answers

keep *nrepl* buffer in cider when jvm terminates

I am running a remote nrepl server (mvn clojure:nrepl) and connecting via emacs M-x cider-connect. When the JVM exists for any reason or I call (System/exit 0) in my repl the *nrepl* buffer is immediately closed. How do I prevent that behavior? How…
DrLivingston
  • 788
  • 6
  • 15
2
votes
1 answer

How to embed a REPL in my Clojure application?

I'm trying to embed cider.nrepl in my clojure application so that I can connect to my running instance, inspect, fix, etc. I'm including cider-nrepl in my leiningen profiles file: :plugins [[cider/cider-nrepl "0.7.0"]] And then in my…
Cesar
  • 5,488
  • 2
  • 29
  • 36
2
votes
1 answer

Using Lighttable with remote nrepl

I want to start nREPL from code and let Lighttable connect to it. Here is my attempt: (ns test (:require [clojure.tools.nrepl.server :refer [start-server default-handler]] [lighttable.nrepl.handler :refer [lighttable-ops]]) …
amadeoh
  • 95
  • 6
2
votes
1 answer

ritz-nrepl with lein not working on osx

I would like to use ritz-nrepl for debugging purposes from within Emacs. Because it already fails with lein ritz-nrepl I did not go further with the Emacs integration yet. Exception in thread "main" com.sun.jdi.connect.VMStartException: VM…
instilled
  • 123
  • 5
2
votes
2 answers

How can I make emacs keyboard macros work properly when pasting the results of clojure evaluation?

There's a phenomenally useful feature of emacs lisp where you can evaluate the result of an expression and paste the result directly into a buffer. Say I want to check addition works. Then I type: (* 3 2) and I define the keyboard macro: (setq…
John Lawrence Aspden
  • 17,124
  • 11
  • 67
  • 110
1
vote
1 answer

Reloading re-frame component from repl

I'm currently trying out ClojureScript, and I'm a bit confused. I was under the impression that I would be able to reload individual components by evaluating them in the REPL. I've set up nREPL and nvim conjure. (I've also tried vscode calva) I can…
DoucheBro
  • 11
  • 1