Skip to content

hx --grammar fetch fails when using Helix built with Nix #3310

Closed
@AumyF

Description

@AumyF

Summary

helix --grammar fetch fails when using Helix built with Nix, since its runtime directory is set in Nix store which is not writable.

Reproduction Steps

  1. nix shell github:helix-editor/helix
  2. hx --grammar fetch

Helix log

Error: Failed to fetch some grammar(s)

Caused by:
    0: Could not create grammar directory "/nix/store/5znz3zwidqndnqa54ibhv1yfgxd5xmip-helix-runtime/grammars/sources/protobuf"
    1: Permission denied (os error 13)

Platform

Arch Linux

Terminal Emulator

foot 1.12.1

Helix Version

helix 22.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions