|
From: | Shigio YAMAGUCHI |
Subject: | Re: GTAGSLIBPATH definition search |
Date: | Wed, 25 Feb 2015 10:18:10 +0900 |
Hi again,
Yes, I can open the file just fine. The warning seems to be about unexisting file in the project directory. It seems to me that first the library file is considered to be in the project root (thus the warning "./boost/....") and then the path of the library is checked (relative to the project root it is ../../../../usr/include/boost/.....). Perhaps global tries to open ./boost/.... instead of ../../../../usr/include/boost/.....?
Thanks,
Regards,
Pavel
From: Shigio YAMAGUCHI
Sent: 25.2.2015 г. 1:26
To: Pavel Nedev
Cc: address@hidden
Subject: Re: GTAGSLIBPATH definition searchHi,It is not the expected behavior at least.It seems that global(1) says "Warning: source file 'xxx.cpp' is not available."Can you read the file?$ global -dxMT resolveresolve 59 ../../../../usr/include/boost/asio/detail/resolver_service.hpp...$ cat ../../../../usr/include/boost/asio/detail/resolver_service.hppRegardsShigio2015-02-25 2:23 GMT+09:00 Pavel Nedev <address@hidden>:Hi,
Thank you for GTags, it's a great and very powerful tool!
I stumbled upon something recently, I do not know if this is a bug or just the expected behavior. Here is the scenario:
I make tags for my libraries includes (/usr/include). I set GTAGSLIBPATH to /usr/include.
I make tags for my project.
When I execute
global -dxMT FindReference
I get the definition of the 'FindReference' function (that's from my project) in the 'x' (ctags) format:
FindReference 541 src/GTags.cpp void FindReference()
When I execute
global -dxMT resolve
I get the following results for Boost 'resolve' function (from /usr/include):
Warning: source file './boost/asio/detail/resolver_service.hpp' is not available.
resolve 59 ../../../../usr/include/boost/asio/detail/resolver_service.hpp
resolve 91 ../../../../usr/include/boost/asio/detail/resolver_service.hpp
Warning: source file './boost/asio/detail/winrt_resolver_service.hpp' is not available.
resolve 93 ../../../../usr/include/boost/asio/detail/winrt_resolver_service.hpp
resolve 154 ../../../../usr/include/boost/asio/detail/winrt_resolver_service.hpp
Warning: source file './boost/asio/ip/basic_resolver.hpp' is not available.
resolve 99 ../../../../usr/include/boost/asio/ip/basic_resolver.hpp
resolve 124 ../../../../usr/include/boost/asio/ip/basic_resolver.hpp
resolve 188 ../../../../usr/include/boost/asio/ip/basic_resolver.hpp
resolve 215 ../../../../usr/include/boost/asio/ip/basic_resolver.hpp
Warning: source file './boost/iostreams/detail/resolve.hpp' is not available.
resolve 63 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 83 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 88 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 93 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 98 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 102 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 108 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 116 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 129 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 134 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 139 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 144 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 148 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 153 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 184 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 192 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 200 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 209 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 217 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
resolve 225 ../../../../usr/include/boost/iostreams/detail/resolve.hpp
Warning: source file './boost/scope_exit.hpp' is not available.
resolve 88 ../../../../usr/include/boost/scope_exit.hpp
resolve 94 ../../../../usr/include/boost/scope_exit.hpp
This is not exactly in 'x' (ctags) format - the match line from the file is actually missing.
Is this expected or am I doing the search the wrong way?
Thank you!
BR,
Pavel
_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global
--Shigio YAMAGUCHI <address@hidden>PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3[The entire original message is not included.]
[Prev in Thread] | Current Thread | [Next in Thread] |