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 a client
lein repl :connect localhost:12345/repl
. I created a simple namespace file and saved it inside the project in the appropriate location:
(ns remote.one) (def foo 42)
Now on the client terminal I called this function
(compile 'remote.one)
I've got the below exception:
CompilerException java.lang.ClassNotFoundException: remote.one, compiling:(C:\Users\xxx\AppData\Local\Temp\form-init2429492334116477513.clj:1:1)
Now I would have expected the compile call to be executed in the server not on the client. Can it be done at all?
Thanks