Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I getting that my emacs tags is not a valid tags table?

Tags:

emacs

ctags

I just tried generating some tags for emacs by running something like:

ctags -e --extra=+q --sort=yes -R /codebase/one /codebase/two /usr/include /usr/include/c++

I drop this in some subdirectory of my home directory. And then I navigate to, say, codebase/one and do M-x visit tags-table and load that one and it complains with:

File /home/palchan/.tags/tags is not a valid tags table

why is this not a valid tags table?

like image 436
Palace Chan Avatar asked Feb 06 '13 00:02

Palace Chan


2 Answers

Try removing the --sort=yes option.

This solved the problem for me with both ctags versions 5.8 (latest) and 5.5.4 (distributed with my version of Linux).

You can also try the ctags binary that is shipped with Emacs, which is likely in the same directory as the Emacs binary. Note: the command line options are a little different.

like image 184
Trey Jackson Avatar answered Oct 11 '22 01:10

Trey Jackson


Try the -e option -e Output tag file for use with Emacs.

like image 42
GOPS Avatar answered Oct 11 '22 01:10

GOPS