On 2010-05-22, John Beckett wrote:
> Bob wrote:
> > Ive created some tags files for our codebase here at work.
> > After creating the tags file I use 'sort'
> > and rewrite the file so its sorted, however when tags cannot
> > find a tag, it gives me the following message for each of the
> > tags files Ive created:
> >
> > E432: Tags file not sorted: /tmp/web.tags
> > E432: Tags file not sorted: /tmp/server.tags
> > E426: tag not found: notarealtag
>
> You are not supposed to 'sort' a tags file as a separate step.
> Instead, you tell ctags to sort it. I haven't thought about this
> for a long time, and I'm not really sure if I've configured
> something clever, but just running 'ctags' on my system results
> in the second line of the tags file looking like this:
>
> !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
>
> Hmm. If you create the tags file using your own tool (not
> ctags), perhaps you need to add that line.
Another thing to think about is how 'sort' sorts your data. I've
had to set
LC_COLLATE=C
in the environment of some of the systems I work on to have 'sort'
and 'ls' use the ASCII collating sequence which I prefer.
Regards,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php