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
298
votes
1 answer

How can I make nrepl-ritz-jack-in work remotely over TRAMP / Emacs

What I want: I have a clojure program on a remote site, let's call it mccarthy. What I want to do is connect to a nrepl-ritz from my laptop, preferably using nrepl-ritz-jack-in. The jack in works fine for a local program, but doesn't seem to…
MattoxBeckman
  • 3,682
  • 2
  • 20
  • 16
28
votes
1 answer

Counterclockwise HTTP REPL

In Eclipse+Counterclockwise, when I want to connect to REPL, the dialog tells me I can use nREPL over HTTP: How to set this up? Is this somehow connected to drawbridge? I haven't been able to make these work together, although lein repl :connect…
Martin Janiczek
  • 2,996
  • 3
  • 24
  • 32
16
votes
6 answers

Clojure - how to connect to running REPL process remotely

How can I connect to a REPL session running on a remote server that I can access, for example via SSH?
alex314159
  • 3,159
  • 2
  • 20
  • 28
13
votes
1 answer

Why is cider finding the wrong version of cider-nrepl and how can I fix it?

I have installed cider via el-get, just today. When I start up cider in emacs, the following banner is printed: ; CIDER 0.8.0-snapshot (Java 1.7.0_65, Clojure 1.6.0, nREPL 0.2.6) WARNING: The following required nREPL ops are not supported: eldoc…
user268344
  • 839
  • 1
  • 8
  • 10
12
votes
3 answers

Connecting to a headless nREPL running in a Docker container from another container

I'm trying to connect to an nREPL from a Docker container that is running another, linked Docker container on port 7888. Despite exposing the port with -p 7888, linking the container with -link :repl and using the…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
12
votes
1 answer

Best Practice Way to Embed NREPL in Clojure Server

I've just started development of a service in Clojure. I'm a little lost in how to approach server shutdown. I'm using Clojure 1.5.1. For logging, I'm using Timbre 1.5.3. I want to embed NREPL into my server for hot code deployment. This is my…
jennykwan
  • 2,631
  • 1
  • 22
  • 33
11
votes
2 answers

Starting an nREPL with Clojure CLI Tools

How do I start an nREPL from the clj command? I can't run my project using Lein or Boot because I have an unbalanced paren somewhere, and the reader complains `java.lang.RuntimeException: read-cond starting on line 13 requires an even number of…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
10
votes
2 answers

What is the specific difference between Clojure 1.8's socket repl and nREPL?

I've been reading this, but there seems to be no tutorial/doc about the difference between these two or whatnot. Is socket repl going to replace nrepl?
Shiva Wu
  • 1,074
  • 1
  • 8
  • 20
10
votes
2 answers

Can't get nrepl working in Emacs

I'm running on an Ubuntu machine. I had emacs23 installed, but it looks like nREPL is designed to work with emacs24. So, I uninstalled emacs23, installed emacs24. I removed my existing .emacs file and .emacs.d directory. Then I ran M-x…
Michael Tiller
  • 9,291
  • 3
  • 26
  • 41
7
votes
4 answers

How do I choose/switch Leiningen profiles with Emacs nREPL?

I have a :dev profile set up in my leiningen project file. This defines an :init and :init-ns setting for my repl session. If I launch nrepl in emacs (M-x nrepl-jack-in) with the cursor over the :dev keyword in my project.clj, the repl launches…
7
votes
1 answer

Emacs, Clojure, lein and nrepl: *nrepl* buffer shows up blank

I created a new project with lein. I open core.clj in emacs. I make sure to run M-x clojure-mode, and M-x nrepl-enable-on-existing-clojure-buffers. Then I run M-x nrepl-jack-in and in the mini-buffer I get Starting nREPL server... followed by a…
DJG
  • 6,413
  • 4
  • 30
  • 51
6
votes
1 answer

does clojure repl support authenticate?

I checked both repl from lein and clojure 1.8 socket repl, looks like none of them support username/password. if I open the repl to outside connection, how to make it safe? Or need to use ssh to login into the host and then from that host to connect…
Daniel Wu
  • 5,853
  • 12
  • 42
  • 93
6
votes
4 answers

Missing *out* in Clojure with Lein and Ring

I am running Lein 2 and cider 0.7.0. I made a sample ring app that uses ring/run-jetty to start. (ns nimbus-admin.handler (:require [compojure.core :refer :all] [compojure.handler :as handler] [clojure.tools.nrepl.server…
Steve
  • 1,596
  • 1
  • 10
  • 21
6
votes
1 answer

Is there anyway to reduce nrepl (ritz-repl) startup time?

I wasn't using ritz-nrepl before, and nrepl took around 10 sec which is long but still bearable since I don't restart it that often. When I tried out ritz-repl, it took nearly 30s to boot, and consumes around 1.3G memory. This makes me reluctant to…
LoveProgramming
  • 2,121
  • 3
  • 18
  • 25
6
votes
2 answers

Is there a way to do a history search in nrepl?

You know how when you hit the up arrow in bash it will fill in the last command you typed in? Is there any way to do this in nrepl? So far I've been doing a reverse search (C-r), typing the first few characters of the line in question, killing the…
Cam Saul
  • 1,706
  • 1
  • 16
  • 24
1
2 3 4 5 6