Skip to content
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

bug: infinite loop in certain context #143

Open
1 of 2 tasks
goulf-3m opened this issue Jun 27, 2024 · 2 comments
Open
1 of 2 tasks

bug: infinite loop in certain context #143

goulf-3m opened this issue Jun 27, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@goulf-3m
Copy link

goulf-3m commented Jun 27, 2024

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-julia

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

tree-sitter 0.22.6 (b40f342067a89cd6331bf4c27407588320f3c263)

Describe the bug

nvim will be blocked by a infinite loop in certain context.
In my setup, the error disappears when both matchup' and highlight' options for `nvim-trreesitter' are disabled.

Steps To Reproduce/Bad Parse Tree

  1. write a file.jl
function a()
    map([1:10]) do f
    end
end
  1. in the `do' block, type
for hello i
  1. nvim will block the instant `i' is typed.

If `hello' is replaced by a very long name, the error disappears.

Expected Behavior/Parse Tree

Nvim (treesitter) should not block when a partial expression is typed.

Repro

No response

@goulf-3m goulf-3m added the bug Something isn't working label Jun 27, 2024
@silva-guimaraes
Copy link

I'm experiencing the same issue from what I tested. For me, the moment I type an 'i' into the do block neovim will instantly freeze. Disabling the highlighting alone solves it in my case

@clason
Copy link

clason commented Nov 15, 2024

Cannot reproduce. Please test with the latest version of Neovim (nightly from the release page) and provide minimal reproducible steps (including a minimal neovim config!), then open an issue at Neovim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants