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

Error "notify.error noice.nvim ...site/pack/packer/start/noice.nvim/lua/noice/view/nui.lua:190: attempt to index field '_scroll' (a nil value)" #216

Closed
wimstefan opened this issue Nov 12, 2022 · 0 comments · Fixed by #639
Labels
bug Something isn't working

Comments

@wimstefan
Copy link

wimstefan commented Nov 12, 2022

Describe the bug
Neovim throughs a lot of those errors as described in the title.

Which version of Neovim are you using?
NVIM v0.9.0-dev-296+g7335a67
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Features: +acl +iconv +tui

To Reproduce
Unfortunately I can't reproduce this. The error is popping up irregularly in different editing situations at different times as far as I can say.

This is my noice.nvim setup (without any notify plugin)
    use({
      'folke/noice.nvim',
      requires = 'MunifTanjim/nui.nvim',
      config = function()
        require('noice').setup({
          cmdline = {
            view = 'cmdline',
            format = {
              cmdline = { pattern = '^:', icon = '', lang = 'vim' },
              search_down = { kind = 'search', pattern = '^/', icon = ' 🢗', lang = 'regex' },
              search_up = { kind = 'search', pattern = '^%?', icon = ' 🢕', lang = 'regex' },
              filter = { pattern = '^:%s*!', icon = '', lang = 'bash' },
              lua = { pattern = '^:%s*lua%s+', icon = '', lang = 'lua' },
              input = {}
            }
          },
          lsp = {
            override = {
              ['vim.lsp.util.convert_input_to_markdown_lines'] = true,
              ['vim.lsp.util.stylize_markdown'] = true,
              ['cmp.entry.get_documentation'] = true
            },
          },
          presets = {
            bottom_search = true,
            long_message_to_split = true,
            inc_rename = true,
            lsp_doc_border = true
          },
          views = {
            popupmenu = {
              win_options = {
                winhighlight = {
                  Normal = 'Normal',
                  FloatBorder = 'FloatBorder'
                }
              }
            },
            split = {
              win_options = {
                winhighlight = {
                  Normal = 'Normal',
                  FloatBorder = 'FloatBorder'
                }
              }
            }
          },
        })
        vim.keymap.set('n', '<Leader>n', vim.cmd.Noice, { desc = 'Make some noice' })
        Prettify()
      end
    })

Expected Behavior
No error message

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

Noice log
...site/pack/packer/start/noice.nvim/lua/noice/view/nui.lua:190: attempt to index field '_scroll' (a nil value)

stack traceback:
	[C]: in function 'pcall'
	...ite/pack/packer/start/noice.nvim/lua/noice/util/call.lua:140: in function '__index'
	...site/pack/packer/start/noice.nvim/lua/noice/view/nui.lua:190: in function <...site/pack/packer/start/noice.nvim/lua/noice/view/nui.lua:186>
	[C]: in function 'xpcall'
	...ite/pack/packer/start/noice.nvim/lua/noice/util/call.lua:145: in function <...ite/pack/packer/start/noice.nvim/lua/noice/util/call.lua:130>
	...site/pack/packer/start/noice.nvim/lua/noice/view/nui.lua:200: in function 'hide'
	...ite/pack/packer/start/noice.nvim/lua/noice/view/init.lua:142: in function 'display'
	.../packer/start/noice.nvim/lua/noice/view/backend/mini.lua:90: in function 'update'
	.../packer/start/noice.nvim/lua/noice/view/backend/mini.lua:58: in function <.../packer/start/noice.nvim/lua/noice/view/backend/mini.lua:57>
@wimstefan wimstefan added the bug Something isn't working label Nov 12, 2022
@folke folke closed this as completed in f5ac589 Nov 12, 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