Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install helix directly from git #1292

Closed
ghost opened this issue Dec 18, 2021 · 9 comments
Closed

Can't install helix directly from git #1292

ghost opened this issue Dec 18, 2021 · 9 comments
Labels
C-bug Category: This is a bug

Comments

@ghost
Copy link

ghost commented Dec 18, 2021

Hi,

I can't install helix-term from git directly with cargo, this is what I do usually with my other rust packages:

cargo install --git https://github.com/helix-editor/helix.git
When cargo download all submodules, it stopped at tree-sitter-yaml

@ghost ghost added the C-bug Category: This is a bug label Dec 18, 2021
@sudormrfbin
Copy link
Member

Was there any specific error output ?

@ghost
Copy link
Author

ghost commented Dec 18, 2021

This is what I got

cargo install --git https://github.com/helix-editor/helix.gitit
    Updating git repository `https://github.com/helix-editor/helix.git`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-agda`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-bash`
    Updating git submodule `https://github.com/Bash-it/bash-it.git`
    Updating git submodule `https://github.com/ztombol/bats-assert`
    Updating git submodule `https://github.com/bats-core/bats-core`
    Updating git submodule `https://github.com/ztombol/bats-file`
    Updating git submodule `https://github.com/ztombol/bats-support`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-c`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-c-sharp`
    Updating git submodule `https://github.com/uyha/tree-sitter-cmake`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-cpp`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-css`
    Updating git submodule `https://github.com/UserNobody14/tree-sitter-dart.git`
    Updating git submodule `https://github.com/elixir-lang/tree-sitter-elixir`
    Updating git submodule `https://github.com/theHamsta/tree-sitter-glsl.git`
    Updating git submodule `https://github.com/libretro/glsl-shaders.git`
    Updating git submodule `https://github.com/nvpro-samples/vk_raytrace.git`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-go`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-haskell`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-html`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-java`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-javascript`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-json`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-julia`
    Updating git submodule `https://github.com/latex-lsp/tree-sitter-latex`
    Updating git submodule `https://github.com/cbarrete/tree-sitter-ledger`
    Updating git submodule `https://github.com/nvim-treesitter/tree-sitter-lua`
    Updating git submodule `https://github.com/MDeiml/tree-sitter-markdown`
    Updating git submodule `https://github.com/cstrahan/tree-sitter-nix`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-ocaml`
    Updating git submodule `https://github.com/ganezdragon/tree-sitter-perl`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-php`
    Updating git submodule `https://github.com/yusdacra/tree-sitter-protobuf.git`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-python`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-ruby`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-rust`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-scala`
    Updating git submodule `https://github.com/Himujjal/tree-sitter-svelte`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-swift`
    Updating git submodule `https://github.com/ikatyang/tree-sitter-toml`
    Updating git submodule `https://github.com/ikatyang/tree-sitter`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-tsq`
    Updating git submodule `https://github.com/tree-sitter/tree-sitter-typescript`
    Updating git submodule `https://github.com/ikatyang/tree-sitter-vue`
    Updating git submodule `https://github.com/ikatyang/tree-sitter`
    Updating git submodule `https://github.com/szebniok/tree-sitter-wgsl`
    Updating git submodule `https://github.com/ikatyang/tree-sitter-yaml`
    Updating git submodule `https://github.com/ikatyang/tree-sitter`
    Updating git submodule `https://github.com/yaml/yaml-test-suite`
error: failed to update submodule `helix-syntax/languages/tree-sitter-yaml`

Caused by:
  failed to update submodule `yaml-test-suite`

Caused by:
  object not found - no match for id (053b73a9c12c0cd76da797fdc2ffbd4bb5264c12); class=Odb (9); code=NotFound (-3)

cargo install --path helix-term works perfectly, but that involves to git clone the repo first, which I'm not really fan to do each time.
I prefer the direct method with cargo install --git

@archseer
Copy link
Member

Is it possible to avoid recursive cloning when using --git?

@archseer
Copy link
Member

@ghost
Copy link
Author

ghost commented Dec 19, 2021

So I tried both solutions from a live ISO, and both failed, I still get the same error.

I didn't find a way to prevent recursive cloning using cargo install --git
The tool suggest different options like --features --bin or --example but none of them worked

Have you tried publish helix-term on crates.io, it'll be easier to install from cargo without using the --git option
cargo install helix-term

@sudormrfbin
Copy link
Member

Have you tried publish helix-term on crates.io

#42

@ghost
Copy link
Author

ghost commented Dec 23, 2021

Ok so no way to install it directly from git nor crates.io!

@the-mikedavis
Copy link
Member

the-mikedavis commented Mar 11, 2022

@jJit0 we just removed the submodules in favor of a faster system (#1659) that works after cloning time. Could you try installing from the crate with cargo again? This time it should not take quite so long to clone.

@ghost
Copy link
Author

ghost commented Mar 11, 2022

Ok, it works much better now 😄Thank You😄
I'm using the latest stable version of cargo and rustc

That's what I did cargo install --git https://github.com/helix-editor/helix.git helix-term

@ghost ghost closed this as completed Mar 11, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants