【问题标题】:repl hangs for ~15 seconds on each error (emacs + cider + boot)每个错误 repl 挂起约 15 秒(emacs + cider + boot)
【发布时间】:2016-08-07 13:47:39
【问题描述】:

每当我在 boot-cljs-repl 中调用错误时,都会遇到奇怪的行为。 repl(实际上是整个 emacs)挂起大约 15 秒,之后我在模式行下方看到以下错误消息:

error in process filter: Lisp nesting exceedsmax-lisp-eval-depth'`

例如从 REPL 调用 (some-nonexisting-function) 时会出现错误。

此外,我在 REPL 本身中收到一条错误消息。抱歉,在这里发布整个内容 - 我现在不知道哪些部分很重要:

box.webgl> (some-nonexisting-function)
WARNING: Use of undeclared Var box.webgl/some-nonexisting-function at line 1 <cljs repl>               
#object[TypeError TypeError: Cannot read property 'call' of undefined]                                 
TypeError: Cannot read property 'call' of undefined                                                    
    at eval (eval at <anonymous> (http://localhost:3000/main.out/weasel/repl.js:30:470), <anonymous>:1\
:124)                                                                                                  
    at eval (eval at <anonymous> (http://localhost:3000/main.out/weasel/repl.js:30:470), <anonymous>:9\
:3)                                                                                                    
    at eval (eval at <anonymous> (http://localhost:3000/main.out/weasel/repl.js:30:470), <anonymous>:1\
4:4)                                                                                                   
    at http://localhost:3000/main.out/weasel/repl.js:30:465                                            
    at http://localhost:3000/main.out/weasel/repl.js:39:4                                              
    at cljs.core.MultiFn.call.G__10839__2 (http://localhost:3000/main.out/cljs/core.js:33327:106)      
    at cljs.core.MultiFn.call.G__10839 [as call] (http://localhost:3000/main.out/cljs/core.js:33594:20\
)                                                                                                      
    at .<anonymous> (http://localhost:3000/main.out/weasel/repl.js:184:71)                

    at goog.events.EventTarget.fireListeners (http://localhost:3000/main.out/goog/events/eventtarget.j\
s:284:23)                                                                                              
    at Function.goog.events.EventTarget.dispatchEventInternal_ (http://localhost:3000/main.out/goog/ev\
ents/eventtarget.js:381:26)

【问题讨论】:

  • 顺便说一句,同样可以调用:(throw (js/Error. "err"))
  • 你能不能说说你使用的是哪个emacs版本以及什么版本的cider/nrepl(连接后打印在缓冲区顶部)
  • 当然,它是 Emacs 24.4.1 和 CIDER 0.12.0snapshot(包:20160313.2315),nREPL 0.2.12
  • 只是为了让它完整,这些是我在连接时收到的其他一些警告:pastebin.ubuntu.com/15854273

标签: emacs clojure cider


【解决方案1】:

最近,CIDER 已更改为在启动 lein 时自动提供它自己的 cider-nrepl 和 clj-refactor 中间件,因此您可以(应该)从 ~/.lein/profifiles.clj 文件中删除它们(如果有的话)。这将清除此警告。 (记得更新到最新的 cider emacs 包。

WARNING: CIDER's version (0.12.0-snapshot) does not match 
cider-nrepl's version (not installed). Things will break!

这是一个问题,希望修复它可以解决您的其他问题。如果不是,至少解决这个问题是正确调试它的先决条件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-29
    • 2021-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多