bug-global
[Top][All Lists]
Advanced

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

gtags can't index a file in another source tree


From: Cyril Scetbon
Subject: gtags can't index a file in another source tree
Date: Fri, 20 Aug 2010 16:34:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6

Hi,

I saw in your source code that you check that the current path is a parent of the files indexed. However, I don't really understand why you check it :(

For example, I want to index the file /var/tmp/dbxml-2.5.16/dbxml/include/dbxml/XmlValue.hpp from my dir /root. gtags should not care about it ! I'm providing the dbpath too, so what's the matter ??

mkdir -p ~/gtags/src/dbxml-2.5.16

echo /var/tmp/dbxml-2.5.16/dbxml/include/dbxml/XmlValue.hpp|gtags -v -f - ~/gtags/src/dbxml-2.5.16
[Fri Aug 20 07:30:45 PDT 2010] Gtags started.
 Using default configuration.
 Using '-' as a file list.
[Fri Aug 20 07:30:45 PDT 2010] Creating 'GTAGS' and 'GRTAGS'.
normalize :
path=/var/tmp/dbxml-2.5.16/dbxml/include/dbxml/XmlValue.hpp
rootdir=/root/
cwddir=/root
buf=/var/tmp/dbxml-2.5.16/dbxml/include/dbxml/XmlValue.hpp
Warning: '/var/tmp/dbxml-2.5.16/dbxml/include/dbxml/XmlValue.hpp' is out of source tree. (Ignored)
[Fri Aug 20 07:30:45 PDT 2010] Done.

Regards

--
Cyril SCETBON




reply via email to

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