-
Notifications
You must be signed in to change notification settings - Fork 188
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
NeoVIM Crashing when Scrolling Files w/o Error Message #344
Comments
Sorry, this isn't something we can help with here. My guess is this is related to the built parser objects being corrupt in some way. |
And there's nothing I can do to fix this? Do I have to live without treesitter-context now? 🥺 |
Not if you don't know how to properly debug this. Ts-context is just using normal treesitter APIs. If usage of those API's causes a crash, then an issue lives in the implementation behind those APIs, not the application. Ts-context just found a codepath to trigger a bug, but there is no bug in ts-context itself. What I would do would be to reduce this problem as much as possible. That includes reducing down the logic in ts-context until you have a minimal testcase (0 plugins). Obviously this is difficult and time consuming. But like I said, this is likely caused by incorrectly built parsers. You'll be able to find out more if you can get a stacktrace of some kind. |
Stacktrace please. However this is likely not an issue with this plugin. Crashes should be reported to neovim core with a stacktrace. |
For me the only solution was to uninstall treesitter-context, not had a single crash since then. |
Can't help without a stacktrace. Sorry |
I tried to log everything, but the crash is happening and no logs are been generated |
If you give us some way to generate, I will be happy to try |
Look at the link provided by @wookayin |
I have the same issue, and I have the following logs from running with vim.cmd("set verbosefile=~/nvim.log")
vim.cmd("set verbose=15")
vim.cmd('let $NVIM_LOG_FILE = expand("~/nvim.log")') logs:
I don't know why it's indented, it's outputted like that. Note: I use lazyvim - don't know if that helps with anything. Neovim version: 0.9.4, mac m2, running nvim-treesitter-content on head @lewis6991 let me know if you need more info |
Description
When scolling through files NeoVIM will crash.
Here's a screen recording on what we've already acomplished in the treesitter issue #5501:
https://youtu.be/t968TqB8vyI
Neovim version
Expected behavior
NeoVIM keeps on going.
Actual behavior
NeoVIM closes itself without any error message.
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua src/index.ts
The text was updated successfully, but these errors were encountered: