rest.nvim
rest.nvim copied to clipboard
Calling REST endpoint with debugging breakpoint causes Neovim to become unresponsive
I have setup a simple fast API
demo project to reproduce this https://github.com/h3ndry/rest-nvim-test
Neovim Version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1692716794
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"
Run :checkhealth for more info
Rest config
return {
{
'vhyrro/luarocks.nvim',
config = function()
require('luarocks').setup {}
end,
},
{
'rest-nvim/rest.nvim',
ft = 'http',
opts = {
encode_url = false,
keybinds = {
{
'<localleader>rr',
'<cmd>Rest run<cr>',
'Run request under the cursor',
},
{
'<localleader>rl',
'<cmd>Rest run last<cr>',
'Re-run latest request',
},
},
},
dependencies = { 'luarocks.nvim' },
config = function(_, opts)
require('rest-nvim').setup(opts)
end,
},
}
python debug config
require('dap-python').setup '/home/hendry/.virtualenvs/debugpy/bin/python'
dap.configurations.lua = {
{
type = 'nlua',
request = 'attach',
name = 'Attach to running Neovim instance',
},
}
dap.adapters.nlua = function(callback, config)
callback { type = 'server', host = config.host or '127.0.0.1', port = config.port or 8086 }
end
end,
Steps to reproduce
- Add a breakpoint inside the function to be called
- start your debug server or debug the file using the nvim python debug
- Call the endpoint you are debugging using REST.NVIM
I have tested using the old version and curl, all seems to work except when using this plugin