tags file not sorted error

1,598 views
Skip to first unread message

Hari Krishna Dara

unread,
Oct 4, 2007, 2:45:26 PM10/4/07
to vim...@googlegroups.com

I am generating tags file under Vim SVN source (very recent) using the
options:

--exclude=.svn --sort=foldcase

When I set 'tags' to just "tags" and I am in the directory where the
tags file resides (which is the root of Vim source, above src directory)
and try to lookup tags, I get

E432: Tags file not sorted: tags

I have 'tagbsearch' turned on. I have been using the same options to
generate tags file on other sources for a long time and Vim doesn't
complain. Even with the above error, it seems to be able to locate for a
few tags that I tried.

I have ctags version 5.7 and Vim version 7.1 (GA). Has anyone else
noticed this? If not, what is that I am missing in my settings?

--
Thanks,
Hari

Tony Mechelynck

unread,
Oct 4, 2007, 3:17:12 PM10/4/07
to vim...@googlegroups.com

:set ignorecase

or else

--sort=yes
:set noignorecase


Best regards,
Tony.
--
Why do we have two eyes? To watch 3-D movies with.

Hari Krishna Dara

unread,
Oct 4, 2007, 4:14:21 PM10/4/07
to vim...@googlegroups.com

On Thu, 4 Oct 2007 at 9:17pm, Tony Mechelynck wrote:

>
> Hari Krishna Dara wrote:
>>
>> I am generating tags file under Vim SVN source (very recent) using the
>> options:
>>
>> --exclude=.svn --sort=foldcase
>>
>> When I set 'tags' to just "tags" and I am in the directory where the
>> tags file resides (which is the root of Vim source, above src directory)
>> and try to lookup tags, I get
>>
>> E432: Tags file not sorted: tags
>>
>> I have 'tagbsearch' turned on. I have been using the same options to
>> generate tags file on other sources for a long time and Vim doesn't
>> complain. Even with the above error, it seems to be able to locate for a
>> few tags that I tried.
>>
>> I have ctags version 5.7 and Vim version 7.1 (GA). Has anyone else
>> noticed this? If not, what is that I am missing in my settings?
>>
>
> :set ignorecase

I forgot about this settings, thanks for mentioning. I already have
'ignorecase' and 'smartcase' turned on, so what other settings matter?
Here is a brief version information, in case it matters:

VIM - Vi IMproved 7.1 (2007 May 12, compiled May 12 2007 14:19:39)
MS-Windows 32 bit GUI version with OLE support
Compiled by Bram@KIBAALE
Big version with GUI. Features included (+) or not (-):


--
Thanks,
Hari

Tony Mechelynck

unread,
Oct 4, 2007, 4:45:11 PM10/4/07
to vim...@googlegroups.com

Windows 7.1.0

I've scanned the patches' README for /tag/ and /ignorecase/ but found nothing
conclusive (2 hits but didn't look very relevant). Yet, who knows? There is a
pre-compiled 7.1.130 at
https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721
-- click the clipboard-like icon between the version and the date to view the
":version" listing.

My Exuberant ctags is version 5.6 so I guess yours isn't outdated ;-)

As a last resort, you may try sorting the tagfile yourself, but make sure that
the !_TAG_FILE_SORTED header has the proper value (between hard tabs): 0 = no,
1 = yes, 2 = foldcase. After the second tab I see a comment between slashes.


Best regards,
Tony.
--
" ... I told my doctor I got all the exercise I needed being a
pallbearer for all my friends who run and do exercises!"
-- Winston Churchill

Reply all
Reply to author
Forward
0 new messages