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
1
vote
1 answer

C-c C-k is undefined in Emacs24

I have installed Emacs24,and installed clojure-mode nrepl. I opened a emacs window, and M-x nrepl-jack-in, it shows: ; nrepl.el 0.2.0 (Cljoure 1.6.0, nREPL 0.2.3) I open a clj buffer in another window, I want to compile the buffer file by using…
1
vote
1 answer

Clojure - connection issue re-running cider-jack-in

I recently started using CIDER under Emacs 24. My workflow involves going to a remote server via Tramp and then executing cider-jack-in to run the nREPL server connected to Clojure on that server. It all works fine if I run it in a fresh instance of…
Wojciech Gac
  • 1,538
  • 1
  • 16
  • 30
1
vote
1 answer

How to compile namespace in remote REPL

I have a problem compiling .clj files which reside in a project where I run the nREPL server process: I've created a new project using lein new xxx. In the project folder I started up an nREPL by lein repl. In another terminal window I started…
Janos
  • 1,987
  • 3
  • 17
  • 24
1
vote
1 answer

Clojure Light Table client-server approach riddle

How can I set it up, so that I can use Light Table on the Mac, connected to a Ubuntu-hosted nREPL, and create a new program/project.clj? Can anybody help me to understand what my approach should be, and where I'm going wrong? I have a Ubuntu…
Dvious
  • 23
  • 4
1
vote
1 answer

Clojure: are there docs for java functions e.g. Math/exp?

I would expect (doc Math/exp) to give me something but it doesn't. Sure it's not a Clojure function, but still there should be some way to reach the documentation. Closest thing that I can get is (javadoc Math). I would prefer the actual doc from…
abo-abo
  • 20,038
  • 3
  • 50
  • 71
1
vote
3 answers

Cider: Evaluate the form preceding point in the REPL

In nREPL, the user could simply C-x C-e to evaluate the preceding form in the running REPL. However, in Cider, it seems there is only a way to evaluate the form in the echo area or a popup buffer. Is this really the case? Please someone correct…
markw
  • 321
  • 1
  • 3
  • 14
1
vote
1 answer

Evaluating Compiled ClojureScript Functions at the REPL

Problem Description I would like to call ClojureScript functions (that I've already written in CLJS, compiled and loaded into the browser) at the REPL and have them execute in the context of my browser window. Setup M-x set-variable
benkay
  • 589
  • 5
  • 14
1
vote
1 answer

How do I restart nrepl

I'm looking for a command equivalent to slimes ,restart. From the tools.nrepl source there appears to be a restart functionality present1. Any ideas on how do I make nrepl.el call that code?
PuercoPop
  • 6,707
  • 4
  • 30
  • 40
1
vote
1 answer

How to correctly import user defined classes in Clojure

I am using Leiningen and Clojure and for the life of me I can't understand why Clojure makes it so difficult just to import namespaces correctly. This is the following error This is what I have in my core.clj file: ; namespace macro (ns…
dtg
  • 1,803
  • 4
  • 30
  • 44
1
vote
1 answer

Clojure and Lein namespace issues using nREPL

I am having lots of "fun" trying to understand why the below won't work. After starting an nREPL session in the src directory of my lein project, I did the following: user> (require 'animals.core) nil user> (animals.core/-main) "Welcome to…
dtg
  • 1,803
  • 4
  • 30
  • 44
1
vote
0 answers

clojure/ritz/nrepl: How do I get the :thread-id in order to send a "frame-source" op to ritz over nrepl?

I am starting the ritz server in a thread and am communicating with it programmatically using the nrepl client: (require '[clojure.tools.nrepl :as repl]) (def connection (repl/connect :port 15351)) ;; port of ritz-nrepl (-> (repl/client connection…
prismofeverything
  • 8,799
  • 8
  • 38
  • 53
1
vote
1 answer

Clojure Emacs Connecting to Remote REPL

When using plain repl with tramp I can navigate to a remote directory and exetute inferior-lisp and it launches a inferior-lisp process on the remote. With nrepl I can start the repl on the remote machine using lein repl than connect to it using…
1
vote
2 answers

How to prevent JFrame/EXIT_ON_CLOSE from killing the nrepl server?

EDIT Using DISPOSE_ON_CLOSE is not what I'm after, because them I've got the "inverse" problem: the REPL stays alive when I close the JFrame (which is good) but then it also stays alive when launced from outside the REPL (which is bad). I'm…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
0
votes
1 answer

How to make the browser connection to the shadow-cljs nREPL be longer?

I have been using Clojure, ClojureScript, lein, shadow-cljs, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Usually, I build the project executing command cider-jack-in-cljs in Emacs, I choose shadow-cljs, then shadow…
0
votes
1 answer

How to see Timbre logs via nREPL?

I'm using Timbre for logging in Clojure. When I connect to a production instance via nREPL, I can't see the process logs unless I SSH into the machine and run journalctl. How can I multiplex Timbre logs so that they are visible in the nREPL? I…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287