Mac OSX、Emacs 24.2 和 nrepl.el 不工作 [英] Mac OSX, Emacs 24.2 and nrepl.el not working

查看:18
本文介绍了Mac OSX、Emacs 24.2 和 nrepl.el 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 nrepl.elEmacs 24.2.我的 S.O 版本是 OS X Lion 10.7.5.

在启动 REPL 会话通过 lein (:~$ lein repl) 我可以连接到它,但是如果我尝试使用 [Mx] nrepl-jack-in 我会收到以下消息:

<块引用>

进程哨兵错误:无法启动 nREPL 服务器:/bin/bash:lein:找不到命令

我使用 主站点中的说明安装了 leiningen 并使用 homebrew 使用命令 brew install leiningen --devel 但两种方法都给我同样的错误.

将路径/usr/loca/bin 添加到emacs exec-path 列表或尝试配置nrepl.el 变量nrepl-lein-command 指向我的 lein 安装的完整路径没有帮助.

我的 emacs 配置可以在这里找到:https://github.com/khaoz/emacs-files

我做错了什么?

谢谢:)

解决方案

对于那些在使用 Mac 时遇到此问题的人:

lein 需要在 Emacs 看到的路径上.这可以通过从 bash 启动 Emacs 来完成

/Applications/Emacs.app/Contents/MacOS/Emacs project.clj

然后:M-x nrepl-jack-in

如果这解决了问题,您可以按照这些说明配置 emacs 以使用正确的路径

I'm using nrepl.el, Emacs 24.2. My S.O version is OS X Lion 10.7.5.

Running the command [M-x] nrepl after start a REPL session through lein (:~ $ lein repl) i am able to connect to it but if i try to use [M-x] nrepl-jack-in i get the message bellow:

error in process sentinel: Could not start nREPL server: /bin/bash: lein: command not found

I installed leiningen using the instructions in the main site and reinstalled it using homebrew with the command brew install leiningen --devel but both methods give me the same error.

Adding the path /usr/loca/bin to emacs exec-path list or trying to configure nrepl.el variable nrepl-lein-command to point to the full path of my lein installation does not help.

My emacs configuration can be found here: https://github.com/khaoz/emacs-files

What i'm doing wrong ?

Thanks :)

解决方案

for those of you landing on this question who are using a Mac:

lein needs to be on the path as seen by Emacs. This can be done by starting Emacs from bash

/Applications/Emacs.app/Contents/MacOS/Emacs project.clj

then: M-x nrepl-jack-in

If this solves the problem you can configure emacs to use the correct path by following these instructions

这篇关于Mac OSX、Emacs 24.2 和 nrepl.el 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆