Skip to content
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

Error while generating ctags file #46

Closed
gblock0 opened this issue Oct 10, 2015 · 3 comments
Closed

Error while generating ctags file #46

gblock0 opened this issue Oct 10, 2015 · 3 comments

Comments

@gblock0
Copy link

gblock0 commented Oct 10, 2015

Error while generating ctags file:
gutentags: File /Users/gregoryblock/.vim/cache/tags/Users-gregoryblock-radish-bu
ild-admin-tags doesn't appear to be a ctags file. Please delete it and run :Gute
ntagsUpdate!.
@ludovicchabant
Copy link
Owner

Hi!
What kind of ctags are you using, and what version? Gutentags checks, before overwriting a tags file, that it is indeed a tags file and not something else. It does this by looking at the first line of the tags file (see issue #37). Maybe your ctags generates the first line differentely?

@gblock0
Copy link
Author

gblock0 commented Oct 13, 2015

I am using Exuberant Ctags, which I installed with Homebrew.

This is what is in my ~/.ctags file:

--recurse=yes
--tag-relative=yes
--exclude=*.git*
--exclude=*.pyc
--exclude=*.pyo
--exclude=.DS_Store
--exclude=*.md
--exclude=*.mkd
--exclude=*.min.*
--exclude=node_modules
--exclude=bower_components
-f .git/tags

--langdef=js
--langmap=js:.js
--regex-js=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\{/\1/,object/
--regex-js=/([A-Za-z0-9._$()]+)[ \t]*[:=][ \t]*function[ \t]*\(/\1/,function/
--regex-js=/function[ \t]+([A-Za-z0-9._$]+)[ \t]*([^)])/\1/,function/
--regex-js=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\[/\1/,array/
--regex-js=/([^= ]+)[ \t]*=[ \t]*[^"]'[^']*/\1/,string/
--regex-js=/([^= ]+)[ \t]*=[ \t]*[^']"[^"]*/\1/,string/

Some of my ctags files have

!_TAG_FILE_FORMAT   2   /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED   1   /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR    Darren Hiebert  /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME  Exuberant Ctags //
!_TAG_PROGRAM_URL   http://ctags.sourceforge.net    /official site/
!_TAG_PROGRAM_VERSION   5.8 //

and some do not. is this the issue?

One file I found had this text in the file, but had some ctag ! lines above it.

@gblock0
Copy link
Author

gblock0 commented Oct 14, 2015

I accidentally duplicated this. Sorry! Since more people have commented on the other one I will reference #47 here and close this issue.

@gblock0 gblock0 closed this as completed Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants