The gotmpl grammar entry in languages.toml points to a repository that no longer exists:
[[grammar]]
name = "gotmpl"
source = { git = "https://github.com/dannylongeuay/tree-sitter-go-template", rev = "395a33e08e69f4155156f0b90138a6c86764c979" }
curl -s -o /dev/null -w "%{http_code}\n" https://github.com/dannylongeuay/tree-sitter-go-template returns 404.
Confirmed on Fedora's packaged helix 25.07.1-11.fc44 (hx --grammar fetch).
Impact: hx --grammar fetch doesn't fail cleanly on the dead repo — it drops into a credential prompt ("Username for 'https://github.com'"), which hangs any non-interactive invocation (e.g. topgrade, CI, scripted grammar updates) instead of skipping or erroring out.
Steps to reproduce:
hx --grammar fetch on a fresh config (no local languages.toml override)
- Observe it prompts for a GitHub username instead of failing
Workaround: excluding the grammar via a user languages.toml:
use-grammars = { except = ["gotmpl"] }
Two separate things worth fixing:
- The dead/renamed source for
gotmpl in languages.toml.
libgit2-backed fetch falling back to an auth prompt on a 404 instead of failing immediately — this turns any single broken grammar entry into a silent hang for non-interactive tooling.
The
gotmplgrammar entry inlanguages.tomlpoints to a repository that no longer exists:[[grammar]]
name = "gotmpl"
source = { git = "https://github.com/dannylongeuay/tree-sitter-go-template", rev = "395a33e08e69f4155156f0b90138a6c86764c979" }
curl -s -o /dev/null -w "%{http_code}\n" https://github.com/dannylongeuay/tree-sitter-go-templatereturns 404.Confirmed on Fedora's packaged helix 25.07.1-11.fc44 (
hx --grammar fetch).Impact:
hx --grammar fetchdoesn't fail cleanly on the dead repo — it drops into a credential prompt ("Username for 'https://github.com'"), which hangs any non-interactive invocation (e.g. topgrade, CI, scripted grammar updates) instead of skipping or erroring out.Steps to reproduce:
hx --grammar fetchon a fresh config (no local languages.toml override)Workaround: excluding the grammar via a user
languages.toml:use-grammars = { except = ["gotmpl"] }
Two separate things worth fixing:
gotmplinlanguages.toml.libgit2-backed fetch falling back to an auth prompt on a 404 instead of failing immediately — this turns any single broken grammar entry into a silent hang for non-interactive tooling.