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

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

问题描述

我正在使用 nrepl.el Emacs 24.2 。我的SO版本是OS X Lion 10.7.5。

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

在启动一个后,运行命令 [Mx] nrepl 一个href =http://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop> REPL 会话通过 lein (:〜$ lein repl)我可以连接到它,但如果我尝试使用 [Mx] nrepl-jack-in 我收到以下消息:

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:


错误进程sentinel:无法启动nREPL服务器:/ bin / bash:
lein:command not found

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

我使用主站点中的指示,并使用 homebrew 使用命令 brew install leiningen --devel ,但这两种方法都给我相同的错误。

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.

添加路径 / usr / loca / bin 到emacs exec-path 列表或tr ying配置 nrepl.el 变量 nrepl-lein-command 指向我的lein安装的完整路径不帮助。

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.

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

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

我做错了什么?

谢谢:)

推荐答案

对于那些在这个问题上使用Mac的人:

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

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

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

然后:
Mx nrepl-jack-in

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天全站免登陆