sublimelsp / LSP-gopls

Golang support for Sublime's LSP plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: The gopls server has crashed

agent-yandex opened this issue · comments

Hi there, after install LSP-gopls I have this error. I haven't changed anything in the settings, could that be it?
Снимок экрана 2023-11-09 в 03 31 48

This is not very helpful. Please attermpt to use the LSP: Troubleshoot Language Server and see if any errors are shown

On my mac gopls can not run and I still don't know why (maybe new go version don't work good on my m1 mac). But I just install new gopls from brew brew install gopls and replace start command in lsp-gopls settings
Снимок экрана 2023-11-09 в 11 03 26

You should also set “manageGoplsBinary” to false

I have tried this on my m1 mac and it didn't crash. I didn't have go installed so went to https://go.dev/doc/install and installed latest version first.

Maybe try updating your go to latest version first.

I updated the go version, but the error when running gopls still remains
Снимок экрана 2023-11-10 в 02 41 30

Some googling says that it can be due to limited virtual memory or just low RAM.

For example: https://stackoverflow.com/questions/18549324/golang-panic-before-malloc-heap-initialized

@agent-yandex definitely take this to the gopls repository. As clearly this is not an issue with this plugin. Thanks !