Skip to content
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

:Lazy update <plugin> causes an error #103

Closed
musjj opened this issue Dec 22, 2022 · 0 comments · Fixed by #96
Closed

:Lazy update <plugin> causes an error #103

musjj opened this issue Dec 22, 2022 · 0 comments · Fixed by #96
Labels
bug Something isn't working

Comments

@musjj
Copy link

musjj commented Dec 22, 2022

Describe the bug
Trying to update a specific plugin will cause this error:

Error executing luv callback:
vim/_editor.lua:478: E5560: nvim_err_writeln must not be called in a lua loop callback
stack traceback:
        [C]: in function 'nvim_err_writeln'
        vim/_editor.lua:478: in function 'notify'
        ...ta/Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/util.lua:183: in function 'notify'
        ...ta/Local/nvim-data/lazy/lazy.nvim/lua/lazy/core/util.lua:197: in function 'error'
        ...ocal\nvim-data\lazy\lazy.nvim/lua/lazy/manage/runner.lua:50: in function '_resume'
        ...ocal\nvim-data\lazy\lazy.nvim/lua/lazy/manage/runner.lua:63: in function 'resume'
        ...ocal\nvim-data\lazy\lazy.nvim/lua/lazy/manage/runner.lua:87: in function <...ocal\nvim-data\lazy\lazy.nvim/lua/lazy/manage/runner.lua:86>

Which version of Neovim are you using?

NVIM v0.9.0-dev-484+gb5edea655
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compiled by runneradmin@fv-az368-865

To Reproduce
Make sure to read https://github.com/folke/lazy.nvim/wiki/Minimal-%60init.lua%60-to-Reproduce-an-Issue

Steps to reproduce the behavior:

  1. Try to update any individual plugin using :Lazy update <plugin>

Expected Behavior
No error should occur.

repro.lua
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  -- do not remove the colorscheme!
  "folke/tokyonight.nvim",
  -- add any other pugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here
vim.opt.termguicolors = true
-- do not remove the colorscheme!
vim.cmd([[colorscheme tokyonight]])

Log
Please include any related errors from the Noice log file. (open with :Lazy log)

Lazy log
Log (1)
  ● tokyonight.nvim 0.19ms  start
      8b55a47 fix: revert last change (35 hours ago)
      ce92e5b chore(docs): auto generate vimdoc (2 days ago)
      1356b20 fix: always clear before setting colorscheme (2 days ago)
@musjj musjj added the bug Something isn't working label Dec 22, 2022
@folke folke closed this as completed in 42f5aa7 Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant