Fork me on GitHub
#chlorine-clover
<
2020-04-03
>
cpmcdaniel17:04:57

is it possible to connect to a boot repl?

mauricio.szabo17:04:24

I'm not familiar with boot, but if you can start a socket REPL from boot, yes.

cpmcdaniel17:04:37

java.lang.RuntimeException: Unable to resolve symbol: require in this context
clojure.lang.Compiler$CompilerException: Syntax error compiling at (1:5).
I am trying to connect and having this issue when I load file into the repl session

mauricio.szabo18:04:06

Can you evaluate forms from the editor? For example, can you evaluate (clojure.core/range 200) and send me the result?

cpmcdaniel18:04:15

I can eval simple forms

cpmcdaniel18:04:34

That expression works fine

mauricio.szabo18:04:57

It shows the whole 200 elements, or does it stops on 9?

cpmcdaniel18:04:15

and I can use "Eval selection" on the ns form and it returns nil, like usual

cpmcdaniel18:04:22

it returns all 200

cpmcdaniel18:04:13

actually, it looks like just Load file that isn't working

mauricio.szabo18:04:14

Ok, so you're connecting to a nREPL. I think I may have found my first bug 😄 Try to export the following environment variable:

BOOT_JVM_OPTIONS='-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}"'

cpmcdaniel18:04:26

I can select the whole buffer and Eval Selection

mauricio.szabo18:04:41

And then, restart boot and see if you can connect to port 5555