JavaScript/TSX Invalid Node Type "function_expression" #14692
-
SummaryWhen I pulled from master yesterday the syntax highlighting was broken for The commit logs from master shows that its comming from here Reproduction StepsPull from master HEAD I tried this:
I expected this to happen: Instead, this happened: Helix logPlatformmacOS Terminal EmulatorWarp Installation Methodsource Helix Versionhelix 25.07.1 (a05c151) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
|
does |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. Nope, it doesn't. I tried this command multiple times. I Deleted the repo and runtime folder |
Beta Was this translation helpful? Give feedback.
-
|
ok hm not quite sure then, can you try out the following, so i can potentially troubleshoot:
thanks! and i'll hopefully be able to help you then ... |
Beta Was this translation helpful? Give feedback.
-
|
Here. hx --version
helix 25.07.1 (a05c151b)cat ~/.config/helix/runtime/grammars/sources/javascript/.git/HEAD
f772967f7b7bc7c28f845be2420a38472b16a8eeI renamed |
Beta Was this translation helpful? Give feedback.
-
|
ok i think i know what the problem is:
that commit, a05c151, is not the latest master but the commit of the 25.7.01 release. it seems that your the as a last thing, can you run not entirely sure how to fix that (since i have no clue about macos), but i would first of all look at the |
Beta Was this translation helpful? Give feedback.
-
|
Yup, |
Beta Was this translation helpful? Give feedback.
ok i think i know what the problem is:
that commit, a05c151, is not the latest master but the commit of the 25.7.01 release. it seems that your
hxbinary does not point to~/.cargo/bin/hx(maybe that isn't in the path), but instead picks up the version downloaded via your system package manager or app store or whatever.the
~/.cargo/bin/hxcorrectly points to the new version of tree-sitter-javascript (3a837b6f3658ca3618f2022f8707e29739c91364).as a last thing, can you run
which hx? that should give you a path, that is not~/.cargo/bin/hx, but somewhere else.not entirely sure how to fix that (since i have no clue about macos), but i would first …