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

2024-04-13

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

C:\Windows\System32>ctags -R -f d:\home\vimfiles\python.ctags d:\Python26

但今天早上,在我升级到 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

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


@Gintautas 你是天才。

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

D:\Python26\Lib\site-packages\ipython-0.10-py2.6.egg\share\doc\ipython\manual\html\searchindex.js

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

--exclude=searchindex.js

我猜这是 ctags 的一个错误。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

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

随机推荐