moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.18k stars 533 forks source link

go-plus atom package fail with gvm #314

Closed schweigert closed 4 years ago

schweigert commented 5 years ago

Hi guys,

I have a problem using GVM with the go-plus package in the atom editor.

The compiler is running on the terminal, but the standard features inside the atom do not work.

When saving a .go file it returns the following error:

main.go: 10: 2: can not find package "github.com/schweigert/mga/libraries/metric" in any of:
/home/marlonhs/.gvm/gos/go1.11/src/github.com/schweigert/mga/libraries/metric (from $ GOROOT)
/home/marlonhs/go/src/github.com/schweigert/mga/libraries/metric (from $ GOPATH)

Envs

In the editor, the envs are:

$ go version
go version go1.11 linux/amd64

$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/marlonhs/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/marlonhs/go"
GOPROXY=""
GORACE=""
GOROOT="/home/marlonhs/.gvm/gos/go1.11"
GOTMPDIR=""
GOTOOLDIR="/home/marlonhs/.gvm/gos/go1.11/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build702861008=/tmp/go-build -gno-record-gcc-switches"

In terminal:

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/marlonhs/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/marlonhs/.gvm/pkgsets/go1.11/global"
GOPROXY=""
GORACE=""
GOROOT="/home/marlonhs/.gvm/gos/go1.11"
GOTMPDIR=""
GOTOOLDIR="/home/marlonhs/.gvm/gos/go1.11/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build881652205=/tmp/go-build -gno-record-gcc-switches"
BenKnigge commented 4 years ago

You may want to open this in an atom issue tracker.

schweigert commented 4 years ago

I think this problem is the plugin for the atom, because the editor works normally. The plugin cannot find the compiler and extensions to work.

BenKnigge commented 4 years ago

You may want to open this same issue over at https://github.com/joefitzgerald/go-plus