Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VGO modules internal packages are not recognised #28661

Closed
Macilias opened this issue Nov 8, 2018 · 2 comments
Closed

VGO modules internal packages are not recognised #28661

Macilias opened this issue Nov 8, 2018 · 2 comments

Comments

@Macilias
Copy link

Macilias commented Nov 8, 2018

What version of Go are you using (go version)?

$ go version
go version go1.11.2 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/mniemczyk/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/mniemczyk/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/opt/go/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3k/0437mzfx1qxcc3j5p9pqmytm0000gn/T/go-build743254889=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Try to use own packages within GoLand .

https://play.golang.org/p/CfJlS2WZQMx

What did you expect to see?

Hello, world.
Hello from fooHello from foo

and correct syntax highlighting in goland

What did you see instead?

"can not resolve directory "github.com/you/hello/foo"
in imports

here is my go.mod file:
module github.com/you/hello

require rsc.io/quote v1.5.2

@Macilias
Copy link
Author

Macilias commented Nov 9, 2018

actually fixed the problem by enabling the checkbox
[X] Enable Go Modules (vgo) integration
beneath:
Settings/Go/Go Modul (vgo)

Actually I think its a but that it has not been enabled automatically, since project contains go.mod and go.sum.

@Macilias Macilias closed this as completed Nov 9, 2018
@agnivade
Copy link
Contributor

agnivade commented Nov 9, 2018

That is a bug with GoLand. This bug tracker is for the Go programming language.

@golang golang locked and limited conversation to collaborators Nov 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants