Oni: Golang completion

Created on 6 Dec 2017  路  6Comments  路  Source: onivim/oni


First of all, thank you for oni!

I wasn't able to turn on auto-completion for golang, in spite of I've go-langserver available in my $PATH and have tried following settings.

"golang.langServerCommand": "/my_full_path_to/go-langserver",
"language.go.languageServer.command": "/my_full_path_to/go-langserver",
"language.golang.languageServer.command": "/my_full_path_to/go-langserver",

What I did wrong?
PS: I'm using mac version.

bug language-integration

All 6 comments

Are you building from master or using the latest release (0.2.18)?
If its the latest release, its possible you are having the same issue as #1061, which should now be fixed on master.

go-langserver does not support completion yet (see sourcegraph/go-langserver#201). For now, you may use gocode for completion.

I recommend using https://github.com/fatih/vim-go which has integration with auto complete using deoplete (with deoplete-go, which uses gocode). I have been using that and works great.

I used latest release (0.2.18). Thanks for recommendations.

@vbauerster

go-langserver support completion now.

Thanks Contextualist's outstanding job

Looks like this is working now. I'll close this out - feel free to open a new issue if there are still problems here.

Was this page helpful?
0 / 5 - 0 ratings