Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

autocomplet doesn't work after updating go/goplus/atom #1026

Open
1 task
thejdavid opened this issue May 24, 2020 · 2 comments
Open
1 task

autocomplet doesn't work after updating go/goplus/atom #1026

thejdavid opened this issue May 24, 2020 · 2 comments

Comments

@thejdavid
Copy link

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
-#872 (comment)
-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.

@robertgass
Copy link

The only way I've figured out how to get it to work is:

  1. Open atom. Let go-plus finish updating everything. I wish this could be turned off.
  2. go get -u github.com/stamblerre/gocode
  3. Kill the current gocode daemon
  4. 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.

@robertgass
Copy link

Ah, my issue is because I'm developing using modules. github.com/mdempsky/gocode doesn't support them, github.com/stamblerre/gocode does.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants