当我尝试为所有 python 库构建标记文件时,ctags 永远不会停止

abl*_*lmf 3 python ctags

我曾经使用 ctags 通过以下命令为所有已安装的 python 库生成标签文件:

C:\Windows\System32>ctags -R -f d:\home\vimfiles\python.ctags d:\Python26
Run Code Online (Sandbox Code Playgroud)

但今天早上,在我升级到 Python 2.6.7 后,该命令仅生成以下输出,并且从未完成其工作。标签文件的大小一旦达到约 11MB 就不再改变。

ctags: Warning: ignoring null tag in d:\Python26\Lib\copy.py
ctags: Warning: ignoring null tag in d:\Python26\Lib\pickle.py
ctags: Warning: ignoring null tag in d:\Python26\Lib\site-packages\django\contrib\admin\sites.py
Run Code Online (Sandbox Code Playgroud)

什么可能会导致这个问题?

abl*_*lmf 5

@Gintautas 你是天才。

我发现 ctags 被这个文件停止了:

D:\Python26\Lib\site-packages\ipython-0.10-py2.6.egg\share\doc\ipython\manual\html\searchindex.js
Run Code Online (Sandbox Code Playgroud)

通过设置以下 ctags 选项排除它可以解决该问题。

--exclude=searchindex.js
Run Code Online (Sandbox Code Playgroud)

我猜这是 ctags 的一个错误。