Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

ctags

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?

like image 257
ablmf Avatar asked Dec 08 '25 15:12

ablmf


1 Answers

@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.

like image 93
ablmf Avatar answered Dec 12 '25 21:12

ablmf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!