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

GoLand/IntelliJ Idea detecting the project directory as a child directory for a project #43352

Closed
subhrangshu opened this issue Dec 23, 2020 · 1 comment

Comments

@subhrangshu
Copy link

subhrangshu commented Dec 23, 2020

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

$ go version
go version go1.15.6 linux/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
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

@ALTree
Copy link
Member

ALTree commented Dec 23, 2020

You didn't fill the template but judging by the issue title this is a GoLand bug, so please report it to the IDE issue tracker.

@ALTree ALTree closed this as completed Dec 23, 2020
@subhrangshu 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
@golang golang locked and limited conversation to collaborators Dec 23, 2021
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