
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.
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.
Most helpful comment
By default, go-langserver does not initialize for completion. You may turn on completion with arg
--gocodecompletion. Namely, configure:P.S. The error in the console shows that
go-langservercrashed. 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-langserverdidn't gracefully deal with the situation.