ctags never stops when I try to build a tag file for all python libraries

筅森魡賤 提交于 2020-01-04 05:51:29

问题


I used to use ctags to generate a tags file for all installed python libraries by this command:

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

But this morning, after I upgraded to Python 2.6.7, that command only generates the following output and never finishes its job. The size of the tags file doesn't change anymore once it reaches about 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

What might cause this problem?


回答1:


@Gintautas You are genius.

I found ctags was stopped by this file :

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

Exclude it by set the following ctags option could resolve the problem.

--exclude=searchindex.js

I guess it's a bug of ctags.



来源:https://stackoverflow.com/questions/4924289/ctags-never-stops-when-i-try-to-build-a-tag-file-for-all-python-libraries

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!