【问题标题】:Git submodules PyFlakesGit 子模块 PyFlakes
【发布时间】:2012-08-23 13:00:26
【问题描述】:

大家好,我正在尝试启动我的 Vim,所以我开始使用 GitHub 上的插件,但在安装 PyFlakes plugin 后出现此错误:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 82, in check
  File "/usr/lib/pymodules/python2.7/pyflakes/checker.py", line 176, in __init__
    self.handleChildren(tree)
  File "/usr/lib/pymodules/python2.7/pyflakes/checker.py", line 267, in handleChildren
    for node in tree.getChildNodes():
AttributeError: 'Module' object has no attribute 'getChildNodes'

我在我的 dotfiles 存储库中使用 PyFlakes 作为子模块,因此我不能按照插件 GitHub 上的 issue 27 中的建议使用 git clone --recursive。我的 Vim 7.3 编译时支持 Python。

谁能帮我解决这个问题?

【问题讨论】:

    标签: git vim pyflakes


    【解决方案1】:

    我用这个命令修复它:

    git submodule update --recursive
    

    只需要知道如何更新子模块:)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-04
      • 2015-04-24
      • 2014-09-30
      • 2015-03-22
      • 2015-06-07
      • 2010-11-02
      • 2015-09-08
      • 1970-01-01
      相关资源
      最近更新 更多