You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/snap/go/6745/bin"
GOCACHE="/home/subhrangshu/.cache/go-build"
GOENV="/home/subhrangshu/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/subhrangshu/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/subhrangshu/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/6745"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/6745/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
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-build515191703=/tmp/go-build -gno-record-gcc-switches"
GOROOT/bin/go version: go version go1.15.6 linux/amd64
GOROOT/bin/go tool compile -V: compile version go1.15.6
uname -sr: Linux 5.0.0-32-generic
Distributor ID: LinuxMint
Description: Linux Mint 19.3 Tricia
Release: 19.3
Codename: tricia
/lib/x86_64-linux-gnu/libc.so.6: GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1.3) stable release version 2.27.
gdb --version: GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
What did you do?
My file structure is:
LiteSpace
|__PrimaryController
| |__controller.go
|__main.go
|__go.mod
Now my code is:
package main
import "LiteSpace/PrimaryController"
func main() {
PrimaryController.Controller()
}```
This gives no error but GoLand/IntelliJ Idea IDEs cannot detect $PrimaryController$
But GoLand can detect:
package main
import "../LiteSpace/PrimaryController"
func main() {
PrimaryController.Controller()
}```
However, this is logically wrong and program not compiling.
Why is this happening?
What did you expect to see?
Auto-completion of codes
What did you see instead?
IDE cannot detect the package and search for this in GOPATH
The text was updated successfully, but these errors were encountered:
subhrangshu
changed the title
GoLand detecting the project directory as a child directory for a project
GoLand/IntelliJ Idea detecting the project directory as a child directory for a project
Dec 23, 2020
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
My file structure is:
LiteSpace
|__PrimaryController
| |__controller.go
|__main.go
|__go.mod
Now my code is:
package main
import "../LiteSpace/PrimaryController"
func main() {
PrimaryController.Controller()
}```
However, this is logically wrong and program not compiling.
Why is this happening?
What did you expect to see?
Auto-completion of codes
What did you see instead?
IDE cannot detect the package and search for this in GOPATH
The text was updated successfully, but these errors were encountered: