【问题标题】:emacs python jedi erroremacs python 绝地错误
【发布时间】:2014-02-13 22:36:44
【问题描述】:

我正在尝试按照此处的说明设置我的 GNU Emacs 24.3.1 以进行 python 开发:

https://www.youtube.com/watch?v=0cZ7szFuz18

安装发出了一些警告,但安装成功。然后我打开一个带有文件01.py 的新缓冲区并尝试使用自动完成功能:

import os
os.

但是得到这个错误:

deferred error : (error Server may raise an error :   File "/home/avilella/.emacs.d/elpa/jedi-0.1.2/jediepcserver.py", line 71
    return _WHITESPACES_RE.sub(' ', desc) if desc and desc != 'None' else ''
                                           ^
SyntaxError: invalid syntax
)

有什么想法吗?

【问题讨论】:

  • 如果我不得不猜测,我会说它与这个 github 问题有关,该问题显然已被 @syohex 关闭:github.com/tkf/emacs-jedi/issues/100

标签: python emacs jedi


【解决方案1】:

emacs 使用的是旧版本的 python。我相信得到错误的代码是python 2.6+语法。

【讨论】:

    猜你喜欢
    • 2014-04-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-24
    • 1970-01-01
    • 2013-06-29
    • 2023-03-30
    相关资源
    最近更新 更多