【发布时间】:2014-04-16 11:12:56
【问题描述】:
我在编译驻留在我运行 nREPL 服务器进程的项目中的 .clj 文件时遇到问题:
- 我使用
lein new xxx创建了一个新项目。 - 在项目文件夹中,我通过
lein repl启动了一个nREPL。 - 在另一个终端窗口中,我启动了一个客户端
lein repl :connect localhost:12345/repl。 -
我创建了一个简单的命名空间文件并将其保存在项目中的适当位置:
(ns remote.one) (def foo 42) -
现在我在客户端调用了这个函数
(compile 'remote.one)
我有以下异常:
CompilerException java.lang.ClassNotFoundException: remote.one, compiling:(C:\Users\xxx\AppData\Local\Temp\form-init2429492334116477513.clj:1:1)
现在我希望编译调用在服务器而不是客户端上执行。能做到吗?
谢谢
【问题讨论】: