-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
gopls stuck #2603
Comments
What do you mean by "it stuck forever"? What behavior are you actually seeing? |
|
What version of |
golang.org/x/tools/gopls 0.2.0 |
🤔 That should work fine. Can you try clearing your cache using |
I had the same problem. |
I had same thing too. it was working properly until hours ago but now I don't know what happened!! |
This is happening to me too, it's stuck forever at: vim-go: initializing gopls
Only way I've found to edit Go files atm is: let g:go_gopls_enabled = 0 |
Turns out the Go environment was modified for the project I was in , :GoInstallBinaries inside of that env. made things working again. |
The gopls output would be useful for me to figure out what's happening. Please add |
It's just fixed by installing gopls by my Os's package manager. I'm running on fedora and I installed gopls by this command: |
I worked on macOs Catalina and had the same problem. |
@XavierCheng1996 are you able to provide the gopls output I asked for last week (#2603 (comment))? |
I have the same situation |
sorry for late response. I have updated my |
How did you update your |
I have updated it in the above post. meanwhile, I encounter another error like
|
Line 2356 in b1b9a1b
|
I'm trying to use |
I understand. Did you review the section of the FAQ that I linked? |
Sorry, where is the link 😄 |
@XavierCheng1996 the section of the FAQ I linked implies that it's only relevant to opening a file. The solution, though, will apply to your case, too. |
thanks, looking👀 |
I have checked the faq and I haven't used
|
Then you likely have multiple versions of vim-go installed. Can you run Also, I just noticed that your new error shouldn't happen at all from v1.21, because the |
run
I think I pull the lates version to |
Meanwhile if I use the
and I have already run |
If you've installed vim-go to Make sure to clear out any copies of vim-go that you don't want to use before continuing further. This is not a compatibility problem between |
Ic thanks~ |
I have deleted the one under |
You've deleted the copy under
? Do you still have You'll need to decide whether you want to use Plug to manage vim-go or whether you want to use Vim's package management and make the necessary modifications to your system to avoid having multiple copies of vim-go present. |
I see. thanks for your help! |
Have you solved this problem? |
Did anyone ever fix this problem? I don't see where a solution was ever identified for this problem. |
Maybe you can install gopls yourself. |
@Jinof Thanks, it does load now correctly. |
Having same issue, attempted both |
Hello! I'm facing a very similar issue. |
Hello! |
This worked fine for me. |
I was having the same issue but removed gopls installed by vim-go and reinstalled from my package manager and it worked. |
I'm using ASDF to manage Go versions on a Mac and when I updated from Go 1.18 to 1.19 for a project this happened to me. The solution was to do this from within VIM: |
What did you do? (required: The issue will be closed when not provided)
I want to use vim-go to code sth like
fmt.Println("hello world")
. Once I type.
, the bottom saysvim-go: initialized gopls
and then it stuck forever.What did you expect to happen?
What happened instead?
Configuration (MUST fill this out):
vim-go version:
v1.21
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):vimrc
Vim version (first three lines from
:version
):Go version (
go version
):go version go1.13 darwin/amd64
Go environment
go env
Output:The text was updated successfully, but these errors were encountered: