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

[bug] Failed to generate shell completions for bash #7213

Open
orhun opened this issue Jun 15, 2023 · 3 comments
Open

[bug] Failed to generate shell completions for bash #7213

orhun opened this issue Jun 15, 2023 · 3 comments
Labels
platform: Linux priority: 2 medium scope: cli.rs The tauri-cli rust crate status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug

Comments

@orhun
Copy link
Contributor

orhun commented Jun 15, 2023

Describe the bug

For cargo-tauri 1.4.0, I'm getting the following error while generating the shell completions:

        Info Generating completion file for bash...
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_complete-4.3.0/src/generator/utils.rs:26:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Reproduction

Run:

cargo-tauri completions --shell bash

Expected behavior

Successful shell completions generation.

Platform and versions

`1.4.0`

Stack trace

-

Additional context

-

@orhun orhun added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jun 15, 2023
@orhun
Copy link
Contributor Author

orhun commented Jun 15, 2023

Alternatively, see the Arch Linux package which fails to build with bash completions enabled: https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-tauri/-/commit/45b8d3f68390fa89dd325da906cc841714aac9fd

@cymruu
Copy link
Contributor

cymruu commented Aug 2, 2023

related clap issue: clap-rs/clap#4996

@tweidinger tweidinger added priority: 2 medium status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes and removed priority: 1 high labels Aug 7, 2024
@cymruu
Copy link
Contributor

cymruu commented Aug 10, 2024

new related clap issue: clap-rs/clap#3166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux priority: 2 medium scope: cli.rs The tauri-cli rust crate status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug
Projects
Status: 📬Proposal
Development

No branches or pull requests

4 participants