Fork me on GitHub
#vim
<
2019-06-05
>
danielohrlund10:06:24

Hey! I have an issue with vim-fireplace. I can successfully :Connect to my nrepl server, but whenever I try to execute another command like :Eval fireplace throws an exception saying that the connection was refused (`E605: Exception not caught: Fireplace Python exception: [Errno 111] Connection refused`). Any ideas? I'm running the latest version of neovim (0.3.7) and all health checks pass, and the latest version of vim-fireplace.

dave12:06:08

by default, fireplace will look for an .nrepl-port file and attempt to connect to the port specified in that file. (when you start an nrepl, it writes that file out into the current directory) so the first thing i would try is specifying the port of your nrepl explicitly, e.g. :Connect 12345

dave12:06:20

to try and rule out fireplace using the wrong port

danielohrlund15:06:55

ah, sorry I should have been more clear but I specify the port when I connect:

:Connect
Protocol> nrepl
Host> localhost
Port> 4002
Connected to  

dave15:06:11

ok, i've got nothing then 😄

djtango15:06:48

have you ruled out that other things can connect to the repl?

👍 4
dominicm16:06:21

It sounds like you have the wrong port :)

dominicm16:06:41

4002 would be a little unusual for an nrepl port

danielohrlund21:06:09

ah I run multiple nrepl servers for different projects and map them to differenr ports so 4002 is correct 🙂

scotts20:06:58

@snoe the clojure-lsp work looks great. This is exactly what i was looking for. To have static analysis like Cursive in conjunction with using a simple socket repl in the build in nvim terminal is perfect.

❤️ 4
👍 4
danielohrlund21:06:09

ah I run multiple nrepl servers for different projects and map them to differenr ports so 4002 is correct 🙂