go-plus
go-plus copied to clipboard
autocomplet doesn't work after updating go/goplus/atom
Prerequisites
- [ x] Have you tried launching
atom .
from the terminal in your project's directory? - [ x] Have you verified the output from
go env
is correct? If it is, please include the output in this issue. - [x ] Have you updated Atom to the latest version?
- [ ] Have you tried using Atom Beta, which can be run side-by-side with Atom Stable? Is the behavior the same, or different?
- [x ] Have you updated your Atom packages to the latest versions?
- [x ] Have you read the FAQ?
- [x ] Have you searched the issues to see if others are experiencing the same issue?
Description
Auto complet doesn't work for imported packages as well as locally created packages outside of the current package and the default libs.
For some types it will also return(*invalid type)
Output from atom -v && apm -v
Atom : 1.47.0 Electron: 5.0.13 Chrome : 73.0.3683.121 Node : 12.0.0 apm 2.4.5 npm 6.2.0 node 10.2.1 x64 atom 1.47.0 python 2.7.10 git 2.15.0
Output From go env
[GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/admin/Library/Caches/go-build" GOENV="/Users/admin/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/admin/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" AR="ar" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/Users/admin/Desktop/projects/sessions/sessions-backend/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/10/5z9kjz7s5zlfttp87b79ntp00000gn/T/go-build259235079=/tmp/go-build -gno-record-gcc-switches -fno-common"]
Steps to Reproduce
Seems the have happened after updating go / atom / goplus to the latest versions.
I've tried : -reinstalling go code -reinstalling goplus -https://github.com/joefitzgerald/go-plus/issues/872#issuecomment-471018417 -https://github.com/joefitzgerald/go-plus/wiki/FAQ
This command "gocode set autobuild true" provided by @joefitzgerald in another issue doesn't seem to work with gocode anymore.
The only way I've figured out how to get it to work is:
- Open atom. Let go-plus finish updating everything. I wish this could be turned off.
- go get -u github.com/stamblerre/gocode
- Kill the current gocode daemon
- Restart it with the new one.
Unfortunately, I have to do this every time I restart atom. I haven't figured out how to get go-plus to get stamblerre's fork of gocode, or how to keep it from updating everytime I re-open atom.
Ah, my issue is because I'm developing using modules. github.com/mdempsky/gocode doesn't support them, github.com/stamblerre/gocode does.