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
autocompletion does not appear to be working and my import is being flagged as "could not import..."
A clear and concise description of what you expected to happen.
no errors, working autocompletion
Steps to reproduce the behavior:
This was a fresh vscode install and a brand new go project.
scottjg@MacBook-Pro server % cat go.mod
module github.com/rewatchtv/remote/server
go 1.14
require github.com/gorilla/websocket v1.4.2
scottjg@MacBook-Pro server % cat main.go
package main
import (
"flag"
"github.com/gorilla/websocket"
)
var addr = flag.String("addr", "localhost:8080", "http service address")
var upgrader = websocket.Upgrader{} // use default options
func main() {
}
after creating the project, and building it with go build (so dependencies are downloaded), i installed the go extension and chose to install all the tools when prompted by dialogs in vscode. I don't have a GOPATH set, but this is a go module project, so i don't think it's needed? these are all default vscode settings set by the Go extension.
The text was updated successfully, but these errors were encountered:
nevermind... eventually a dialog popped up saying that for go module projects to work, you have to open an editor window with the go.mod file at the root. weird that it didn't appear until i started randomly changing preferences, but it seems to be working.
What version of Go, VS Code & VS Code Go extension are you using?
Run
go version
to get version of GoRun
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiderscd9ea6488829f560dc949a8b2fb789f3cdc05f5d
x64
Check your installed extensions to get the version of the VS Code Go extension
Run
go env
to get the go development environment detailsShare the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
A clear and concise description of what the bug.
autocompletion does not appear to be working and my import is being flagged as "could not import..."
A clear and concise description of what you expected to happen.
no errors, working autocompletion
Steps to reproduce the behavior:
This was a fresh vscode install and a brand new go project.
after creating the project, and building it with
go build
(so dependencies are downloaded), i installed the go extension and chose to install all the tools when prompted by dialogs in vscode. I don't have a GOPATH set, but this is a go module project, so i don't think it's needed? these are all default vscode settings set by the Go extension.The text was updated successfully, but these errors were encountered: