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

bug: E565: Not allowed to change text or change window error when using with clever-f.vim #824

Closed
3 tasks done
Frederick888 opened this issue May 27, 2024 · 3 comments
Closed
3 tasks done
Labels
bug Something isn't working stale wontfix This will not be worked on

Comments

@Frederick888
Copy link

Did you check docs and existing issues?

  • I have read all the noice.nvim docs
  • I have searched the existing issues of noice.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.0

Operating system/version

macOS 14.5

Describe the bug

When using with https://github.com/rhysd/clever-f.vim, I sometimes see this error:

Error detected while processing function clever_f#find_with[97]..function clever_f#find_with[44]..<SNR>27_getchar:
line    2:
Error executing vim.schedule lua callback: ...frederick/.repro/plugins/nui.nvim/lua/nui/popup/border.lua:577: E565: Not allowed to change text or change window
stack traceback:
        [C]: in function 'nvim_buf_delete'
        ...frederick/.repro/plugins/nui.nvim/lua/nui/popup/border.lua:577: in function 'unmount'
        ...frederick/.repro/plugins/nui.nvim/lua/nui/popup/init.lua:320: in function 'unmount'
        ...frederick/.repro/plugins/noice.nvim/lua/noice/view/nui.lua:197: in function <...frederick/.repro/plugins/noice.nvim/lua/noice/view/nui.lua:193>

The mini view gets stuck from time to time after this error.

Steps To Reproduce

  1. Run nvim -u repro.lua repro.lua
  2. Immediately hit dt (this stops mini views from popping up somehow)
  3. Wait for one second or two, then hit another key

Expected Behavior

No errors.

Repro

-- DO NOT change the paths and don't remove the colorscheme
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", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "MunifTanjim/nui.nvim",
  "folke/noice.nvim",
  "rhysd/clever-f.vim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

require("noice").setup({
  lsp = {
    -- override markdown rendering so that **cmp** and other plugins use **Treesitter**
    override = {
      ["vim.lsp.util.convert_input_to_markdown_lines"] = true,
      ["vim.lsp.util.stylize_markdown"] = true,
      ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
    },
  },
  -- you can enable a preset for easier configuration
  presets = {
    bottom_search = true, -- use a classic bottom cmdline for search
    command_palette = true, -- position the cmdline and popupmenu together
    long_message_to_split = true, -- long messages will be sent to a split
    inc_rename = false, -- enables an input dialog for inc-rename.nvim
    lsp_doc_border = false, -- add a border to hover docs and signature help
  },
})

local timer = vim.uv.new_timer()
local counter = 1
vim.uv.timer_start(timer, 1000, 1000, function ()
  vim.notify('hello, world! ' .. counter)
  counter = counter + 1
end)
Copy link
Contributor

github-actions bot commented Jul 6, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jul 6, 2024
@Frederick888
Copy link
Author

Just tested again and it was still reproducible.

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
@folke
Copy link
Owner

folke commented Jul 6, 2024

wont' fix

@folke folke added the wontfix This will not be worked on label Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants