You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run hx --grammar fetch, I get an error related to permission. I can do it with sudo, but this seems a bit weird to me. At least, it is not documented.
Reproduction Steps
I tried this:
hx --grammar fetch
I expected this to happen:
Successfully fetching all grammar sources.
Instead, this happened:
...
Error: Failed to fetch some grammar(s)
Caused by:
0: Could not create grammar directory "/usr/share/helix/runtime/grammars/sources/rust"
1: Permission denied (os error 13)
Note that the last value in the path, rust in the example, is arbitrary, and I get other languages depending on which one fail first.
You shouldn't need to sudo (and I don't recommend it), but in this case your package is installed into /usr/share so we're not able to upgrade those grammars. I guess there needs to be some notion of "system" runtime provided by the package vs user runtime in ~/.config/helix/runtim
Summary
When I run
hx --grammar fetch
, I get an error related to permission. I can do it withsudo
, but this seems a bit weird to me. At least, it is not documented.Reproduction Steps
I tried this:
hx --grammar fetch
I expected this to happen:
Successfully fetching all grammar sources.
Instead, this happened:
Note that the last value in the path,
rust
in the example, is arbitrary, and I get other languages depending on which one fail first.Helix log
The log file is empty.
Platform
Fedora 35
Terminal Emulator
alacritty 0.10.1
Helix Version
helix 22.03 (d4e45fd)
The text was updated successfully, but these errors were encountered: