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

ubuntu 下启动emacs报错找不到cl-struct-define #520

Closed
danyuhao opened this issue Nov 4, 2016 · 3 comments
Closed

ubuntu 下启动emacs报错找不到cl-struct-define #520

danyuhao opened this issue Nov 4, 2016 · 3 comments

Comments

@danyuhao
Copy link

danyuhao commented Nov 4, 2016

Debugger entered--Lisp error: (void-function cl-struct-define)
cl-struct-define(yas--template "A template for a snippet." cl-structure-object nil nil ((cl-tag-slot) (key) (content) (name) (condition) (expand-env) (load-file) (save-file) (keybinding) $
byte-code("\300\301\302\303#\210\304\305\306\307\310\211\311\312\313\303& \207" [function-put yas--define-snippets-2 side-effect-free t cl-struct-define yas--template "A template for $
require(yasnippet)
elpy-module-yasnippet(global-init)
apply(elpy-module-yasnippet global-init nil)
elpy-modules-run(global-init)
elpy-modules-global-init()
elpy-enable()
eval-buffer(#<buffer load-839254> nil "/home/y00329832/.emacs.d/lisp/init-python-mode.el" nil t) ; Reading at buffer position 226
load-with-code-conversion("/home/y00329832/.emacs.d/lisp/init-python-mode.el" "/home/y00329832/.emacs.d/lisp/init-python-mode.el" nil t)
require(init-python-mode)
(let ((file-name-handler-alist nil)) (require (quote init-autoload)) (require (quote init-modeline)) (require (quote cl-lib)) (require (quote init-compat)) (require (quote init-utils)) (r$
eval-buffer(#<buffer load> nil "/home/y00329832/.emacs.d/init.el" nil t) ; Reading at buffer position 5770
load-with-code-conversion("/home/y00329832/.emacs.d/init.el" "/home/y00329832/.emacs.d/init.el" t t)
load("/home/y00329832/.emacs.d/init" t t)
#[0 "^H\205\262^@ \306=\203^Q^@\307^H\310Q\202;^@ \311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#\203:^@\320\nB^R\321\202;^@\316\322^S\323^A\322\21$
command-line()
normal-top-level()

@redguardtoo
Copy link
Owner

redguardtoo commented Nov 4, 2016

emacs version? os?

try delete elpy and re-install and compile it.

@danyuhao
Copy link
Author

danyuhao commented Nov 4, 2016

GNU Emacs 24.5.1 + Ubuntu 16.04.1 LTS
环境不能上外网,我是下载的你的myelpa-master.zip,然后又在msys上启动emacs,把其他缺少的el手动下载打包到myelpa中,上传到Ubuntu 的服务器上执行emacs的;

@danyuhao
Copy link
Author

danyuhao commented Nov 4, 2016

syl20bnr/spacemacs#3129
问题已经解决:删除elpy下所有文件重新安装即可
原因是:
This is happening because the package(s) were compiled on Emacs 25.x and then attempted to be loaded on 24.5.1.

@danyuhao danyuhao closed this as completed Nov 4, 2016
@danyuhao danyuhao changed the title ubuntu 下启动emacs报错 ubuntu 下启动emacs报错找不到cl-struct-define Nov 4, 2016
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