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

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

问题描述

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



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


启动nREPL服务器:/ bin / bash:
lein:未找到命令

https://github.com/technomancy/leiningen#installation\">主网站中的说明,并使用 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的用户来说:



在Emacs看到的道路上。这可以通过从bash启动Emacs来完成。

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



然后:
Mx 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天全站免登陆