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

Use usage through mise automatically if it's not installed in fish shell #1950

Open
wants to merge 3,584 commits into
base: main
Choose a base branch
from

Conversation

onnimonni
Copy link

Hey!

I tried to read the documentation but the installing the completions was not straightforward and I ended up seeing the same error as in: #1710

Error: usage CLI not found. This is required for completions to work in mise.
See https://usage.jdx.dev for more information.

By enabling usage automatically through mise this problem goes away 💪 I think it's quite sensible default to run this automatically if usage can't be found?

If my installation steps below don't make sense and I should have installed mise in other way let me know and I will be happy to update the docs too. Thanks for creating this amazing piece of software 💪🙇

Steps to reproduce the issue and how I installed mise

I installed fish in the following way to my MacBook:

brew install mise

I then added following lines into my ~/.config/fish/config.fish to enable mise automatically:

if type -q mise
  mise activate | source
end

I still wasn't able to get the mise autocompletions by pressing the tab so I then used following command:

mise completion fish > ~/.config/fish/completions/mise.fish

Which gave me the original issue above which I was able to fix by using the mise use -g usage command.

renovate bot and others added 30 commits March 16, 2024 12:49
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix(deps): update rust crate toml_edit to 0.22.7

* fix deprecation warnings

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeff Dickey <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* fix: display error message from calling `usage`

* ci: set GITHUB_TOKEN to cause linting modifications to trigger CI

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: jdx <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* feat: very basic dependency support

* ci(release-plz): removed some debugging logic
mise-en-dev and others added 28 commits April 22, 2024 17:01
This should have happened in the last release but I missed it. This should remain experimental
for a few weeks/months while people test it out. It should also have an e2e test for it before
moving to non-experimental.
* [bug] Fix `mise x cargo:eza` not installing during run

Addresses a bug with `mise exec` where using an unversioned tool
reference causes the underlying binary to not be installed on first use.

Instead we treat an unqualified tool as having tool@latest and handle
that in the else clause.

* Revert "[bug] Fix `mise x cargo:eza` not installing during run"

This reverts commit 4952e54.

* [bug] Fix `mise x cargo:eza` not installing during run

Addresses a bug with `mise exec` where using an unversioned tool
reference causes the underlying binary to not be installed on first use.

Instead we treat an unqualified tool which has no current install as having tool@latest
and handle that in the else clause.

The desired behavior is:
eg mise x cargo:eza
- If any version of cargo:eza exists, use it
- If no version exists, install latest

* fixed clippy warnings

* only use @latest default for `mise x`

* fixed test_system e2e test

---------

Co-authored-by: Jeff Dickey <[email protected]>
this was causing conflicts with the internal linters
ghcr.io/jdx/mise:mise does not seem to be used by anything so I'm removing it
* fix(devcontainer): install python3-venv.

This is required by the e2e test of pipx, which uses system packages.

* fix(docker:e2e): pass any GITHUB_API_TOKEN to the e2e test container.
…5.0 (jdx#1947)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* refactor: converted just tasks in mise tasks.

* fix(ci): install mise instead of just in the test workflow.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.