go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 570 forks source link

Imports not resolved from $GOPATH/src if vendor directory is present #2868

Closed steelbrain closed 7 years ago

steelbrain commented 7 years ago

Here's the tree of my setup

$GOROOT
├── bin
├── pkg
│   └── darwin_amd64
└── src
    ├── moneza_db
    └── moneza_users
zolotov commented 7 years ago

Please show screenshot of Settings | Languages & Frameworks | Go | Go Libraries

steelbrain commented 7 years ago

Thanks @zolotov that was it. It was using the global GOPATH instead of the one defined locally (based on my shell config). I forgot that I didn't start IntelliJ Idea from the CLI

Thanks again 👍