syntax highlighting on Alpine Linux didn't work #9683
-
I've just updated my system and suddenly the syntax highlighting didn't work. Previously it works but I need to install the grammar this way
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 7 replies
-
The way that alpine package tree sitter grammars sepertely is not supported by us. We require grammars match the exact commit that we use in our We also don't maintain the alpine package (or any package manager package) so you need to report this to the maintainer of the alpine package and not upstream |
Beta Was this translation helpful? Give feedback.
-
I was also having this issue. Installing the
Now just fetch and build the grammars and you should be good to go:
|
Beta Was this translation helpful? Give feedback.
-
As a workaround, you can remove tree-sitter package and build tree-sitter libraries with the command "hx -g build" it should install the libraries in "$HOME/.config/helix/runtime/grammars" |
Beta Was this translation helpful? Give feedback.
-
Hello ! I've had the same problem. A fix that works is creating a queries folder at (P.S you do not need to have the tree-sitter-grammars alpine package installed). |
Beta Was this translation helpful? Give feedback.
-
I can confirm that symlinking ~/.config/helix/runtime/grammars/sources//queries to ~/.config/helix/runtime/queries/ fixes the issue. Can please someone from the Team explain, how exactly are those symlinks supposed to be created by a properly installed Helix? As far as I can see, "hx -g fetch" does a "git clone". It is not obvious why a git clone should specifically fail on Alpine, or why the build procedure from the repo should fail specifically on Alpine. In order to be aber to blame Alpine, we first need to explain how exactly this is supposed to WORK CORRECTLY: who creates those symlinks normally?? |
Beta Was this translation helpful? Give feedback.
-
Thank you, Alpine issue here: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16336 . I have one more question about the "Building from source" recipe. Does the Cargo file not provide an install target? Becuase the documentation strangely asks the user to copy stuff by hand:
|
Beta Was this translation helpful? Give feedback.
-
Hi, What are these packages about? helix-tree-sitter-system I couldn't find further documentation on them explaining why they exist. Will read the source code for the packages next to see what they do 🦆 |
Beta Was this translation helpful? Give feedback.
-
Helix comes with its own customized Tree Sitter version and wont
properly work with the original one.
"System" is the original package and "vendor" is the Tree Sitter
customized for Helix.
In the Helix documentation, they require you to use the customized tree
sitter.
In my opinion, until Helix is able to use the original external
dependency, the customized Tree Sitter should be part of the Helix
package.
Not only that people need to hunt for it and understand why Helix
doesn't work with the default Tree Sitter,
but there is also the risk that someone else works in good faith on the
packages and "cleans up".
I tried to convince the Helix package maintainer to include the
customized tree sitter in the Helix package, but I had no success.
Please at least don't remove any of the two Tree Sitter packages: they
are both needed.
…On 2025-08-28 00:03, Jorge Gomez wrote:
Hi,
What are these packages about?
https://pkgs.alpinelinux.org/packages?name=helix*&branch=edge&repo=&arch=x86_64&origin=&flagged=&maintainer=
[1]
helix-tree-sitter-system
helix-tree-sitter-vendor
I couldn't find further documentation on them explaining why they
exist.
Will read the source code for the packages next to see what they do
🦆
--
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
You are receiving this because you commented.Message ID:
***@***.***>
Links:
------
[1]
https://pkgs.alpinelinux.org/packages?name=helix*&branch=edge&repo=&arch=x86_64&origin=&flagged=&maintainer=
[2]
#9683 (comment)
[3]
https://github.com/notifications/unsubscribe-auth/AVU74FU6EAZSV4ZIJADR7OD3PYTLFAVCNFSM6AAAAABDSEOUSGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMRTG44DSNQ
|
Beta Was this translation helpful? Give feedback.
Hi,
What are these packages about?
https://pkgs.alpinelinux.org/packages?name=helix*&branch=edge&repo=&arch=x86_64&origin=&flagged=&maintainer=
helix-tree-sitter-system
helix-tree-sitter-vendor
I couldn't find further documentation on them explaining why they exist.
Will read the source code for the packages next to see what they do 🦆