redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.39k stars 619 forks source link

TAGS file too big in frontend project? #1006

Closed smallst closed 1 year ago

smallst commented 1 year ago

i don't know where the exactly issue is, but my frontend project auto-completion always stucks with Please be patient when loading TAGS. then i check the TAGS file, it is 97M in my fronend project. (while at the same time my nodejs server project only has 1.8M TAGS). i don't know if anything error with my frontend project to make TAGS file so large (or it is still normal ? i tried to run ctags -R . in my frontend it get 300M ctags file).
and with this 97M TAGS, loading it seems really slow in emacs. it is really annoying me since emacs stop working when loading TAGS. any idea on this issue?

BTW, i had a similiar frontend project only has 8.9M TAGS. sounds more strange. since 97M project is just like, double the file (i.e. copy file1 to file2 and keep both version in project for every files). i don't think such files increase 10x times of TAGS size?

smallst commented 1 year ago

btw. the 8.9M TAGS project contains .vue, .js, .coffee files, while 97M project contains .a.js, .b.js, .a.coffee, .b.coffee (since i duplicate the files) would this affect the TAGS file to verify the file(programming language) format?

redguardtoo commented 1 year ago

If you use counsel-etag to generate tags file, you can set counsel-etags-ignore-filenames and counsel-etags-ignore-directories.

Or else you need set ctags cli options by yourself,

image
smallst commented 1 year ago

oh thanks! i found my public dir isn't in ingore path. add it. make sense!