Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Default goroot/gopath ignored by vscode-go #873

@concatime

Description

@concatime

Hi.
Cannot find "go" binary. Update PATH or GOROOT appropriately
Set GOPATH environment variable and restart VS Code or set GOPATH in Workspace settings

It seems that this extension does not search for default goroot and gopath in Windows. In fact, by default, the goroot is set to c:/go and %userprofile%/go and this extension should search automatically search for go in c:/go without adding custom goroot or add go to path. Moreover, it should consider that gopath is, by default, and if not overridden by local settings or environment variables, equal to %userprofile%/go .

C:\go\bin>go env

set GOPATH=C:\Users\USERNAME\go
set GOROOT=c:\go

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions