Coder Social home page Coder Social logo

gogtags's People

Contributors

chanderg avatar juntaki avatar thatsdone avatar whatacold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gogtags's Issues

gogtags needs to be build with CGO_ENABLED=1

For gogtags to work, it needs to be built with CGO_ENABLE set to 1, or else it does not work (exists with non-zero) with the following message printed out:

Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

To build gogtags in verbose mode:

cd <WHEREVER_YOU_GIT_CLONED_GOGTAGS>/src/github.com/juntaki/gogtags ;
export CGO_ENABLED=1 ;
go build -x ;
go install -x ;

gogtags does not detect function declarations

Hi,
I noticed that currently gogtags does not detect type declarations such as 'type XXX struct {...}'.

I think by adding '*ast.TypeSpec' handling like below, we can support it.

thatsdone@0d62368

Sorry, I'm not so familiar with golang and my patch above is too novice hack.

GTAGS seems corrupted

Hi, could you help me please?

I am using Ubuntu 19.04,

  1. installed gogtags with go get ...
  2. GO_PATH is ok, works weel,
  3. GNU Global is already installed as I use it in C dev.
  4. In a demo Go project with a main.go and a demo() string {} function I run gogtags
  5. GTAGS and others are created, seems to be correct
  6. After using global -x demo, it says: GTAGS seems corrupted.

I am using GNU GLOBAL 6.6.3 with Berkley DB 1.85

Could you help me to solve this issue?

Failed to install gogtags

Hi,

I failed to install this command on my linux box, here is the output:

$ go install github.com/juntaki/gogtags@latest
go: downloading github.com/juntaki/gogtags v0.0.0-20220107155549-cd24514e7564
go: downloading github.com/mattn/go-sqlite3 v1.9.0
go: downloading github.com/pkg/errors v0.8.0
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:121469:10: warning: function may return address of local variable [-Wreturn-local-addr]
121469 |   return pNew;
       |          ^~~~
sqlite3-binding.c:121431:10: note: declared here
121431 |   Select standin;
       |          ^~~~~~~

$ echo $?
0

Any idea why is that? thanks!

Killed: 9?

gogtags dies with the cryptic message "Killed: 9"?

go get -f -t -u github.com/juntaki/gogtags
gogtags -v
Killed: 9

Exits when encountering errors

Faced this problem when running in large repos with references to files that don't exist or badly formed. Once gogtags encounters these, it exits then and there instead of ignoring those files and proceeding on.

Have solved this here: ChanderG@7e57ea3

If there is interest, I can polish it up and submit a PR.

Bug: Get signal SIGSEGV

goroutine 1 [running]:
main.do.func1(0xc0000d4d40, 0x32, 0x0, 0x0, 0x696e80, 0xc00009ad20, 0x0, 0x0)
        /home/beardad/.local/go/pkg/mod/github.com/juntaki/[email protected]/main.go:49 +0x4c
path/filepath.walk(0xc0000aee10, 0x2e, 0x69a188, 0xc000110820, 0xc000105ee8, 0x0, 0x0)
        /usr/lib/go/src/path/filepath/path.go:434 +0x226
path/filepath.walk(0xc0000ae570, 0x26, 0x69a188, 0xc00009dba0, 0xc000105ee8, 0x0, 0x0)
        /usr/lib/go/src/path/filepath/path.go:438 +0x31b
path/filepath.walk(0xc0000ae060, 0x20, 0x69a188, 0xc00009d110, 0xc000105ee8, 0x0, 0x20)
        /usr/lib/go/src/path/filepath/path.go:438 +0x31b
path/filepath.Walk(0xc0000ae060, 0x20, 0xc00004eee8, 0xc00004ef00, 0x505255)
        /usr/lib/go/src/path/filepath/path.go:501 +0x113
main.do(0xc0000ae060, 0x20, 0xc0000ae060, 0x20)
        /home/beardad/.local/go/pkg/mod/github.com/juntaki/[email protected]/main.go:48 +0xeb
main.main()
        /home/beardad/.local/go/pkg/mod/github.com/juntaki/[email protected]/main.go:35 +0x1e5

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.