bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems running htags for files with long lines.


From: Tero Saarni
Subject: Problems running htags for files with long lines.
Date: Fri, 6 Jan 2006 00:01:04 +0200

Hi,

I played a little with CVS version of Global and noticed a small
problem when running htags for a file with very long line e.g.:

  private static final long[] crc_table = { 0x00000000L, 0x77073096L, ....

this line contained several hundreds of characters and htags
dies with following error:

  gtags: aprimary key too long.
  htags: 'global -xns ".*" | gtags --sort --unique' failed.

It seems to be caused by gtags' --sort parameter.

tagsort.c:path_sort() calls dbop.c:dbop_put() with the whole
line as "name" parameter.  One can easily imagine people
writing arbitrary length lines so I suppose increasing
MAXKEYLEN will not guarantee every file being processable...

--
Tero




reply via email to

[Prev in Thread] Current Thread [Next in Thread]