-
-
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
GoRun errors out with 'no packages loaded from /path/filename.go
#3300
Comments
Why is there a literal |
:( I am not sure :(. Edit: I changed my mapping to below and now it works as it does not add an additional new line. au FileType go nmap <leader>r :GoRun % <CR> What i am now wondering is What went wrong with au FileType go nmap <leader>r <Plug>(go-run) I am not too well versed with vimscript. [In anycase, thank you very much for the pointer, at least I am able to proceed. Appreciate the help] |
|
I am facing this issue only in one of my boxes. All other boxes that I have are running fine. |
I recently ran into the same error and I'm pretty sure I tracked it down! Explanation:The literal newline character appears to stem from the So when one of the mappings vim-go/ftplugin/go/mappings.vim Lines 15 to 17 in 283b8db
calls Lines 123 to 125 in 00c5f2d
Probable reasonWhile poking around in the So I suspect that using Possible fixSo to fix it I just changed the That brought the 'run' commands as well as the 'Imports' command back to life again on my side (linux, nvim). I opened a pull-request which should fix this: #3358 |
What did you do? (required: The issue will be closed when not provided)
I ran
:GoRun
in a test hello world with main.I tried to run
:GoRun
on this program.What did you expect to happen?
Print
vim-go
What happened instead?
Configuration (MUST fill this out):
vim-go version:
vimrc
you used to reproduce:vimrc
Vim version (first three lines from
:version
):NVIM v0.6.0-dev
Go version (
go version
):go version go1.17.1 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:Although with the same
.vimrc
i am able to run this everywhere else.If anyone could please point me towards any steps to debug this. I am not really sure what happend.
The only change I did it is upgrade
go
from1.15
to1.17.1
and it stopped working.The text was updated successfully, but these errors were encountered: