Coder Social home page Coder Social logo

Comments (4)

juntaki avatar juntaki commented on July 25, 2024

gogtags creates GRTAGS, GTAGS and GPATH.
Could you please give me an example of target source code for reproducing your problem?

from gogtags.

gshimansky avatar gshimansky commented on July 25, 2024

You are right, GPATH file is generated. But nevertheless global complains that it is not found. I am using global - GNU GLOBAL 5.7.1 on Ubuntu 16.04, trying to generate Go tags for this project https://github.com/intel-go/yanff . I get three files generated: GTAGS, GPATH, GRTAGS. Here's what I get:

-rw-r--r-- 1 gashiman tdc_user  20K Feb  6 07:15 GPATH
-rw-r--r-- 1 gashiman tdc_user 272K Feb  6 07:15 GRTAGS
-rw-r--r-- 1 gashiman tdc_user  64K Feb  6 07:15 GTAGS
$ global -v --result=grep --from-here=43:test/framework/main/tf.go -- RunAllTests
global: GPATH not found
$ global -f GTAGS
global: GPATH not found.

Interesting that when I run gtags command, I get four generated files: GPATH, GRTAGS, GSYMS and GTAGS instead of three that gogtags generates.

from gogtags.

juntaki avatar juntaki commented on July 25, 2024

gogtags requires GNU GLOBAL with sqlite3. Please check "GNU GLOBAL Installation for gogtags" at README.

I got the following result on intel-go/yaniff, with global 6.6.1.

juntaki@ubuntu ~/.g/g/i/yanff> gogtags
juntaki@ubuntu ~/.g/g/i/yanff> global RunAllTests
test/testsuite.go

from gogtags.

gshimansky avatar gshimansky commented on July 25, 2024

Thank you for clarification. I was sure that Ubuntu builds global with sqlite support. I built my own binary from sources and it works with gogtags now.
I will try to investigate how to submit a patch to Ubuntu to fix this.

from gogtags.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.