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

fish shell completions conflict with rg completions provided by fish #1485

Closed
ronjouch opened this issue Feb 14, 2020 · 9 comments
Closed

fish shell completions conflict with rg completions provided by fish #1485

ronjouch opened this issue Feb 14, 2020 · 9 comments
Labels
bug A bug.

Comments

@ronjouch
Copy link

ronjouch commented Feb 14, 2020

What version of ripgrep are you using?

ripgrep 11.0.2 (rev 9cb93ab)
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)

How did you install ripgrep?

Official amd64 .deb package.

What operating system are you using ripgrep on?

Ubuntu 19.10 x64

Describe your question, feature request, or bug.

The fish completions conflict with the completions provided by fish's official Ubuntu (.deb) package, https://launchpad.net/~fish-shell/+archive/ubuntu/release-3 , causing installation to fail.

Fish devs suggest at fish-shell/fish-shell#5822 (comment) that 3rd-party completions should be packaged to /usr/share/fish/vendor_completions.d instead of /usr/share/fish/completions, which is fish's sole kingdom.

@BurntSushi
Copy link
Owner

I don't maintain downstream packages. Please file bugs with downstream packages with downstream packagers.

@BurntSushi
Copy link
Owner

BurntSushi commented Feb 14, 2020

Errmmm, well it looks like the debian package that I provide has this wrong too:

["deployment/deb/rg.fish", "usr/share/fish/completions/rg.fish", "644"],

Is that what you meant by "official" deb package? I took that to mean the deb package in Debian's repositories. But it looks like this should be fixed in my deb package as well. (Which is not official. It's a binary package provided purely as a convenience.)

@BurntSushi BurntSushi reopened this Feb 14, 2020
@BurntSushi BurntSushi added the bug A bug. label Feb 14, 2020
@ronjouch
Copy link
Author

Errmmm, well it looks like the debian package that I provide has this wrong too:

["deployment/deb/rg.fish", "usr/share/fish/completions/rg.fish", "644"],

Is that what you meant by "official" deb package? I took that to mean the deb package in Debian's repositories. But it looks like this should be fixed in my deb package as well. (Which is not official. It's a binary package provided purely as a convenience.)

Yup, by "official" I meant the package published in the Releases page. Sorry for the confusion and thanks for re-opening.

BurntSushi added a commit that referenced this issue Feb 17, 2020
It looks like `completions` is owned by Fish itself. Third party
completions should go in `vendor_completions.d`.

Fixes #1485
@thernstig
Copy link

@BurntSushi Any chance you would push a new release soon? Considering the users of fish shell cannot use ripgrep currently without some workarounds.

@BurntSushi
Copy link
Owner

@thernstig
Copy link

I assume then this does not fall under

One exception to this is high impact bugs.

@zanchey
Copy link

zanchey commented Feb 22, 2020

A workaround in the meantime is to run dpkg-divert --add --divert /usr/share/fish/completions/rg.fish.0 --rename --package ripgrep /usr/share/fish/completions/rg.fish

@BurntSushi
Copy link
Owner

@thernstig Do you really think it's worth needling me about how I schedule my free time to do a release? I don't. I mean, I wrote the policy. I linked the FAQ entry. Obviously I'm telling you that it applies. Moreover, this isn't some written-in-stone-law that I have to obey. I made the language in the FAQ purposely vague to try to avoid people trying to lawyer me over it. I've now made it even more vague: ecec614

In any case, no, I do not see this as a high impact bug. First of all, this isn't a regression. Nothing changed in the last release that made this a problem. Something else outside of my control appears to have changed. Second of all, my fix only applies to the ripgrep binary Debian package that I distribute. This fix does nothing to resolve any problems ripgrep may or may not have with other packages. If you all of a sudden can't install the binary Debian package, then you can download the generic binary releases until the next release comes out. Or build the binary Debian package from source. Or, if you're using Debian, use whatever release of ripgrep is in the Debian repos. Or, it looks like @zanchey posted a work-around (thank you for that).

@thernstig
Copy link

It was merely a question, not implying it does fall under it. I think you read too much into my answer. Thanks for explaining. All good 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug.
Projects
None yet
Development

No branches or pull requests

4 participants