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

Problem while using Calva / Reveal together

I was using Vscode + Calva for developing Clojure. And I watch this and try to use Reveal with Calva. I see this and add cider.nrepl/cider-middleware to middleware. (I'm using this deps.edn and just add cider/cider-nrepl {:mvn/version "0.26.0"} and…
yujonglee
  • 55
  • 1
  • 6
1
vote
2 answers

Java version issues with nREPL server and clojure, Tricky version/compatibility issue

This is the error specifically: error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Could not transfer artifact refactor-nrepl:refactor-nrepl:jar:2.5.0 from/to central (https://repo1.maven.org/maven2/):…
Sirgeorge
  • 127
  • 7
1
vote
0 answers

why isn't nREPL server logging info level messages?

From Clojure project directory, M-x cider-jack-in starts the nREPL server and the Cider REPL. in the latter: (clojure.tools.logging/info "hello") does not output anything in the server buffer, but (clojure.tools.logging/warn "hello") does. am i…
nymo
  • 532
  • 1
  • 5
  • 14
1
vote
0 answers

Howto connect to NREPL in docker container

Has anyone been able to bind to a [java.net InetSocketAddress ServerSocket] from inside docker? I have a simple NRepl process running in a docker container. But I can't connect to that NRepl process. My docker-compose.yml looks something like…
Nutritioustim
  • 2,686
  • 4
  • 32
  • 57
1
vote
2 answers

Why BENCODE has been used for transporting clojure code to nrepl in CIDER?

Why can't we simply convert Clojure code to string and send it over TCP and evaluate on the other side(nrepl)? For example : This is a hashmap {"foo" "bar", 1 "spam"} whose BENCODE encoding is d3:foo3:bari1e4:spame. If we convert it to string ->…
1
vote
1 answer

How do you go back to the last evaluated expression in CIDER's nREPL in Emacs?

One thing I really love about using the Lein nREPL is that I can just go to the last evaluated Clojure expression by pressing the up-arrow key. Is there anyway to do something similar in the CIDER nREPL?
TomLisankie
  • 3,785
  • 7
  • 28
  • 32
1
vote
1 answer

Clojure maven plugin start nrepl

I'm trying to configure a Maven project that uses clojure in which I want to start an nrepl. I did a minimal maven project with this configuration:
rascio
  • 8,968
  • 19
  • 68
  • 108
1
vote
3 answers

Leiningen nREPL connect to remote repl with drawbridge

I'm trying to connect to a running clojure app package as a uberjar. I added [com.cemerick/drawbridge "0.0.7"] to my project.clj. But when I trying to connect with lein repl :connect http://ip:port/repl it is like it is not even connecting. I get a…
regius
  • 55
  • 6
1
vote
1 answer

Cider version does not match cider-nrepl version in new luminus project

I'm experimenting with luminus, and all new luminus projects are giving me the cider version/ cider-nrepl version mismatch error when I connect to the repl started by lein run using emacs M-x cider-connect: WARNING: CIDER's version (0.14.0) does not…
Iain
  • 300
  • 2
  • 13
1
vote
0 answers

Vim-Fireplace in a Docker container

Right now I run my vim environment in a docker container, I used to just use a script to initialize my vim environment but the subtle differences in how each distro and OS compiled vim had to many annoying little differences, and use it for Clojure…
jrahme
  • 253
  • 1
  • 12
1
vote
1 answer

Light Table read input

I'm having some trouble to get started with Light Table. Here's my code (Clojure) (ns prova1-ed.core (:gen-class)) (use 'clojure.java.io) (defn -main [& args] (println "Type the name of the file to read: ") (let [fileName (read-line)] …
Tiago Dall'Oca
  • 329
  • 3
  • 15
1
vote
1 answer

How to start a REPL at a point of exception in Cider

I am trying to use Clojure with emacs and cider for a project of mine, and often exceptions occur while executing my code. When an exception occurs, cider provides me a stack trace, but often that is not sufficient to quickly identify what went…
Ajoy
  • 525
  • 1
  • 9
  • 20
1
vote
1 answer

Creating an OpenGL window from the Clojure REPL with lwjgl

I'm trying to use lwjgl with clojure for game developement. My first step is trying to display something on an OpenGL screenfrom the REPL. After launching the repl with lein repl this is what I have done so far: (import org.lwjgl.opengl GL11 Display…
Setzer22
  • 1,589
  • 2
  • 13
  • 29
1
vote
3 answers

map print vs map println in Clojure

I'm wondering why the following have different output orders in an nREPL (map println [1 2 3]) Result: 1 2 3 (nil nil nil) Versus (map print [1 2 3]) Result: (nil nil nil)123 Why does applying print show the return value and then display 123?
Weebs
  • 435
  • 6
  • 17
1
vote
1 answer

Why is my cursor jumping in emacs nrepl

I am starting with emacs/nrepl for coding Clojure. With some commands, resulting in printing a long JSON result, the cursor jumps to somewhere in the middle of the output. M-> brings the cursor at the end, where it should be. Hitting ENTER causes it…
Assen Kolov
  • 4,143
  • 2
  • 22
  • 32