Open jmastr opened 5 months ago
This happens to me too(NVIM v0.6.1), somehow it can still run, but stepinto is extremely slow, sometime with same error message. Works perfectly in vim(VIM - Vi IMproved 8.2) though
The 20 seconds is a good clue that vim-go is having a hard time processing the response. Perhaps something is amiss with the buffer handling that vim-go uses for neovim.
What did you do? (required: The issue will be closed when not provided)
:GoDebugStart
:GoDebugContinue
:GoDebugStep
It takes exactly 20 seconds until debug step is complete and nvim is usable again.
Note: this does NOT happen with vim, but only with NeoVIM.
What did you expect to happen?
What happened instead?
vim-go ran in a 20 seconds RPC timeout from here: https://github.com/fatih/vim-go/blob/feef9b31507f8e942bcd21f9e1f22d587c83c72d/autoload/go/debug.vim#L653 as you can see at the time stamps below:
Configuration (MUST fill this out):
vim-go version:
2024-03-25
/14eedf6135cf4253b0ed48a0b53d6834a40da1c4
vimrc
you used to reproduce:vimrc
```vim let g:ycm_gopls_binary_path='gopls' let g:ycm_max_num_candidates = 0 let g:go_fmt_command = "goimports" let g:go_metalinter_autosave = 1 let g:go_debug_preserve_layout = 1 let g:go_debug_windows = { \ 'vars': 'rightbelow 61vnew', \ 'stack': 'rightbelow 21new', \ 'out': 'botright 15new', \ } let g:go_debug_mappings = { \ '(go-debug-breakpoint)': {'key': 'b'}, \ '(go-debug-continue)': {'key': 'c'}, \ '(go-debug-next)': {'key': 'n'}, \ '(go-debug-print)': {'key': 'p'}, \ '(go-debug-step)': {'key': 's'}, \ } ```Vim version (first three lines from
:version
):NVIM v0.9.4 Build type: Release LuaJIT 2.1.1693350652
Go version (
go version
):go version go1.21.9 linux/amd64
Go environment
go env
Output:gopls version
gopls version
Output:vim-go configuration:
vim-go configuration
filetype detection configuration:
filetype detection