question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add support for GNU Global?

See original GitHub issue

g:Lf_Ctags doesn’t work for gtags,no matter what I set it to be,gtags or global or gtags-cscope.It seems only ctags is supported right now. Anyway,I can use cscope and just lack some fuzzy and regex things,but maybe you can enhance this great plugin?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:31 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
Yggdrootcommented, May 5, 2019

@linusboyle Now --next and --previous are available for your requirement. You can use it like this:

:Leaderf gtags --next
:Leaderf gtags --previous

Leaderf <category> [--next | --previous] , category can be any subcommand supported.

1reaction
Yggdrootcommented, Sep 20, 2019

@haihualuo

  1. gtags in foo to generate GTAGS files
  2. gtags in bar to generate GTAGS files
  3. move all foo’s GTAGS files to a new directory called “lib_foo” (previously empty, no source)
  4. export GTAGSLIBPATH=“lib_foo”
  5. Using ‘global’ from bar (with bar’s GTAGS file), we can locate symbols from foo. After unsetting GTAGSLIBPATH, we cannot. In this case, library source and GTAGS file are in different locations.

Suppose the full path of foo, bar and lib_foo are /foo, /bar and /lib_foo respectively, and the 4th step is export GTAGSLIBPATH=/lib_foo, and a function called fun() is defined in /foo/foo.c. Run global -d fun in bar, the output will be /lib_foo/foo.c but not /foo/foo.c, this is not correct, I don’t know why you said we can locate symbols from foo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GNU Global source code tagging system
Global finds locations of given symbols in C, Yacc, Java, PHP and assembly source files, and prints the path name, line number and...
Read more >
EmacsWiki: Gnu Global
The GNU GLOBAL package is highly recommended for using a single tags file, covering all files in all subdirectories, that lives at the...
Read more >
C/C++ GNU Global - Visual Studio Marketplace
GNU Global is a tagging system. There's no language service running in the background. You need to press F1 and execute Global: Rebuild...
Read more >
Compiling GNU Global with universal-ctags support
This seems to work fine and the ctags executable builds tags files as expected. Next I try to install GNU Global using the...
Read more >
GNU Global source code tagging system
GNU Global is a software which makes your hack and review efficient by adding ... Though there are a lot of tools which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found