gopls Questions

1

gopls in neovim, using lspconfig, does not seem to be working with any go file, even one that has a .git or go.mod file. My lspconfig can be found below, and after that is a LspInfo in a .go file s...
Kovacs asked 28/10, 2022 at 3:9

2

I'm running go1.16, the latest gopls version is not compabtible with it. Confirmed it at https://github.com/golang/tools/blob/master/gopls/README.md. The installation fails with below error Install...
Gatekeeper asked 9/8, 2023 at 11:49

1

Solved

I have a golang project which includes windows-specific code. When working on this project from vscode running on macOS, I'm getting the following warning opening file getFileCreationTime_windows.g...
Molini asked 20/7, 2023 at 13:50

4

Solved

I want to be able to run and debug unit tests within VS Code using the test explorer or code lens. But in order to run my tests, I need to add this flag: -ldflags "-X google.golang.org/protobu...
Stacystadholder asked 8/9, 2022 at 10:45

1

Is there a reason, why vscode does not suggest to use f.Close()? I have gopls installed, and yesterday autocomplete worked fine Restarting vscode did not help.
Wendt asked 24/6, 2022 at 10:53
1

© 2022 - 2025 — McMap. All rights reserved.