【问题标题】:can't start a cider REPL after trying to update cider尝试更新苹果酒后无法启动苹果酒 REPL
【发布时间】:2016-07-24 14:11:53
【问题描述】:

尝试更新 Cider 后,我一直无法启动 repl。

我收到以下错误消息,显然表明 Leiningen 存在问题:

Loading c:/emacs/graphviz-dot-mode.el (source)...
graphviz-dot-mode.el: (lambda (elm) ...) quoted with ' rather than with #' [4 times]
Loading c:/emacs/graphviz-dot-mode.el (source)...done
Loading c:/emacs/xml-rpc.el (source)...
xml-rpc.el: (lambda (p) ...) quoted with ' rather than with #'
Loading c:/emacs/xml-rpc.el (source)...done
Loading c:/emacs/py/emacs-for-python/epy-init.el (source)...
Loading c:/emacs/py/emacs-for-python/extensions/flymake-patch.el (source)...done
Loading c:/emacs/py/emacs-for-python/extensions/flymake-cursor.el (source)...done
py/emacs-for-python/extensions/auto-complete/auto-complete.el: `flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
Loading c:/emacs/py/emacs-for-python/epy-init.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making nrepl-create-client-buffer-function local to *nrepl-server graphics* while let-bound!
Making nrepl-use-this-as-repl-buffer local to *nrepl-server graphics* while let-bound!
Starting nREPL server via "c:/Users/Owner/.lein/bin/lein.bat" update-in :dependencies conj ^"[org.clojure/tools.nrepl \^"0.2.12\^"]^" -- update-in :plugins conj ^"[cider/cider-nrepl \^"0.13.0-SNAPSHOT\^"]^" -- repl :headless...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: warning: extra args ignored after '"c:/Users/Owner/.lein/bin/lein.bat'
Leiningen is a tool for working with Clojure projects.

谁能告诉我可能是什么问题?

【问题讨论】:

    标签: emacs clojure cider


    【解决方案1】:

    我不熟悉在 Windows 上运行 emacs 和 clojure,但该错误似乎表明存在参数不匹配。我会尝试的第一件事是看看你是否可以运行 lein repl。这应该告诉你 lein 是否正常。

    您是否使用 elpa 来安装 clojure-mode 和 cider?如果没有,那将是确保事情是最新的最好方法。请注意,如果您使用的是 elpa,那么删除苹果酒包并重新安装可能会有所帮助。苹果酒有很多更新,你的问题可能只是一个暂时性的问题,已经修复了。我还会检查苹果酒网站,看看是否有任何已知问题。

    我在周末更新了最新的(当时)苹果酒,并且在 OSX 上运行它没有任何问题。

    【讨论】:

    • 是的,我正在使用 elpa,是的,lein repl 有效。感谢您的建议,我尝试更新但没有帮助。
    • 我很想完全删除 cider elpa 包目录,看看是否完全重新安装。在一台机器上,我每次尝试 org-plus-contrib 升级时都必须这样做,而在另一台机器上,升级总是有效的(一台 Linux,一台 OSX)。尝试启用 debug-on-error 并查看 cider-jack-in 和 cider-connect 获得的回溯。可能会提供足够的信息以获得更好的建议。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-14
    • 1970-01-01
    • 2015-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-01
    相关资源
    最近更新 更多