just --completions bash reports internal error
Where?
just --version: 1.40.0
OS:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
Means of installation: cargo install just
What?
Running just --completions bash returns error: "error: Internal runtime error, this may indicate a bug in just: Failed to find text: ...". Full output available in just_error.txt.
+1, also getting this. Same version, same install method, same os.
Same issue here with Just 1.40.0 on Arch Linux. However, after copying the output (minus the error messages) into /usr/share/bash-completion/completions/just, it seems to work just fine.
As a test/workaround, does installing with cargo install --locked just get it working correctly?
As a test/workaround, does installing with
cargo install --locked justget it working correctly?
For me this workaround fixes the issue
We see this in Fedora’s rust-just package. Based on the first failing test build, this is probably associated with updating clap_complete from 4.5.48 to 4.5.50.
I guess it makes sense that expecting particular implementation details in the clap_complete completion script would be brittle…
locked also works for me.
Fixed in #2800, sadly by pinning clap_complete to an out-of-date version 😅