2

我曾经使用 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

什么可能导致这个问题?

4

1 回答 1

4

@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的错误。

于 2011-02-08T04:56:26.750 回答