4

我对 Emacs 很陌生,但我最近尝试为 Python 开发安装 Jedi.el。安装效果很好,我用了果酱。

但是现在,当我打开一个 Python 文件并尝试使用 C-TAB 调用自动完成时,我得到了这个错误。

deferred error : (error Keyword argument :triggered not one of (:requires :force-init))

在搜索此错误时,我发现了此问题: https ://github.com/tkf/emacs-jedi/issues/133

但是我安装了当前版本的自动完成功能。根据package-list-packages版本 1.4.0 安装。

所以我按照故障排除步骤进行操作。

这是输出jedi:show-setup-info

    ;; Emacs Lisp version:
    (:emacs-version "24.3.1" :jedi-version "0.2.0alpha2" :python-environment-version                 "0.0.2alpha0")
    ;; Python version:
    ((:version "3.4.0 (default, Mar 17 2014, 23:20:09) \n[GCC 4.8.2 20140206         (prerelease)]" :file nil :name "sys")
    (:version "0.7.0" :file "/home/skoehnen/.emacs.d/.python-environments/default/lib/python3.4/site-packages/jedi/__init__.py" :name "jedi")
    (:version "0.0.5" :file "/home/skoehnen/.emacs.d/.python-environments/default/lib/python3.4/site-packages/epc/__init__.py" :name "epc")
    (:version "0.0.3" :file "/home/skoehnen/.emacs.d/.python-environments/default/lib/python3.4/site-packages/sexpdata.py" :name "sexpdata"))
    ;; Command line:
    (:virtualenv "/usr/bin/virtualenv" :virtualenv-version "1.11.4\n")
    ;; Customization:
    ((jedi:complete-on-dot . t)
     (jedi:doc-display-buffer . display-buffer)
     (jedi:doc-hook view-mode)
     (jedi:doc-mode . rst-mode)
     (jedi:environment-root)
     (jedi:environment-virtualenv)
     (jedi:get-in-function-call-delay . 1000)
     (jedi:get-in-function-call-timeout . 3000)
     (jedi:goto-definition-config
      (nil nil nil)
      (t nil nil)
      (nil definition nil)
      (t definition nil)
      (nil nil t)
      (t nil t)
      (nil definition t)
      (t definition t))
     (jedi:goto-definition-marker-ring-length . 16)
     (jedi:imenu-create-index-function . jedi:create-nested-imenu-index)
     (jedi:import-python-el-settings . t)
     (jedi:install-imenu)
     (jedi:install-python-jedi-dev-command "pip" "install" "--upgrade"         "git+https://github.com/davidhalter/jedi.git@dev#egg=jedi")
     (jedi:key-complete .
                [C-tab])
     (jedi:key-goto-definition .
                   [67108910])
     (jedi:key-goto-definition-pop-marker .
                          [67108908])
     (jedi:key-related-names . "r")
     (jedi:key-show-doc . "d")
     (jedi:server-args)
     (jedi:server-command "/home/skoehnen/.emacs.d/.python-        environments/default/bin/jediepcserver")
     (jedi:setup-keys)
     (jedi:tooltip-method pos-tip popup)
     (jedi:use-shortcuts)
     (python-environment-default-root-name . "default")
     (python-environment-directory . "~/.emacs.d/.python-environments")
     (python-environment-virtualenv "virtualenv" "--system-site-packages" "--quiet"))

M-: jedi-mode RET回来t

我添加(global-auto-complete-mode t).emacs

当然,我也尝试了回溯(这是一个延迟错误),在jedi:toggle-log-traceback我点击 C-TAB 几次之后,但在 EPC 缓冲区中只有一个数字(我假设它是端口号?)。

所以现在我不知道还要检查什么,也许这里有人可以帮助我。

4

0 回答 0