/ go Public
x/tools/gopls: document how to run the daemon in docker #41332
Issues related to the Go language server, gopls.
This label describes issues relating to any tools in the x/tools repository.
What version of Go are you using (
Does this issue reproduce with the latest release?
YES recent version of gopls 0.4.4
What operating system and processor architecture are you using (
What did you do?
I am trying to setup gopls for neovim with the builtin lsp. But I have a dependency on linux to build the source I cannot build it on mac. So I tried setting up docker gopls server to listen at 7050.
I opened nvim and it throws the same build error as the one I got on mac.
I initially tried this docker setup for a simple hello world example and that worked. But now I am not sure whether it actually compiled inside docker and communicated the results outside or it just compiled in mac itself.
Gopls listen inside docker doesn't give any logs other than connected and exited (atleast when I run docker logs ).
PS: I execed into docker and built the source and it worked as expected.
What did you expect to see?
I expect gopls -remote to build the source inside docker and give back the results to the client.
What did you see instead?
I see the same build error which I got on mac, which might mean gopls is not forwarding the commands to the remote and doing it locally.
The text was updated successfully, but these errors were encountered: