-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/internal/lsp: gopls hangs on a testdata workspace #31194
Comments
@bstaletic: do you mind syncing to head and trying again? I broke gopls for about an hour today, and I'm wondering if you maybe just synced to a bad CL. I followed your repro instructions, and it worked for me. |
Thanks for looking into this. I have pulled in the latest master and now I do get a response, but it's always the same error. From ycmd log:
Unfortunately the
|
Oh right, forgot that you were in a testdata directory. |
I wish it was that easy. Exactly the same behaviour for |
are you using $GOPATH or go modules? |
to get a log, you will want to pass the |
I tried with and without
Even with that flag, the log was 0 bytes. |
If you're not using Go modules, you will need to have |
|
What is the path of the file you are testing on. Is it also in |
Ahhh! So that was the problem! |
No problem! Glad it's working. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, I am using the latest
go
release.What operating system and processor architecture are you using (
go env
)?go env
OutputThis was also reproduced on Windows.
What did you do?
I am one of the maintainers of ycmd and we wanted to switch from
gocode
togopls
, howevergopls
doesn't respond to any requests.Unfortunately that means the steps to reproduce need to contain instruction on setting up ycmd.
Steps to reproduce:
git clone https://github.com/Valloric/YouComplete
(use your vim plugin manager)cd YouCompleteMe
git submodule update --init --recursive
cd third_party/ycmd
git remote add bstaletic https://github.com/bstaletic/ycmd && git fetch bstaletic
git checkout bstaletic/gopls
./build.py --go-completer
vim foo.go
:YcmCompleter GoTo
(or any other:YcmCompleter
command)<C-Space>
(should displaygopls
's completion results)What did you expect to see?
GOPLS providing completions and other advertised capabilities.
What did you see instead?
Request timeouts and editor hangs.
GOPLS and ycmd logs: https://gist.github.com/bstaletic/57ac9351b356c9266391bcc477f865b4
The text was updated successfully, but these errors were encountered: