Skip to content

helix install fails building tree sitter grammar. #13836

@SebastianJL

Description

@SebastianJL

Summary

Building of tree sitter grammar failed on installation from source.

Reproduction Steps

I tried installing helix from source (master 974ac9e). Shown here is the output of the second attempt at running the command because it has a shorter output while still showing the error cause. Paths have been redacted.

$ git branch -v
* master 974ac9ea Sidra Theme - A super customizable, balanced dark theme for Helix (#13575)
$ cargo install --path helix-term --locked
  Installing helix-term v25.1.1 (~/tmp/helix/helix-term)
    Updating crates.io index
   Compiling helix-tui v25.1.1 (~/tmp/helix/helix-tui)
   Compiling helix-term v25.1.1 (~/tmp/helix/helix-term)
error: failed to run custom build command for `helix-term v25.1.1 (~/tmp/helix/helix-term)`

Caused by:
  process didn't exit successfully: `~/tmp/helix/target/release/build/helix-term-d42b2574ac41d7f3/build-script-build` (exit status: 101)
  --- stdout
  Fetching 242 grammars
  241 up to date git grammars
  Failure 1/1: hare Git command failed.
  Stdout:
  Stderr: error: Server does not allow request for unadvertised object 07035a248943575444aa0b893ffe306e1444c0ab


  --- stderr
  thread 'main' panicked at helix-term/build.rs:5:26:
  Failed to fetch tree-sitter grammars: 1 grammars failed to fetch
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `helix-term v25.1.1 (~/tmp/helix/helix-term)`, intermediate artifacts can be found at `~/tmp/helix/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

I expected this to happen:
Installation without an error.

Instead, this happened:
Compilation error

Helix log

Helix log not available since I couldn't install helix.

Platform

Linux MEPU-5CG2304GJ3 6.6.87.2-microsoft-standard-WSL2

Terminal Emulator

Windows Terminal

Installation Method

source

Helix Version

25.01.1-456-g974ac9ea

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