just icon indicating copy to clipboard operation
just copied to clipboard

just --completions bash reports internal error

Open giokara-work opened this issue 7 months ago • 6 comments

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.

giokara-work avatar May 13 '25 09:05 giokara-work

+1, also getting this. Same version, same install method, same os.

sean-abbott avatar May 16 '25 19:05 sean-abbott

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.

darsor avatar May 17 '25 04:05 darsor

As a test/workaround, does installing with cargo install --locked just get it working correctly?

laniakea64 avatar May 18 '25 23:05 laniakea64

As a test/workaround, does installing with cargo install --locked just get it working correctly?

For me this workaround fixes the issue

mlesin avatar May 20 '25 06:05 mlesin

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…

musicinmybrain avatar May 20 '25 19:05 musicinmybrain

locked also works for me.

sean-abbott avatar May 22 '25 14:05 sean-abbott

Fixed in #2800, sadly by pinning clap_complete to an out-of-date version 😅

casey avatar Jul 01 '25 07:07 casey