-
-
Notifications
You must be signed in to change notification settings - Fork 958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with gopls #664
Comments
It looks like you need to pass extra arguments to the command, but I'm not sure. |
adding under gopls in coc-settings.json "args": ["-logfile=lano.log"], I get above error messages |
@lanox try this
|
@taigacute tried that as well, no luck, that was the first thing I did. After digging more through it, it seems that only works if you are in your GOPATH. If I am navigate to my |
@lanox it surpport go mod project you should |
this is a question i said to @chemzqm . the |
Need output of language server https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel |
I am little confused with gopls, if I open my existing project it seems that autocompletion works, however if I start new project and start typing code, autocompletion will not work. |
@lanox if your project is a go mod pro you should |
@taigacute that is the interesting part, it is not this is just a normal folder with a .go file in it. |
It might requires a correct workspaceFolder to work ,check out https://github.com/neoclide/coc.nvim/wiki/Using-workspaceFolders |
ah, I am giving up on gopls, its just pain, and random. |
this is my settings for gopls.
EDIT: try using https://github.com/saibing/tools (it's just gopls with some edits the bingo developer did on the code) |
Has anyone had any luck setting up any of GO language servers. I cant seem to get auto completion working for gopls or go-langserver. Can someone please help me out, or help me troubleshoot it. |
I managed to get it working with @alzedd's advice but it doesn't show any completion till you hit |
@Akin909 i use my config not @alzedd 's advice. |
It seems to be working okay for me, however no floating windows, but I think that is due to gopls issue. @taigacute to be honest with you screenshot you are showing only snippets, at least when I looked at you config you had stars if the definition is coming from snippets. |
@lanox not snippets. do you see the |
Yep I agree, i did not see that, however I did see in your config that your snippets also have stars, so I just assumed. Never assume I guess. |
@lanox did you get it working with upstream gopls? It'd be great if coc.nvim didn't depend on the fork. Installing from the fork is a pain and it breaks all sorts of things with |
@luan no not really, its sporadic, but I haven't tried it in a while. |
@lanox workAround: add the full path to your gopls in the cocConfig json... here:
|
Thanks @ucef29 your suggestion "command": "[full-path-to-your-gopls-binary]/gopls" it works for me. |
There's the coc-go extension too, which is even nicer and easier to use. |
Hi
I am not sure if this is a issue or maybe just me not knowing how to configure it, I am using go1.12.1 darwin/amd64.
I am trying to configure gopls in coc-settings.json
I have also install gopls as per this instructions, https://github.com/golang/go/wiki/gopls
go get -u golang.org/x/tools/cmd/gopls
however autocompletion is not working, If i change it to go-langserver it's working fine.
if you could assist would be greatly appreciated.
The text was updated successfully, but these errors were encountered: