liteide icon indicating copy to clipboard operation
liteide copied to clipboard

go: go.mod file not found

Open dodona2 opened this issue 4 years ago • 1 comments

Please answer these questions before submitting your issue. Thanks! Please download LiteIDE latest version and test before submitting your issue. Thanks!

What version of LiteIDE are you using (LiteIDE About - Version and Build Qt Version)?

37.4

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

go version go1.16.3 linux/amd64

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

GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home//.cache/go-build" GOENV="/home//.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/usr/local/lib/golang/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/usr/local/lib/golang" GOPRIVATE="" GOPROXY="direct" GOROOT="/usr/lib/golang" GOSUMDB="off" GOTMPDIR="" GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.16.3" 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-build861013512=/tmp/go-build -gno-record-gcc-switches"

What did you do?

compile/run simple go code

If possible, provide a recipe for reproducing the error. invoking liteide, build&debugging simple go code

What did you expect to see?

successful run

What did you see instead?

go: go.mod file not found in current directory or any parent directory; see 'go help modules'

dodona2 avatar Jun 09 '21 23:06 dodona2

I found this on StackOverflow. It fixed the problem. https://stackoverflow.com/questions/66894200/go-go-mod-file-not-found-in-current-directory-or-any-parent-directory-see-go

WhitewaterDave avatar Sep 19 '21 20:09 WhitewaterDave