I've done a fresh install of atom and installed go-plus package. The one feature I can't get working is the "Go To Declaration" which is why I'm still stuck in sublime land... Does anyone know if this works with golang? I't appears that I need to have ctags for my project? Whats the best way to get this going for atom? I've tried installing other packages that geverate the ctags but I don't think that helped. Has anyone got this working? What did you do?
相关问题
- Golang mongodb aggregation
- How to flatten out a nested json structure in go
- how to install private repo using glide golang
- Virtual Environment and Atom
- How to convert a string to a byte array which is c
I had goplus and it wasn't working but the godef atom package worked like a charm
apm install godef
On Ubuntu, Press ctrl-alt-g on the variable for which you want to do "go to declaration", Atom will ask if you want to install go-def, click yes, once installed it will show you a notification, after which Go to declaration works.
It was two things that got
godef
working for me:libexec
subdirectory. See below.src
,bin
, and other go-specific folders.Below is what my
bash_profile
looks like.After making this change, atom (as well as emacs) started to work
That might be related to the
godef
package, which has recently changed location.See "PR 239" (merged in 7a32e22):
That will be available in go-plus 3.4.2 (currently I see 3.4.1 in my Atom package list)
Fresh install of
Atom 1.3.3
withgo-plus 3.5.2
and it worked.By default, the shortcut is
Alt+Cmd+G
, but you can change as explained hereUpdate December, 22th:
With the latest update of
Atom (1.12.7)
andgo-plus (5.0.6)
, thehyperclick
package (v 0.0.39) is installed and CMD+click will take you to the definition