Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编辑python文件卡死问题 #133

Closed
houzy opened this issue Jul 1, 2014 · 12 comments
Closed

编辑python文件卡死问题 #133

houzy opened this issue Jul 1, 2014 · 12 comments

Comments

@houzy
Copy link

houzy commented Jul 1, 2014

使用最新的配置,编辑一个python文件。
启动之后,光标处于第一行的位置,当按下j或者下键,光标移动到第二行时,整个emacs完全卡死,多次打开统一文件现象相同,不同的是下面buffer输出卡住的位置不同,不过都卡在和idle-require相关处:
2014-07-02 00 11 02
2014-07-02 00 11 22
2014-07-02 00 11 41
卡死后,完全操作不了,按什么都没反应,只能杀死。
另外在按下j或者下键后,光标移动到第二行,下面buffer输出一个信息:
2014-07-02 00 13 55

@houzy
Copy link
Author

houzy commented Jul 1, 2014

如果我编辑一个简单的python文件:
2014-07-02 00 18 08
不会卡死,但是在补全的时候会输出一个错误信息:
2014-07-02 00 19 13

在_message_这个buffer中能找到在启动加载时的一个错误(第7行):
("emacs" "ge.py")
2Loading 00debian-vars...done
3Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
4Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done
5Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
6Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
7Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alis
t
8Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...
9Loading /usr/share/emacs24/site-lisp/haskell-mode/haskell-mode-autoloads.el (source)...done
10Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...done
11Loading /etc/emacs/site-start.d/51ghc-mod.el (source)...done
12Loading /home/houzy/.emacs.d/defuns/buffer-defuns.el (source)...done
13Real cl-lib shadowed by compatibility cl-lib? (/home/houzy/.emacs.d/cl-lib.el)
14cl-letf already defined, not rebinding
15Removing local package.el from load-path to avoid shadowing bundled version
16Loading /home/houzy/.recentf...done
17Cleaning up the recentf list...done (0 removed)
18[yas] Prepared just-in-time loading for /home/houzy/.emacs.d/elpa/yasnippet-0.8.0/snippets
19[yas] Prepared just-in-time loading for ~/.emacs.d/snippets
20[yas] Reloaded everything (snippets will load just-in-time)....
。。。
。。。

@redguardtoo
Copy link
Owner

company-jedi is for auto-completion.

what's you environment (including hardware spec). on my mac air, 2G memory, everything looks fine.

@redguardtoo
Copy link
Owner

ide-require will require modules when emacs is idle, it should not block you using emacs.

how big is your python file, i tried a file with 700 hundred lines, looks normal

@houzy
Copy link
Author

houzy commented Jul 2, 2014

您好,我刚才在公司的电脑上试了一下,没有问题,不会卡死,_message_buffer中也不会有Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alis\这个错误,company-jedi这个错误也没有,一切正常。
公司电脑环境是ubuntu 13.04, emacs版本是24.3.1。
昨天出问题的是家里的笔记本,os是ubuntu 14.04, thinkpad t410, 6G内存。
公司电脑和家里电脑的emacs配置是一模一样的,因为我打包了一份在网盘。
编辑的python脚本文件也是一样的。

@houzy
Copy link
Author

houzy commented Jul 2, 2014

您好,我找到现象了,公司电脑同样出现了卡死现象。和被编辑文件的大小没有关系。原因是不能同时开启两个终端打开文件。比如我在第一个终端TERM=xterm-256color emacs -nw打开一个python文件,这个文件会一切正常。但是我在别的终端打开其他python文件,全部会在按下j或者下键的时候出现卡死,下面会报错company-jedi那个错。这个是有冲突吗?总之第一个被打开的文件是正常的,其余都会卡死。

@houzy
Copy link
Author

houzy commented Jul 2, 2014

这个现象不限于终端下打开,emacs自己打开也会出现同样的情况。

@houzy
Copy link
Author

houzy commented Jul 2, 2014

补充,并不是所有卡死情况都会报company-jedi那个错。

@houzy
Copy link
Author

houzy commented Jul 2, 2014

补充,CPU狂飙。

@redguardtoo
Copy link
Owner

report bug to anaconda-mode

@redguardtoo
Copy link
Owner

@houzy
Copy link
Author

houzy commented Jul 4, 2014

anaconda-mode作者针对这个问题提交了更新,麻烦你更新一下库文件,谢谢。
pythonic-emacs/anaconda-mode@b1e9d86
pythonic-emacs/anaconda-mode#33

@redguardtoo
Copy link
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants