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
5
votes
3 answers

Is there some way to automate connections to nREPL from Vim Fireplace?

I'm running lein repl in a project, and it successfully starts up and creates the file target/repl-port. Using VIM version 7.4.86 I can use a command like: :Connect nrepl://localhost:57644 Vim then successfully connects to the repl, and all is…
PaulaG
  • 336
  • 1
  • 8
5
votes
1 answer

What is the proper way to shutdown nrepl?

How do you gracefully shutdown nrepl in emacs? swank-clojure was shutdown with a comma and then sayoonara, which does not work with nrepl.
Frank Henard
  • 3,638
  • 3
  • 28
  • 41
4
votes
1 answer

Trouble setting up Figwheel REPL within CIDER

I just started playing around with making a simple cljs app using the following template: lein new figwheel someproject -- --reagent I was hoping to use the REPL in cider for cljs development the same way I typically would for a normal clj project,…
Solaxun
  • 2,732
  • 1
  • 22
  • 41
4
votes
1 answer

How do I import stuff from sibling files in clojure/cider/nrepl?

I have a small project with ~/src/proj/{foo,bar}.clj that I'm hacking on with emacs, cider and nREPL. In bar.clj I do (def base-13-joke 42) and I want the code in foo.clj to refer to bar.clj's base-13-joke. How do I do this? My current classpath…
Jonas Kölker
  • 7,680
  • 3
  • 44
  • 51
4
votes
3 answers

Problems connecting to a clojure nREPL with ring/compojure

Running Leiningen 2.3.4 on Java 1.7.0_21 Java HotSpot(TM) 64-Bit Server VM I am having trouble connecting to an nREPL server. I setup a new project using lein new luminus, and then added a dependency to drawbridge ([com.cemerick/drawbridge…
jd.
  • 4,057
  • 7
  • 37
  • 45
4
votes
3 answers

Emacs + clojure. Autocompletion data from all source files in project

I've been developing C# applications for a long time. Commercial IDEs and tools provide extremely good code completion features. I'm now learning clojure and I really miss familiar workflow. So, about emacs. I've installed nrepl, ac-nrepl and…
Pavel Murygin
  • 2,242
  • 2
  • 18
  • 26
4
votes
2 answers

transferring values from remote nrepl

I have a remote nrepl which I started via Screen, that I connect to using lein repl :connect. Can I have a value transfer over to a local repl ? The reason I ask is that: Using Screen means I get headless exceptions when I want to do graphics…
Hendekagon
  • 4,565
  • 2
  • 28
  • 43
4
votes
2 answers

How can I clear and reload my nrepl session in emacs?

I am working with emacs and nrepl. How can I do the following: Exit nrepl (currently I just kill the buffer) Reload everything I was working with in nrepl. The problem I'm trying to solve by doing this is that when I have loaded an ns form and it…
murtaza52
  • 46,887
  • 28
  • 84
  • 120
4
votes
1 answer

Clojure editing code while running split into different files

I've recently been trying to test OpenGL in Clojure with the lwjgl library. I started off with this code: (ns test.core (:import [org.lwjgl.opengl Display DisplayMode GL11])) (defn init-window [width height title] (Display/setDisplayMode…
matio2matio
  • 303
  • 4
  • 11
4
votes
2 answers

How do I live code in Clojure using Emacs / nrepl / Quil?

I have a fairly standard Quil file that I am editing with Emacs and nrepl. (defn setup [] (qc/smooth) (qc/frame-rate 24) (qc/background 200)) (defn draw [] (draw-world)) (qc/defsketch run :title "Circles!" :setup setup :draw draw …
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
3
votes
1 answer

Use an alternate eval with nrepl

I can pass clojure.main/repl a function that will be used to eval input (thanks to the :eval keyword). But how can I do this with nrepl? I read a bit about handlers but it quickly becomes hard and abstract to follow. Also, since I mainly launch it…
Gra
  • 1,542
  • 14
  • 28
3
votes
2 answers

print output of execution in cider repl

I am wondering if there is a way to have the output of the current execution in emacs cider when using cider-connect. For instance : I run lein repl on a project directory then connect to it in emacs using cider-connect. Now let's say that I have…
nha
  • 17,623
  • 13
  • 87
  • 133
3
votes
0 answers

How to upgrade clojure nrepl 0.2.6 to 0.2.7

I have just installed Cider from melpa which has version 0.9.0 SNAPSHOT and nREpL 0.2.6. This more or less works once I used the profile suggested in this answer. However, this does not appear to work as the nrepl version is 0.2.6 still. Here is my…
David Hodge
  • 269
  • 1
  • 7
3
votes
1 answer

network connected REPL with leiningen/ring/compojure/luminus

I am running a server with the luminus web framework which uses ring/compojure and I want to be able to connect to my code with a clojure repl. I understand that there is an nrepl server which stands for network repl and that you can connect to it…
CodeKingPlusPlus
  • 15,383
  • 51
  • 135
  • 216
3
votes
0 answers

Navigable clojure stacktraces with emacs, nREPL, and clojure.test

I'm using emacs with nREPL via cider, and I've got a suite of clojure.test-based tests that I run to see when I've broken things (which is a lot as I'm fairly new to clojure.) I've tried two methods to run these tests - first by invoked the external…
abingham
  • 1,294
  • 1
  • 10
  • 17