【问题标题】:Why I can't use auto-complete for python modules in emacs为什么我不能在 emacs 中对 python 模块使用自动完成功能
【发布时间】:2012-02-10 11:53:42
【问题描述】:

我一直在尝试使用 emacs 作为 python IDE,我已经尝试了许多分步示例来做到这一点。但是我在功能完成方面遇到了一些麻烦。现在我对局部变量和来自 yasn-ps 的 sn-ps 进行了自动完成(带有制表符完成),但由于某种原因,它不适用于模块或内置函数。例如。它不适用于字符串函数或 os.path ,如此处所示; http://www.youtube.com/watch?v=tDTwuOVbAFc

注意;在尝试之前,我正在打开新的绳索项目。

我在 ubuntu 11.10 上运行 emacs 24.0.91,我已经从 ubuntu 存储库下载了rope 和ropemacs

 sudo apt-get install python-rope
 sudo apt-get install python-ropemacs

(我也尝试按照Ryan's blog 的建议下载并安装rope。)

我的 .init 文件在这里; http://pastebin.com/hfS5yTXC

当我使用this 教程时,情况变得更糟,yasn-ps 和局部变量的自动完成功能也停止运行。

任何帮助将不胜感激。

【问题讨论】:

    标签: python emacs autocomplete ropemacs rope


    【解决方案1】:

    好的,我已经分叉了住在这里的emacs-for-python 包; https://github.com/gabrielelanaro/emacs-for-python

    虽然auto-complete 仍然没有制表符补全,但我可以使用rope-code-assist 来完成模块功能。如果我可以让它与 tab-completion 一起使用,我会更新我的答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-27
      • 2017-05-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多