"hx --grammar fetch" fail #14252
Answered
by
the-mikedavis
tshepang
asked this question in
Troubleshooting
-
❯ hx --grammar fetch
Fetching 256 grammars
255 up to date git grammars
Failure 1/1: twig Git command failed.
Stdout:
Stderr: error: Your local changes to the following files would be overwritten by checkout:
build/node_gyp_bins/python3
Please commit your changes or stash them before you switch branches.
Aborting
Error: 1 grammars failed to fetch My tree is also clean ❯ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Aug 25, 2025
Replies: 1 comment
-
I'm not sure what changed with that repository since it was updated but IIRC I also saw this, at least on Windows. You will have to remove the clone of that repository from your runtime directory and re-run |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tshepang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what changed with that repository since it was updated but IIRC I also saw this, at least on Windows. You will have to remove the clone of that repository from your runtime directory and re-run
hx -g fetch
. You can remove$HELIX_RUNTIME/grammars/sources/twig/
(~/.config/helix/runtime/grammars/sources/twig/
by default)