GithubHelp home page GithubHelp logo

[bug] `q:` throws errors about noice.nvim HOT 29 CLOSED

folke avatar folke commented on August 16, 2024
[bug] `q:` throws errors

from noice.nvim.

Comments (29)

dtomvan avatar dtomvan commented on August 16, 2024 3

Closing. I guess the issue was fixed somewhere after between 2 days and 8 hours ago, or in 8aa5efd

from noice.nvim.

folke avatar folke commented on August 16, 2024 2

I just pushed a fix for @mxteries

Can you all check if it also fixes your issues?

from noice.nvim.

dtomvan avatar dtomvan commented on August 16, 2024 1

q:, q?, q/ and <c-f> all work.

from noice.nvim.

folke avatar folke commented on August 16, 2024 1

@Shougo not home right now. I'll check tomorrow!

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024 1

@dtomvan @kaiphat @p00f

Please create the minimal config to reproduce the issue without the package managers.

from noice.nvim.

p00f avatar p00f commented on August 16, 2024 1

I can't reproduce it using the minimal config 👍🏽

from noice.nvim.

folke avatar folke commented on August 16, 2024

I can't reproduce this unfortunately. Can you check with the lastest version?

from noice.nvim.

mxteries avatar mxteries commented on August 16, 2024

I get a similar error as dtomvan when entering the command-line window from command-line mode. Basically run nvim then type :<CTRL-F>. CTRL-F is the default keybinding, but it can be changed through :h cedit.

I'm on the latest version of noice.nvim and nui.nvim. I can also confirm that q: (and q/, q?) work fine

from noice.nvim.

kaiphat avatar kaiphat commented on August 16, 2024

The same

from noice.nvim.

kaiphat avatar kaiphat commented on August 16, 2024

image

from noice.nvim.

folke avatar folke commented on August 16, 2024

@mxteries I can reproduce your error. Will see for a fix. Will likely fix the related problems too.

from noice.nvim.

dtomvan avatar dtomvan commented on August 16, 2024

Sorry for the late response, will check ASAP

from noice.nvim.

folke avatar folke commented on August 16, 2024

If it would not be fixed, please add {debug=true} to your setup to get a more detailed stack trace

from noice.nvim.

dtomvan avatar dtomvan commented on August 16, 2024

Forgot to trigger VimEnter, thought it worked, didn't try :. Will confirm whether it works tomorrow.

from noice.nvim.

mxteries avatar mxteries commented on August 16, 2024

I just pushed a fix for @mxteries

Can you all check if it also fixes your issues?

Yep CTRL-F works now, thanks!

from noice.nvim.

p00f avatar p00f commented on August 16, 2024

I still get this.
Steps to reproduce:

  1. q:
  2. Wait a second

image

I'm on neovim neovim/neovim@de47b4b and noice 3a23308

Should I open a new issue?

from noice.nvim.

p00f avatar p00f commented on August 16, 2024

I'm not lazy loading noice or its dependencies

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

Oh, it is reproduced for me...
It seems not fixed.

@folke Ping.

from noice.nvim.

folke avatar folke commented on August 16, 2024

Still can't reproduce unfortunately. I also don't see the cmdline as in your screenshot. Can you provide more details?

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

I think you have mapped q. You need to execute iunmap q.

from noice.nvim.

folke avatar folke commented on August 16, 2024

@Shougo no mapping for q.

When does the cmdline show for you?

I just get the cmdline-history window but don't see the cmdline. And no errors.

Can you post the errors you get from :Noice log?

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

noice.log

Please see this.

from noice.nvim.

folke avatar folke commented on August 16, 2024

Seems like you get E36 errors when we try to open a split. Not sure what triggers that.

Do you get the same with the default Noice config?

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

This is my config.

  require'noice'.setup {
    cmdline = {
      enabled = true,
      icons = {
        ['/'] = { icon = '/', hl_group = 'DiagnosticWarn' },
        ['?'] = { icon = '?', hl_group = 'DiagnosticWarn' },
        [':'] = { icon = ':', hl_group = 'DiagnosticInfo', firstc = false },
      },
    },
    popupmenu = {
      enabled = false,
    },
    messages = {
      enabled = true,
    },
    routes = {
      {
        view = "split",
        filter = { min_width = 500 },
      },
    },
  }

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

Oh, it does not reproduce when minimal init.vim...

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

I have created the minimal init.vim and I cannot reproduce the problem.
So it seems config problem.

set rtp+=~/work/noice.nvim
set rtp+=~/src/nui.nvim
set rtp+=~/src/nvim-notify

set termguicolors

lua <<END
  require'noice'.setup {
    cmdline = {
      enabled = true,
      icons = {
        ['/'] = { icon = '/', hl_group = 'DiagnosticWarn' },
        ['?'] = { icon = '?', hl_group = 'DiagnosticWarn' },
        [':'] = { icon = ':', hl_group = 'DiagnosticInfo', firstc = false },
      },
    },
    popupmenu = {
      enabled = false,
    },
    messages = {
      enabled = true,
    },
    routes = {
      {
        view = "split",
        filter = { min_width = 500 },
      },
    },
  }
END

from noice.nvim.

folke avatar folke commented on August 16, 2024

I added a template to create a minimal.lua file https://github.com/folke/noice.nvim/wiki/Minimal-%60init.lua%60-to-Reproduce-an-Issue

from noice.nvim.

dtomvan avatar dtomvan commented on August 16, 2024

I'm on neovim neovim/neovim@de47b4b and noice 3a23308

I cannot reproduce either. I'm on a clean .config and .local (by changing the XDG_ environment vars), using minimal.lua, even on those versions. nui.nvim and nvim-notify are latest. Can this be closed again, as p00f seemed to resolve their issue?

from noice.nvim.

MaMrEzO avatar MaMrEzO commented on August 16, 2024

Seems like you get E36 errors when we try to open a split. Not sure what triggers that.

Do you get the same with the default Noice config?

After a lot of plugin switches to figure out the cause of the error!
Screenshot_20221016_202801

I have fgheng/winbar.nvim installed, and there is a need to exclude some file types to lua-bar to not add a winbar to those buffers..., for example :

 disabled_filetypes = {
      statusline = {"NvimTree", "Outline"},
      winbar = {"NvimTree", "Outline"},
    },

Just removing winbar makes Noice work as expected..., but I cannot find the ft of CmdBar and Notify :)

from noice.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.