Skip to content
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

x/tools/gopls: make -remote=auto resilient to changing TMPDIR #41266

Open
findleyr opened this issue Sep 7, 2020 · 0 comments
Open

x/tools/gopls: make -remote=auto resilient to changing TMPDIR #41266

findleyr opened this issue Sep 7, 2020 · 0 comments
Assignees
Labels

Comments

@findleyr
Copy link
Contributor

@findleyr findleyr commented Sep 7, 2020

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

@gopherbot gopherbot added this to the Unreleased milestone Sep 7, 2020
@findleyr findleyr changed the title x/tools/gopls: make --remote=auto resilient to changing TMPDIR x/tools/gopls: make -remote=auto resilient to changing TMPDIR Sep 7, 2020
@findleyr findleyr self-assigned this Sep 7, 2020
@stamblerre stamblerre removed this from the Unreleased milestone Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.