-
-
Notifications
You must be signed in to change notification settings - Fork 619
Error executing vim. schedule lua callback: ...cker/start/nvim-tree. lua/lua/nvim-tree/renderer/init.lua:397 #925
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
+1 I have exactly the same issue! |
cannot reproduce this, do you have newlines in your filenames ? |
The fastest method for reproduction is e.g. just installing lunarvim, I deleted all the configs (from .local/share and .config), and I get the error directly upon start now. Its strange since it only happened since this morning …
So in line 397 is the following: api.nvim_buf_set_lines(view.View.bufnr, 0, -1, false, lines) The checkhealth does not even have nvim-tree mentioned and it all seems alright. One strange thing though, is that I can not access any folder for my user (e.g. /home/test/) But, I can activate nvim-tree and open folders that are on my usb stick - thats really strange.. I hope a solution can be found, I can (sort of) live with that in the moment, but now I can't navigate on my .config folder with nvim-tree … @kyazdani42 The message comes without even opening a specific file, just running nvim / lvim in a folder which is in any home directory produces this error, regardless of the contents from files. When I start from a directory in a external harddrive, it works. Another Edit and a hint: When I use So if I navigate into the So with this workaround, nvim-tree still works for a session. So it has to do with setting a current working directory maybe? I hope someone else with better knowledge can reproduce, must be a bug somehow. Any solutions found @meanindra ? |
For me it's working again, don't really know what caused the issue. It's strange because I had tried it before, but now it works again like a charm! |
might be an issue with the lunarvim config maybe ? i'm not sure. Or maybe conflicting with another plugin. |
@meanindra perhaps you could provide a reproducible test case: Start with the minimal config as per the bug report template: https://github.com/kyazdani42/nvim-tree.lua/issues/new/choose Add your nvim-tree config. If you still cannot reproduce, add your plugins and their configuration until you can reproduce. Post that modified minimal config and we can attempt to reproduce that. |
I had the same problem and (after i reinstall finally i figure out the problem. it's seem that i had one file the contain so in order to reproduce this issue all you need to do is create a file that contain a example:
hope it's will help 😄 |
is it even a good idea for a filename to contain newlines 😄 ? I guess we shouldn't crash though, but still it's a bit weird. |
Closing due to inactivity. |
i have the same error but i have fixed by just commenting i don't why it works but it does |
Hello, i m also experiencing this issue. I can confirm that crash is cause by newline in file name. In my case, file with newline in name was created by mistake and i am convinced that it should not lead to crash of nvim-tree.
|
Replicated with |
This should be resolved - displaying, opening and renaming files. I'd be grateful if you tested a fix @Samgarr cd /path/to/nvim-tree.lua
git pull
git checkout 925-handle-newlines-in-file-names When you're finished testing: git checkout master |
@Samgarr I'd be grateful for your testing this, as it's operating system dependent. |
Sorry for late response, i didn't notice the notification. I can confirm that the fix works for me. |
is this merged ? im having same issue
|
The fix has been release. Please attempt the trivial test: touch foo$'\n'bar Please provide a reproducer for your case @AlejandroSanchez90 :a new bug report would be most gratefully appreciated. |
I fixed my issue by adding node module folder to the ignore list for tracked files |
OS
Pop os 21.10
Neovim version
Nvim-tree version
master branch
Describe the bug
Every time I try to open nvim-tree this error show. and no icon, files and folder show.
To Reproduce
Use any nvim-tree command example
NvimTreeRefresh
, NvimTreeOpenExpected behavior
Nvim Tree should be open without any error
The text was updated successfully, but these errors were encountered: