【发布时间】:2016-02-07 01:12:56
【问题描述】:
这里是 ClojureScript 新手。
我正在学习使用 Boot 的以下 ClojureScript 教程:https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-02.md#browser-repl-brepl
我可以通过运行boot repl -c 和(start-repl) 将命令行/引导 repl 连接到我的站点,但我想使用基于 REPL 的更丰富的文本编辑器连接到站点。
我已经为 atom 文本编辑器下载了 ProtoRepl。我可以通过给它 repl 的主机 + 端口来很好地连接到 repl,但是当我尝试运行 (start-repl) 时它会抛出错误:
(start-repl)
=> CompilerException java.lang.RuntimeException: Unable to resolve symbol: start-repl in this context, compiling:(C:\Users\Zain\AppData\Local\Temp\boot.user4327288409706217009.clj:1:1)
似乎我缺少一些 ClojureScript/boot 特定的导入,但我不确定要添加什么或如何添加它。
这里有一些额外的调试信息:
在工作启动 repl 连接上运行 (def start-repl) 与失败的 proto-repl 连接:
引导复制:
cljs.user=> (def start-repl)
#'cljs.user/start-repl
原型复制:
(def start-repl)
=>
#'user/start-repl
【问题讨论】:
-
如果您已经在 cljs repl 中,为什么还需要更多内容?
-
@nha 因为 Boot repl 是基于控制台的,错过了一些不错的功能,比如基于语法的颜色编码
标签: clojure clojurescript boot-clj proto-repl