You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call :Rest run on any endpoint, I get this error:
Error executing Lua callback: .../uchoa/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:100: Async task failed without callback: The coroutine failed with this message:
...re/nvim/lazy/rest.nvim/lua/rest-nvim/client/curl/cli.lua:360: attempt to index field 'handle' (a nil value)
stack traceback:
...re/nvim/lazy/rest.nvim/lua/rest-nvim/client/curl/cli.lua: in function 'request'
...ocal/share/nvim/lazy/rest.nvim/lua/rest-nvim/request.lua:64: in function 'run_request'
...ocal/share/nvim/lazy/rest.nvim/lua/rest-nvim/request.lua:120: in function <...ocal/share/nvim/lazy/rest.nvim/lua/rest-nvim/request.lua:109>
stack traceback:
[C]: in function 'error'
.../uchoa/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:100: in function 'close_task'
.../uchoa/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:122: in function 'step'
.../uchoa/.local/share/nvim/lazy/nvim-nio/lua/nio/tasks.lua:150: in function 'run'
...ocal/share/nvim/lazy/rest.nvim/lua/rest-nvim/request.lua:109: in function 'run'
...cal/share/nvim/lazy/rest.nvim/lua/rest-nvim/commands.lua:124: in function 'impl'
...cal/share/nvim/lazy/rest.nvim/lua/rest-nvim/commands.lua:309: in function <...cal/share/nvim/lazy/rest.nvim/lua/rest-nvim/commands.lua:297>
Expected behavior
I expected the request to be executed as declared in the .http file.
Steps to reproduce
Open the .http file, place the cursor on a request and :Rest run.
Myrest.lua (lazy.nvim) isthis:
return {
"rest-nvim/rest.nvim",
dependencies= {
{
"nvim-treesitter/nvim-treesitter",
opts=function(_, opts)
opts.ensure_installed=opts.ensure_installedor {}
table.insert(opts.ensure_installed, "http")
end,
},
{
"vhyrro/luarocks.nvim",
priority=1000, -- Very high priority is required, luarocks.nvim should run as the first plugin in your config.config=true,
},
},
}
InfactIdidn't have the luarocks dependency declared. Added it after the plugin started crashing.
Other information
No response
The text was updated successfully, but these errors were encountered:
Seems like you are having installation issues. Here are some steps to check your issue:
run :checkhealth lazy. See what luarocks section says. you should enable the rockspec support to install this plugin (no need to install luarocks.nvim if you are using lazy.nvim v11 or higher)
run :checkhealth rest-nvim. rest.nvim can diagnostic itself and check if every dependencies are properly installed.
Prerequisites
Neovim Version
NVIM v0.10.4 Build type: Release LuaJIT 2.1.1736781742
Operating system/version
macOS Sequoia 15.3.1
Actual behavior
When I call :Rest run on any endpoint, I get this error:
Expected behavior
I expected the request to be executed as declared in the .http file.
Steps to reproduce
Open the .http file, place the cursor on a request and
:Rest run
.curl --version:
luajit -v
LuaJIT 2.1.1736781742 -- Copyright (C) 2005-2025 Mike Pall. https://luajit.org/
Minimal config for repro (using
lazy.nvim
)Other information
No response
The text was updated successfully, but these errors were encountered: