-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: default value (and location) of g:gutentags_tagfile causes data loss #37
Comments
Hi! Having a So frankly I can't think of a better default value. That said, you can set the |
I am fine with using a custom |
Yeah it wouldn't tell you about it because it would be totally expected to find a file there. I suppose that, on start, Gutentags could check the first line of an existing tags file (the first few lines seem to start with |
If you decide to go for this, I assume that having logic that checks for one pattern in place will be fine. Since the list of patterns to look for can be extended later if needed, just like it happened with |
Hey, I have a fix ready but I want to test it some more with very big tags files to see if reading the first line doesn't slow down the overall process. |
Sure. Though I see no reason why reading a line from a big file would be very different from reading a line from any file, as long as the line itself isn't huge. |
I forgot to close this.... fixed with ce4716a. |
If
gutentags_project_root
already contains a file namedtags
, it will be silently overwritten. If this file isn't tracked by the version control tool yet, this will cause data loss. If this file is already tracked - the version control tool will still be annoying about the content of this file getting changed everytime vim-gutentags overwrites it.Having any less common default name for the tags file won't completely remove the risk of filename collisions. A better approach is probably to put these files somewhere else, outside
gutentags_project_root
, in a temporary directory perhaps?The text was updated successfully, but these errors were encountered: