3

没有明显的原因在 Emacs 中启动 slime 会在迷你缓冲区中产生以下消息:

轮询“/tmp/slime.5000 .. 25(使用 `Mx slime-abort-connection' 中止。)[730 次]

那 [730 次] 不断增长。据说,这意味着史莱姆无法启动,但不,它工作正常。

这是我的消息缓冲区,从粘液初始化开始:

../../quicklisp/dists/quicklisp/software/slime-20130217-cvs/contrib/slime-package-fu.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' 或 cl-letf'. [4 times] Starting Emacs daemon. When done with this frame, type C-x 5 0 Polling "/tmp/slime.5080" .. 1 (Abort withMx slime-abort-connection'.) 轮询"/tmp/slime .5080" .. 2 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 3 (Abort withMx slime-abort-connection'.) Polling "/tmp/slime.5080" .. 4 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 5 (Abort withMx slime-abort-connection'.) Polling "/tmp/slime.5080 " .. 6 (使用M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 7 (Abort withMx slime-abort-connection' 中止。) 轮询 "/tmp/slime.5080" .. 8 (使用 M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 9 (Abort withMx slime-abort-connection' 中止。) 轮询 "/tmp/slime.5080" 。 . 10 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 11 (Abort withMx slime-abort-connection'.) 轮询 "/tmp/slime.5080" .. 12 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 13 (Abort withMx slime-abort-connection'.) 轮询 "/tmp/slime.5080" .. 14(使用M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 15 (Abort withMx slime-abort-connection 中止。)轮询“/tmp/slime.5080”.. 16(使用中止M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 17 (Abort withMx slime-abort-connection'.) Polling "/tmp/slime.5080" .. 18 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 19 (Abort withMx slime-abort-connection'.) Polling "/tmp/slime.5080" .. 20 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 21 (Abort withMx slime -abort-connection'.) Polling "/tmp/slime.5080" .. 22 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 23 (Abort withMx slime-abort-connection'.) Polling "/tmp/slime.5080" .. 24 (Abort with M-x slime-abort-connection'.) Polling "/tmp/slime.5080" .. 25 (Abort withMx slime-abort -connection'.) 在端口 39808 上连接到 Swank.. 轮询“/tmp/slime.5080”.. 25(使用M-x slime-abort-connection'.) [2 times] Source file /home/lawrence/.emacs.d/elpa/clojure-mode-1.11.5/clojure-中止) mode.el' 比字节编译文件更新 已连接。让黑客开始!轮询“/tmp/slime.5080”.. 25(使用M-x slime-abort-connection'.) [297 times] Mark set Polling "/tmp/slime.5080" .. 25 (Abort withMx slime-abort-connection 中止'。)[207 次] 标记保存在搜索开始的位置轮询”/tmp/slime.5080" .. 25(中止M-x slime-abort-connection'.) [58 times] Cancelled connection attempt. Polling "/tmp/slime.5080" .. 25 (Abort withMx slime-abort-connection'。)[1159 次] 字节码:缓冲区轮询“/tmp/slime.5080”.. 25 (使用M-x slime-abort-connection'.) [2 times] byte-code: Beginning of buffer [2 times] Polling "/tmp/slime.5080" .. 25 (Abort withMx slime-abort-connection 中止。)[2 次] 字节-代码:缓冲区轮询开始“/tmp/slime.5080”.. 25(使用M-x slime-abort-connection'.) byte-code: Beginning of buffer Polling "/tmp/slime.5080" .. 25 (Abort withMx slime-abort-connection 中止。)[202 次]

4

6 回答 6

1

清理你的 .cache/common-lisp/

于 2014-03-29T15:50:10.080 回答
0

The infinite polling may be due to the missing of file swank-loader.lisp. Check the variable slime-backend to see whether it contains the right path to swank-loader.lisp.

On my computer I don't even have a swank-loader.lisp file(I noticed that if you install the slime using elpa, this may happen). So I downloaded the entire slime from here and got it right.

于 2013-10-19T02:53:57.247 回答
0

对我来说,问题是我的 .emacs.d/ 文件夹中没有 /tmp 文件夹。添加 /tmp 文件夹解决了问题

于 2014-03-08T01:55:08.377 回答
0

安装emacs 24.3后,我也有同样的问题,你可以这样

cd /path/slime/contrib
find ./ -name '*.elc' | xargs rm -f

然后,重启你的emacs

于 2013-05-05T10:44:56.757 回答
0

我的 Emacs + Slime + CCL/SBCL/CLISP/ECL 也出现了同样的错误,我有一个解决方案,在我的系统上,没问题!你可以试试。

错误的原因可能是 slime 和 swank 的版本不匹配。所以解决方案是使用相同版本的 slime 和 swank。

我的系统是 Raspbian(一种 debian)。我使用命令“apt-get install slime”安装了slime,然后slime和emacs会自动安装到路径“/usr/share/common-lisp/source/slime/”。但我认为该版本不是最新的。

解决方法: 1、获取最新的 slime 到你的 home 路径: 命令:

cd ~/ sudo git clone https://github.com/slime/slime slime cd slime make

2、在~/.emacs中添加tmp path和load-path:

(setq 临时文件目录 "/tmp") (add-to-list 'load-path "/home/pi/slime/")

3、将/usr/share/common-lisp/source/slime/重命名为/usr/share/common-lisp/source/slime-back/命令:

sudo mv /usr/share/common-lisp/source/slime/ /usr/share/common-lisp/source/slime-back/

4、使用最新的slime创建符号链接命令:

sudo ln -s /home/pi/slime //usr/share/common-lisp/source/slime

5、删除缓存和临时文件命令:

sudo mv ~/.cache/common-lisp ~/.cache/common-lisp-back

OK,现在你可以尝试启动emacs和slime了。

于 2015-08-24T14:20:24.083 回答
0

对于 Debian 10 上的我来说,安装cl-swank软件包解决了这个问题。

This package contains the Lisp-side server, needed by the Emacs client (see package slime).

(我slime的也来自 Debian 存储库。)

于 2021-03-14T19:02:03.063 回答