Sublime Forum

Ctags file is huge

#1

Using the CTags plug in. When I generate my .tags file, it huge. Over 12GB.

My project is quite small, just a test project. About 20mb app + 30mb vendor folder.

Does that sound right?

M

0 Likes

#2

I don’t use that plugin, but i have seen ctags go crazy in other projects before. Is the boost source somewhere in your project? I once had a project where the ctags file was ~1GB, and 900MB of it was 3rdparty/boost.

0 Likes

#3

Not familiar with boost, and have no 3rd party vendor by that name.

0 Likes

#4

I’d just make sure it’s indexing from the root of your project and not, say, the root of your hard drive. :smiley:

0 Likes

#5

Hmm. I suspect it may be doing that – indexing in the wrong root. I’ve read up on this and thought I was doing everything correctly.

I’m on OSX and have added “command”: “/usr/local/bin/ctags” to my Sublime ctag settings. When first rebuilding ctags, it asks me where I’d like to do so and I was selecting the root of my project, which include app, public, and vendor. This produces a 12 GB file, even though my entire project is < 100 MB. If I instead select the app folder to rebuild tags, it is a considerably smaller file 13 MB, but it is unable to navigate to definitions outside of app, such as those in vendor (Laravel core classes).

What’s strange is that the app folder is 50MB and produces a 13MB tags file. The entire project is about 100MB and it’s producing a 12 GB file. Any thoughts on what’s going on?

0 Likes

#6

This related to indexing my node_modules directory. When excluded in CTags Settings, every worked fine.

0 Likes