-
Notifications
You must be signed in to change notification settings - Fork 27
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
Variable declaration and receipe parameters crashes NeoVim #69
Comments
Adding another usecase - receipe parameter declaration with default value
As soon as typing double quote after |
Thanks for the report, I am not sure why nvim seems to struggle so much when every other editor I test with works fine. I think you can I'll take a look... |
Tried this and there's nothing useful or suspicious in logs :( |
Thanks for the report. Are you (or anyone) able to play around with the queries? Just comment things out and see if hiding anything fixes this crash. Unfortunately I have no way to debug this since I haven't been able to replicate it on my system. |
what is your "system" ? |
after some testing, it appears this was broken in 5766e75. this commit and all after exhibit the same behavior when building against treesitter 0.20.8 on neovim v0.9.5
commenting out the following lines from the previously mentioned file lets neovim start. editing lines to not include strings (i.e.,
i actually came across this using my configuration found in this nix flake. if you install nix, you should be able to reproduce this by running |
I most recently tested with 0.10.0-dev on aarch64 macos, and nothing in the config outside of Plug and tree-sitter. But I have also tried a few different versions, and in docker.
Unfortunately that commit is about the biggest change yet since it reworked everything to do with strings :)
Ah, sorry for the confusion. I meant editing the query files, these should be some
Hm, I wonder if I could get that working on CI somehow... #64 could use some help if you have any idea how to just run nvim headlessly on files |
FYI, I can reproduce the same thing (SIGSEGV) with Helix. I tried to update just ts revision to the latest because right now helix has 3y.o revision. Queries do not affect this in any way, without queries the crash still exists. |
Ah thanks, knowing it's a segfault is very helpful. Must be a bug in the external scanner then. I should hook up a fuzzer in CI, unless somebody spots the issue (PRs welcome for either, I won't be able to get to it for a few days) |
This could actually also be related to the Windows timeout #67 (even though that started later) |
Also I have some sorta-helpful debug statements in scanner.c that can help trace this back, either compile with |
Dear all, But the same time the plugin is unusable, so maybe it worth rolling it back to some usable state ? I've been trying to "freeze" to particular commit in Maybe you can suggest other ways to use older version. Thanks in advance. |
This comment was marked as outdated.
This comment was marked as outdated.
The easiest reproduction: echo -n '"' > /tmp/Justfile && tree-sitter parse /tmp/Justfile -0 I'd be able to investigate more on the next weekends (I hope) if no one comes up with a solution faster. |
Thanks for the report! I’ll revert this when I’m back at a computer if I don’t spot an easy fix. |
This was reverted for now #72 |
Hello, after this update - when opening simple test:
echo "test" Error
|
Even more, I tried to uninstall and install
|
Does pinning an old version work? Those errors don't look like they are from this repo. |
As I already mentioned, I can't make any older version work, even year old ones. |
The readme has and nvim-treesitter has instructions for using a local repo. Follow those and play around as needed. I would recommend trying an older version (specifically if 27b2d8a works, since it is the point before reverted commits) and trying with queries commented out (starting with injections.scm since it seems like it may be struggling there). If you find a fix then I can review a PR, but my focus needs to be on adding back what was lost in the revert. |
Sorry, you probably misunderstood me. I don't want and I am unable to manually compile something locally, I just need a way how to make this pluging work. |
Tree-sitter grammars always get compiled locally, regardless of whether nvim does it or NPM.
Unfortunately, I really just need to ask that you either pin an older version (which others have been able to do) or help by submitting a fix to help the situation (which can also be a revert of specific commits). I am not going to dig deep into getting this temporary revert to work when it doesn't even have correct string parsing. I would much rather work on getting the original issue solved. |
Hello @tgross35
Unfortunately, as I mentioned few times already, I was unable to do this - because I am receiving those compilation errors when try to pin any previous version, even one year old. So I am asking for any suggestion how can I make older version work for me, because right now I can't edit any of my justfiles :( |
Then don't use tree-sitter-just. You won't have syntax highlighting, that's it.
99% that the problem is not in tree-sitter-just because the author, me and probably a bunch of other people can compile it (CI works too). Try to find error in your vim plugin configuratoin or idk, I personally don't use nvim. Sorry if this sounds aggressive, but you've already been explained several times and you're still trying to convince the author to solve your problem, which he can't even reproduce. |
The problem is that author doing changes without testing and breaking the plugin functionality completely. And starting from New Year approx, I am only doing bug reports that plugin stopped working because author is not doing proper testing and alwasy just replies that he can't reproduce in his setup. I am jsut trying to ask for getting some stable state like it was before intorducing those breaking changes I had zero issues with this plugin before those breaking changes were introduced in the end of previous year. While I can pin any other plugin to previous version if they crash, I can't do the same with only this plugin. |
This is frustrating. I need to remind you of a few things:
The license states I do not intend to comment more on this thread as it is nonproductive. Submit PRs, wait patiently until I get a chance to fix everything, or do not use this plugin. |
This segfault is proving extremely difficult to track down. If anyone has ideas, I'm open to them. Details:
All of this is sort of pointing me to an issue that might be fixed upstream, since If anyone has any ideas, I could use a few 🙂 |
Actually it looks like TS does indeed pass |
Has anybody run into this recently? The scanner changes from #79 were merged a couple weeks ago, which hopefully fixed things. |
It's working fine here, thanks for you efforts @tgross35 |
Thanks for the report :) I'll close this, please feel free to open a new issue if there are further problems |
Hello @tgross35
justfile
to reproduceNeoVim just crashes, no errors. It crashes both on opening file and on editing -when typing double quote after
:=
.I can't find any logs to additionaly provide. Ready to provide any debug info if you guide me.
I was trying to go back in history for few days. looks like the bug was introduced not recently.
The text was updated successfully, but these errors were encountered: