onivim / oni

Oni: Modern Modal Editing - powered by Neovim
https://www.onivim.io
MIT License
11.34k stars 299 forks source link

go-langserver (osx) runtime error: invalid memory address #1929

Open DavidSatimeWallin opened 6 years ago

DavidSatimeWallin commented 6 years ago
skarmavbild 2018-03-26 kl 08 17 51

Since Oni didn't seem to find my $PATH correctly I tried to configure it manually with "language.go.languageServer.command": "/Users/david/.gvm/pkgsets/go1.8.5/global/bin/go-langserver", but still no luck. Only get the runtime error as shown in the attached screenshot.

Contextualist commented 6 years ago

By default, go-langserver does not initialize for completion. You may turn on completion with arg --gocodecompletion. Namely, configure:

    "language.go.languageServer.arguments": ["--gocodecompletion"],


P.S. The error in the console shows that go-langserver crashed. That's because Oni requested for completion despite go-langserver had advertised itself to be incapable to serve completion. Thus, it had not been ready. (see also #1378) On the other hand, go-langserver didn't gracefully deal with the situation.