Closed shizhz closed 3 years ago
Those errors appear to be from lsp-mode and something that has hooked up golangci-lint to Flycheck.
Those are not part of the go-mode package. go-mode works fine on single files.
Yes it's not an issue of go-mode, it's the limitation of LS which needs a workspace to work correctly. I've asked help from ls-mode community and the workaround could be:
The key is that you need to mock a workspace environment to make gopls happy. Hope this could help those who has the same problem as me.
Hi,
Is it possible to make go-mode work for a single go file or buffer which is outside any project? Currently I'll get the following error message:
Thanks.