juntaki / gogtags Goto Github PK
View Code? Open in Web Editor NEWGNU global compatible source code tagging for golang
Home Page: https://juntaki.com/blog/gogtags/
License: MIT License
GNU global compatible source code tagging for golang
Home Page: https://juntaki.com/blog/gogtags/
License: MIT License
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 ;
Are there any plans to support the incremental updating as well as the --single-update
CLI option in gtags?
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.
Sorry, I'm not so familiar with golang and my patch above is too novice hack.
Hi, could you help me please?
I am using Ubuntu 19.04,
I am using GNU GLOBAL 6.6.3 with Berkley DB 1.85
Could you help me to solve this issue?
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!
When I try to use global from Emacs I get an error that GPATH file is not found.
gogtags dies with the cryptic message "Killed: 9"?
go get -f -t -u github.com/juntaki/gogtags
gogtags -v
Killed: 9
Can I configure gtags.conf use gogtags?
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.