-
Notifications
You must be signed in to change notification settings - Fork 256
auto_expand_width
gets caught in infinite loop and hangs neovim
#624
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
Comments
Hi, I don't have a pc with me right now so I can't test it right now but it seems that the estimated length of the expanded width is too big that it cannot fit the nvim window. When there is not enough width for the expanded width, it tries to expand more indefinitely falling into an infinite loop which is causing the nvim to freeze. I see that the estimated width is over 10,000 but did you purposely put a very very long file name? Could you give me a screenshot shot of the sidepanel when setting it off but with a quite big window.width in the first place? |
Oh, the estimated width increments one by one. This might be a bug in estimating the required width of the resulting panel. Could you send me your whole neo-tree configuration because I didn't face this issue with my setup? |
This is just a standard set of files, nothing particularly long and it shouldn't be opening folders recursively. Here is my current config: https://github.com/cseickel/dotfiles/blob/e4189bff222470ad07eeb9c947b4cbc4848b6a86/config/nvim/lua/plugins/config/neo-tree.lua#L2-L294 |
Thanks. One thing I'm concerned is that the width required is not aligned with the strwidth of the content, and I had to add Can you guess where this EDIT: |
Do you know any - local huge_number = 2000
+ local huge_number = vim.api.nvim_give_me_the_maximum_possible_window_width(0) |
I think that would be |
This comment was marked as outdated.
This comment was marked as outdated.
Ok, so it seems that this |
I've noticed that with

window.auto_expand_width
enabled, sometimes neovim will freeze when I open neo-tree as a sidebar. I njust tailed the logs when this happened and saw this scrolling by:Related to #580
@pysan3 Can you take a look at this?
The text was updated successfully, but these errors were encountered: