Comments (12)
Can't help without a stacktrace. Sorry
from nvim-treesitter-context.
https://github.com/neovim/neovim/wiki/FAQ#backtrace-linux
from nvim-treesitter-context.
Look at the link provided by @wookayin
from nvim-treesitter-context.
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.
from nvim-treesitter-context.
And there's nothing I can do to fix this? Do I have to live without treesitter-context now? 🥺
from nvim-treesitter-context.
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.
from nvim-treesitter-context.
Stacktrace please. However this is likely not an issue with this plugin.
Crashes should be reported to neovim core with a stacktrace.
from nvim-treesitter-context.
For me the only solution was to uninstall treesitter-context, not had a single crash since then.
from nvim-treesitter-context.
I'm facing the same issue too:
from nvim-treesitter-context.
Can't help without a stacktrace. Sorry
I tried to log everything, but the crash is happening and no logs are been generated
from nvim-treesitter-context.
Can't help without a stacktrace. Sorry
If you give us some way to generate, I will be happy to try
from nvim-treesitter-context.
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:
... <- successful logs
Error executing vim.schedule lua callback: ...vim-treesitter-context/lua/treesitter-context/render.lua:68: 'height' key must be a positive Integer
stack traceback:
[C]: in function 'nvim_win_set_config'
...vim-treesitter-context/lua/treesitter-context/render.lua:68: in function 'display_window'
...vim-treesitter-context/lua/treesitter-context/render.lua:337: in function 'open'
.../lazy/nvim-treesitter-context/lua/treesitter-context.lua:50: in function 'open'
.../lazy/nvim-treesitter-context/lua/treesitter-context.lua:111: in function <.../lazy/nvim-treesitter-context/lua/treesitter-context.lua:92>
... <- cleanup 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 dbcd938
I had this issue.
@lewis6991 let me know if you need more info
from nvim-treesitter-context.
Related Issues (20)
- Q: is there a way to replicate GitHub's context? HOT 4
- Error message when opening the command line window with q: HOT 3
- invaild node type in haskell HOT 1
- Unable to load context query for c_sharp HOT 6
- Crash on empty first line when number line is on (markdown) HOT 3
- No context causes negative height HOT 1
- I wish that pluggin work on popup window HOT 2
- Applying parsers to additional filetypes HOT 3
- Parenthesis not highlighted in context HOT 1
- C_sharp scm file broken again HOT 1
- Allow jumping to nearest context with go_to_context()
- #make-range! support HOT 2
- Regression: some other things are broken at startup with `syntax on` HOT 1
- Markdown headers aren't highlighted in the context window HOT 2
- OCaml support doesn't work HOT 2
- Hidden files accidentally added? HOT 1
- C++ multiline Lambda use as context - similar to if? HOT 1
- Language specific patterns are ignored HOT 1
- How to prevent trimming of the context as I scroll up? HOT 3
- Suggestion: Highlight Similarities to VSCode's Sticky Scroll and JetBrains' Sticky Lines in README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-treesitter-context.