简体   繁体   English

无法在emacs上启动苹果酒REPL

[英]Can't start cider REPL on emacs

Since I updated cider on my emacs a couple of days ago to CIDER 0.6.0alpha (package: 20140318.1539) I have not been able to run cider-jack-in. 自几天前我将我的emacs上的苹果酒更新为CIDER 0.6.0alpha(程序包:20140318.1539)以来,我一直无法运行苹果酒劫持。

If I try Mx cider-jack-in, I get the following error on the message buffer 如果尝试使用Mx苹果酒劫持,则在消息缓冲区上会收到以下错误

 Wrong type argument: stringp, nil

If I run the command from a lisp buffer I get the following backtrace 如果我从Lisp缓冲区运行命令,则会得到以下回溯

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  find-file-name-handler(nil file-remote-p)
  file-remote-p(nil)
  start-file-process-shell-command("nrepl-server" "*nrepl-server*<2>" "lein repl :headless")
  cider-jack-in()
  eval((cider-jack-in) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  ad-Orig-call-interactively(eval-last-sexp nil nil)
  call-interactively(eval-last-sexp nil nil)

Looking at the source in the debugger shows that the code for start-file-process-shell-command calls file-remote-p a couple of times with default-directory as its argument. 查看调试器中的源代码,可以看到start-file-process-shell-command的代码以default-directory作为参数多次调用了file-remote-p。

Now, I'm not sure if this is useful, since I'm getting way out of my depth here. 现在,我不确定这是否有用,因为我在这里不再赘述。 But If I try and evaluate default-directory on the source buffer it returns a non-nil value ("/usr/share/emacs/24.3/lisp/"). 但是,如果我尝试评估源缓冲区上的默认目录,它将返回一个非nil值(“ /usr/share/emacs/24.3/lisp/”)。

I tried wiping out my .emacs.d directory and reinstalling cider and clojure mode, but I still get the same problem, and I have not seen any other thread talking about this specific behavior on the cider github page. 我尝试清除.emacs.d目录并重新安装苹果酒和clojure模式,但是仍然遇到相同的问题,并且在苹果酒github页面上没有其他线程讨论此特定行为。 So it looks like it's somehow related to my environment. 因此,这似乎与我的环境有关。

Any help on how to troubleshoot this issue would be greatly appreciated. 任何有关如何解决此问题的帮助将不胜感激。

Santi. 桑蒂。

You were affected by a regression introduced with the addition of the cider-jack-in over tramp feature ( commit ). 您受到了回归的影响,该回归是通过添加cider-jack-in over tramp功能( commit )引入的。 I've just fixed the problem here . 我刚刚解决了这一问题在这里

In future you'd do better to report problems on the project's issue tracker. 将来,您最好在项目的问题跟踪器上报告问题。 You're lucky I'm on stackoverflow as well. 您很幸运,我也在stackoverflow上。 :-) :-)

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

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