GithubHelp home page GithubHelp logo

Comments (29)

folke avatar folke commented on August 16, 2024 3

@Shougo good point. Fixed!

image

from noice.nvim.

folke avatar folke commented on August 16, 2024 2

@pBorak you really shouldn't set lazyredraw. That's not an option meant to be set. Only temporarily inside scripts.

image

from noice.nvim.

gennaro-tedesco avatar gennaro-tedesco commented on August 16, 2024 1

@Shougo you are precisely right, I guess I had just never noticed. Apologies for the noise!

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024 1

I think noice.nvim should check lazyredraw option is set and warn.

Because another people have the problem with it.

from noice.nvim.

gennaro-tedesco avatar gennaro-tedesco commented on August 16, 2024

I am observing that a similar one happens in correspondence of "No write since last changes" (see screenshot):

Screenshot 2022-10-05 at 17 33 12

I have noticed it shortly ago only, not sure if it is intended behaviour or the consequence of one of the latest commits (I mention it here in case it may be useful to debug the original issue as additional information). I may retrieve the logs but they seem to be pretty long: what piece of information is needed?

from noice.nvim.

folke avatar folke commented on August 16, 2024

@pBorak I had the same earlier today and on longer see this happen, so I likely fixed it :)

Can you let me know if you still have it?

from noice.nvim.

folke avatar folke commented on August 16, 2024

@gennaro-tedesco was probably the same. Does it still happen with the latest version?

from noice.nvim.

gennaro-tedesco avatar gennaro-tedesco commented on August 16, 2024

I have updated the plug-in but I still observe the same behaviour: see video below to showcase what occurs

Screen.Recording.2022-10-06.at.01.34.39.mov

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

It is really bug?
I think just two error messages are generated.

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

Please see this.

It is from nvim --clean.

スクリーンショット_2022-10-06_11-32-28

Two error messages are generated. It is not bug.

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

So it should be closed?

from noice.nvim.

pBorak avatar pBorak commented on August 16, 2024

Just not yet, I have updated the plugin but still see the same issue.

from noice.nvim.

Shougo avatar Shougo commented on August 16, 2024

Please upload the reproduce instruction.
I will test it.

from noice.nvim.

pBorak avatar pBorak commented on August 16, 2024

@folke
Okay I found the thing that messes this up
If you set vim.opt.lazyredraw to true the issue still occurs.

from noice.nvim.

folke avatar folke commented on August 16, 2024

Closing this, since Noice simply won't work correctly when lazyredraw is set

from noice.nvim.

pBorak avatar pBorak commented on August 16, 2024

Thanks for handling it!

from noice.nvim.

Meow-2 avatar Meow-2 commented on August 16, 2024

how to disable this warning? I don't set lazyredraw, but my plugin(vim-visual-multi) may set lazyredraw when I use it and I will see this warning.

from noice.nvim.

folke avatar folke commented on August 16, 2024

@Meow-2 they should only set it temporarily, not forever.

from noice.nvim.

folke avatar folke commented on August 16, 2024

Or they probbly do disable it afterwards?

from noice.nvim.

Meow-2 avatar Meow-2 commented on August 16, 2024

Or they probbly do disable it afterwards?

Yes, vim-visual-multi only set it temporarily, how can I hide this warning?

from noice.nvim.

folke avatar folke commented on August 16, 2024

I jsut added an option. config.health.checker disables the health checker after setup

from noice.nvim.

Meow-2 avatar Meow-2 commented on August 16, 2024

I jsut added an option. config.health.checker disables the health checker after setup

It works, thank you!

from noice.nvim.

smjonas avatar smjonas commented on August 16, 2024

I am also setting vim.o.lazyredraw temporarily inside the preview callback function of my plugin live-command.nvim: https://github.com/smjonas/live-command.nvim/blob/ce4b104ce702c7bb9fdff863059af6d47107ca61/lua/live-command/init.lua#L200

I am not sure why this error is shown because it's reset after running the command. I don't want to disable this error globally so would it be possible to detect that this option was only set temporarily and not show an error message in that case?

from noice.nvim.

folke avatar folke commented on August 16, 2024

@smjonas just made a change that checks for lazyredraw during startup only

from noice.nvim.

smjonas avatar smjonas commented on August 16, 2024

Thank you, while that is an improvement, the warning is still shown when previewing the command for the first time, e.g. when typing :Norm A.

from noice.nvim.

folke avatar folke commented on August 16, 2024

@smjonas it really shouldn't. Lazyredraw is now only checked during noice startup. So after that even if it is set, we no longer show a warning.

Maybe something else is setting lazyredraw? :verbose set lazyredraw?
Or it doesn't get reset?

from noice.nvim.

smjonas avatar smjonas commented on August 16, 2024

What I have observed is running :set lazyredraw manually after noice has already started (i.e. some messages were displayed), it will still cause the warning to be shown. (I updated noice)

from noice.nvim.

folke avatar folke commented on August 16, 2024

@smjonas you're right, sorry. Fixed!

from noice.nvim.

smjonas avatar smjonas commented on August 16, 2024

Thank you, can confirm it's fixed now!

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.