{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/1687","repository_url":"https://api.github.com/repos/fatih/vim-go","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/1687/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/1687/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/1687/events","html_url":"https://github.com/fatih/vim-go/issues/1687","id":300553701,"number":1687,"title":"GoDef unable to jump definition in other files in macOS","user":{"login":"phye","id":3255399,"avatar_url":"https://avatars0.githubusercontent.com/u/3255399?v=4","gravatar_id":"","url":"https://api.github.com/users/phye","html_url":"https://github.com/phye","followers_url":"https://api.github.com/users/phye/followers","following_url":"https://api.github.com/users/phye/following{/other_user}","gists_url":"https://api.github.com/users/phye/gists{/gist_id}","starred_url":"https://api.github.com/users/phye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phye/subscriptions","organizations_url":"https://api.github.com/users/phye/orgs","repos_url":"https://api.github.com/users/phye/repos","events_url":"https://api.github.com/users/phye/events{/privacy}","received_events_url":"https://api.github.com/users/phye/received_events","type":"User","site_admin":false},"labels":[{"id":614555589,"url":"https://api.github.com/repos/fatih/vim-go/labels/waiting-for-info","name":"waiting-for-info","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-27T09:32:18Z","updated_at":"2018-03-03T06:34:19Z","closed_at":null,"author_association":"NONE","body":"### What did you do? (required. The issue will be **closed** when not provided.)\r\nInstalled vim-go under `~/.vim/bundle` via pathogen, when calling :GoDef at some symbol, say `net/dial.go:367` (go version go1.10 darwin/amd64) and call `:GoDef` (or `gd`, `<c-]>`), vim-go does not jump to the correct place as expected. \r\n\r\n```go\r\n365     case *UDPAddr:\r\n366         la, _ := la.(*UDPAddr)\r\n367         c, err = dialUDP(ctx.network, la, ra, deadline)\r\n```\r\n\r\n### What did you expect to happen?\r\nvim-go will jump to one of the definitions in udpsock_posix.go or udpsock_plan9.go.\r\n\r\nVerified godef behavior, and it is indeed reporting something\r\n```sh\r\n$ godef -f dial.go dialUDP      \r\nudpsock_plan9.go:123:6\r\n```\r\n\r\n### What happened instead?\r\nJump did not occur, and an error message in red is displayed:\r\n\r\n    vim-go: /Volumes/gitws/digo\r\n\r\n### Configuration (**MUST** fill this out):\r\n\r\n* Vim version (first two lines from `:version`):\r\nVIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 27 2018 17:14:55)\r\nmacOS version\r\n\r\n* Go version (`go version`):\r\ngo version go1.10 darwin/amd64\r\n* Go environment (`go env`):\r\n```sh\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/Users/phye/Library/Caches/go-build\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"darwin\"\r\nGOOS=\"darwin\"\r\nGOPATH=\"/Volumes/gitws/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/local/Cellar/go/1.10/libexec\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/local/Cellar/go/1.10/libexec/pkg/tool/darwin_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"clang\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/ch/0fcsjfy14kd6jgpzwky0ggvm0000gn/T/go-build289365182=/tmp/go-build -gno-record-gcc-switches -fno-common\"\r\n\r\n```\r\n* vim-go version:\r\nCommit id: 39beabec0d20d8bd03e1d0e3d38c36029ba209c9\r\n\r\n* `vimrc` you used to reproduce (use a *minimal* vimrc with other plugins disabled; do not link to a 2,000 line vimrc):\r\nOnly one line:\r\n```vimrc\r\ncall pathogen#infect()\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/370123963","html_url":"https://github.com/fatih/vim-go/issues/1687#issuecomment-370123963","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/1687","id":370123963,"user":{"login":"phye","id":3255399,"avatar_url":"https://avatars0.githubusercontent.com/u/3255399?v=4","gravatar_id":"","url":"https://api.github.com/users/phye","html_url":"https://github.com/phye","followers_url":"https://api.github.com/users/phye/followers","following_url":"https://api.github.com/users/phye/following{/other_user}","gists_url":"https://api.github.com/users/phye/gists{/gist_id}","starred_url":"https://api.github.com/users/phye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phye/subscriptions","organizations_url":"https://api.github.com/users/phye/orgs","repos_url":"https://api.github.com/users/phye/repos","events_url":"https://api.github.com/users/phye/events{/privacy}","received_events_url":"https://api.github.com/users/phye/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T06:34:19Z","updated_at":"2018-03-03T06:34:19Z","author_association":"NONE","body":"@Carpetsmoker Thanks for investigation!\r\nI've made some silly mistake to mix a go 1.05 installation with a go 1.10 installation, i.e., I'm indeed not using the correct sources... Also, the go std libraries may be in chaos. \r\n\r\nAfter cleaned up the golang environment and freshed installed a new 1.10 go installation, `:GoDef` works properly now!\r\n\r\nThanks for your help."}}
{"actor":{"display_login":"phye"}}