简体   繁体   English

boot-clj:苹果酒劫持后浏览器替换

[英]boot-clj: browser repl after cider-jack-in

My workflow for starting a "boot dev" process within emacs for using it with cider afterwards was something like this: 我的工作流程是在emacs中启动一个“ boot dev”过程,然后将其与苹果酒一起使用,如下所示:

  • go to a shell buffer. 去一个shell缓冲区。
  • enter "boot dev" 输入“ boot dev”
  • wait until the message "Time Elapsed..." 等到消息“时间已过去...”
  • cider-connect (Enter, Enter) 苹果酒连接(Enter,Enter)

In the case it is a ClojureScript Project, one could start a browser repl with: 如果是ClojureScript项目,则可以使用以下命令启动浏览器复制:

(start-repl)

When using cider-jack-in to ease this a bit I get problems with the last step, the ClojureScript repl. 当使用cider-jack-in缓解此问题时,我在最后一步ClojureScript repl遇到了问题。 Here's the beginning of the error message: 这是错误消息的开头:

boot.user> (start-repl)
<< started Weasel server on ws://127.0.0.1:45341 >>
<< waiting for client to connect ... java.lang.NullPointerException
    at clojure.java.io$make_parents.invokeStatic(io.clj:443)
    at clojure.java.io$make_parents.doInvoke(io.clj:438)
    at clojure.lang.RestFn.invoke(RestFn.java:410)

(the full message can be found here: http://pastebin.com/chBNByKG ) (完整的消息可以在这里找到: http : //pastebin.com/chBNByKG

I did add a ~/.boot/profile.boot according to the cider manual. 我确实根据苹果酒手册添加了〜/ .boot / profile.boot。

Use cider-jack-in-clojurescript ( Cc MJ by default) instead of cider-jack-in to get the ClojureScript REPL. 使用cider-jack-in-clojurescript (默认为Cc MJ )而不是cider-jack-in来获取ClojureScript REPL。 (Or connect to an external REPL.) It doesn't work otherwise, at least with the current CIDER (0.14 at the time or writing.) (或连接到外部REPL。)否则,它至少在当前的CIDER(当时或编写时为0.14)下不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM