-
-
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
[vim-go] could not determine the appropriate directory for gopls #3065
Comments
Does this happen for you any go file that you try to open, or only some? Are you using the linux subsystem? |
Can you run |
I get the same error. At some point |
After some investigation, the culprit seems to be this line in my
I commented it, and the error disappeared. Perhaps vim-go shouldn't add a directory to GOPATH if the directory contains a |
Do you have a |
Yes, I happen to have a |
👍 if you're not using gb, godep, or similar, then you don't need |
Remove support for g:go_autodetect_gopath; it was only necessary for tools like gb and godep. Both of those were long ago archived and there's no need for them now with Go modules and vendoring. Fixes fatih#3065
Remove support for g:go_autodetect_gopath; it was only necessary for tools like gb and godep. Both of those were long ago archived and there's no need for them now with Go modules and vendoring. Fixes fatih#3065
Issue Description
When I try to open/edit a
.go
file, neovim has the error message '[vim-go] could not determine the appropriate directory for gopls'.No Go completion message to select.Sometime it hangs for a while for loading something.
Configuration (MUST fill this out):
vim-go version:
Neovim 0.4.4
init.vim
you used to reproduce:vimrc
Vim version (first three lines from
:version
):Neovim v0.4.4
Go version (
go version
):Go 1.14.2
Go environment
Windows10 1909
The text was updated successfully, but these errors were encountered: