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 have a plugin installed remotely such as rocks-dev.nvim and update my config to point to a directory, I get the following error on :Rocks sync
Error executing vim.schedule lua callback: ...vim/rocks/rocks_rtp/lua/rocks-dev/local-rock-handler.lua:21: attempt to call field 'remove' (a nil value)
stack traceback:
...vim/rocks/rocks_rtp/lua/rocks-dev/local-rock-handler.lua:21: in function 'callback'
....local/share/nvim/rocks/share/lua/5.1/rocks/api/init.lua:87: in function 'cb'
...bott/.local/share/nvim/rocks/share/lua/5.1/nio/tasks.lua:102: in function 'close_task'
...bott/.local/share/nvim/rocks/share/lua/5.1/nio/tasks.lua:124: in function 'cb'
...bott/.local/share/nvim/rocks/share/lua/5.1/nio/tasks.lua:185: in function 'waiter'
...tt/.local/share/nvim/rocks/share/lua/5.1/nio/control.lua:116: in function 'wake'
...tt/.local/share/nvim/rocks/share/lua/5.1/nio/control.lua:129: in function 'set'
...tt/.local/share/nvim/rocks/share/lua/5.1/rocks/state.lua:39: in function 'on_exit'
....local/share/nvim/rocks/share/lua/5.1/rocks/luarocks.lua:69: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
In local-rock-handler I believe operations should require from rocks.operations.helpers. After making this change locally I get a new error in my rocks log:
ERROR | 2024-06-03 21:44:07 | ...share/nvim/rocks/share/lua/5.1/rocks/operations/init.lua:99 | SYNC ERROR: rocks-dev: Message: ...bott/.local/share/nvim/rocks/share/lua/5.1/nio/tasks.lua:195: Cannot call async function from non-async context
The text was updated successfully, but these errors were encountered:
Yes, rocks-dev isn't using the rocks.nvim public API, and the internal module (rocks.operations) it is using has changed without a major version bump (since it's an internal API).
The second error message is strange, because it should be called within an async context. @vhyrro since you use rocks-dev.nvim, could you check this?
I'll push a hotfix for the operations module, although we should be using a public API.
When I have a plugin installed remotely such as
rocks-dev.nvim
and update my config to point to a directory, I get the following error on:Rocks sync
In
local-rock-handler
I believe operations should require fromrocks.operations.helpers
. After making this change locally I get a new error in my rocks log:The text was updated successfully, but these errors were encountered: