x/tools/gopls: make -remote=auto resilient to changing TMPDIR #41266
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Recently, each neovim/coc.nvim process has started assigning a unique
$TMPDIR
(e.g./tmp/nvimPuWNII
). This breaks the current daemon discovery (when using-remote=auto
), which looks for a deterministic unix domain socket path inside os.TempDir().We should either make
-remote=auto
behave independently of os.TempDir(), or (more feasibly) provide the means to work-around it without having to manage the daemon manually. Something like-remote.tempdir=/tmp
, though I may have to rethink the way that the remote is parameterized, as we already have a lot of-remote.*
flags.Reported here: https://groups.google.com/g/golang-tools/c/y3OQNIudLzQ/m/7JYRgEZSAgAJ
The text was updated successfully, but these errors were encountered: