I recently installed go and the vscode go extension on my machine running Ubuntu 20.04. Everything works fine but there's one bug I cannot solve. When I create a new .go file I get the following error. However when I save the file, restart vscode, the error goes away and everything is fine.
The code I'm writing is a basic hello world program. Even when the error is there and I run go run or go build everything works fine. Its just an annoyance when creating a new file.
package main
import "fmt"
func foo() {
fmt.Println("Hello world!")
}
If I run echo $GOPATH or echo $GOROOT in the terminal they both blank. Additionally when I run the go env command they defined as follow: GOROOT="/usr/local/go" and GOPATH="/home/chadley/go" (chadley being username)
I have changed nothing in the extension settings or any other environment variables.
