Skip to content

gopls warn that it cannot read env variables GOROOT, GOPATH, GOMODCACHE #47

@fedxyz

Description

@fedxyz

Hi,

when using the neovim snap packages (ubuntu) and lsp when starting nvim gopls give me messages like this one

[gopls] identify GOROOT dir cmd failed with code 0: { "go", "env", "GOROOT" }

same message for GOPATH and GOMODCACHE. and I have to confirm these messages on start and every time I open a new (go) file.

Using neovim from a classic installation (same version) works with no warnings.

go is installed via snap package too, gopls is installed in go dir in my home /home/myuser/go/bin/gopls.

Thanks for the help.

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