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

completion error: Unknown command: tac #1485

Closed
zzhaolei opened this issue Jan 19, 2024 · 3 comments · Fixed by #1486
Closed

completion error: Unknown command: tac #1485

zzhaolei opened this issue Jan 19, 2024 · 3 comments · Fixed by #1486
Labels
bug Something isn't working

Comments

@zzhaolei
Copy link

Describe the bug
fish shell completion error: fish: Unknown command: tac

To Reproduce
type mise use - and press Tab

Expected behavior
Correct completion

mise doctor output

mise version:
  2024.1.23 macos-arm64 (1069155 2024-01-18)

build:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Thu, 18 Jan 2024 20:29:17 +0000
  Rust Version: rustc 1.75.0 (82e1608df 2023-12-21)
  Profile: release

shell:
  fish
  fish, version 3.7.0

mise data directory:
  /Users/zzhaolei/.local/share/mise

mise environment variables:
  MISE_SHELL=fish

settings:
  {
    "activate_aggressive": false,
    "all_compile": false,
    "always_keep_download": false,
    "always_keep_install": false,
    "asdf_compat": false,
    "cargo_binstall": true,
    "color": true,
    "disable_default_shorthands": false,
    "disable_tools": [],
    "experimental": false,
    "jobs": 4,
    "legacy_version_file": true,
    "legacy_version_file_disable_tools": [],
    "node_compile": false,
    "not_found_auto_install": true,
    "paranoid": false,
    "plugin_autoupdate_last_check_duration": "7d",
    "python_compile": false,
    "python_default_packages_file": "/Users/zzhaolei/.default-python-packages",
    "python_patch_url": null,
    "python_precompiled_os": null,
    "python_patches_directory": null,
    "python_precompiled_arch": null,
    "python_pyenv_repo": "https://github.com/pyenv/pyenv.git",
    "python_venv_auto_create": false,
    "raw": false,
    "shorthands_file": null,
    "task_output": null,
    "trusted_config_paths": [],
    "quiet": false,
    "verbose": false,
    "yes": false,
    "ci": false,
    "cd": null,
    "debug": false,
    "env_file": null,
    "trace": false,
    "log_level": "info"
  }

config files:
  ~/.tool-versions

plugins:
  bun      (core)
  deno     (core)
  go       (core)
  java     (core)
  node     (core)
  python   (core)
  ruby     (core)

toolset:
  go@system, python@3.11.5, zig@0.11.0

No problems found

Additional context
error message:

~/.local/share/fisher/completions/mise.fish (line 1):
mise ls-remote --all | tac
                       ^~^
in command substitution
	called on line 386 of file ~/.local/share/fisher/completions/mise.fish
in function '__mise_tool_versions'
in command substitution
~/.local/share/fisher/completions/mise.fish (line 386): Unknown command
        set -g __mise_tool_versions_cache (mise plugins --core --user) (mise ls-remote --all | tac)
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~^
in function '__mise_tool_versions'
in command substitution
@zzhaolei zzhaolei added the bug Something isn't working label Jan 19, 2024
@jdx
Copy link
Owner

jdx commented Jan 19, 2024

sort -r is hopefully more portable

jdx added a commit that referenced this issue Jan 19, 2024
hopefully this is more portable

Fixes #1485
jdx added a commit that referenced this issue Jan 19, 2024
hopefully this is more portable

Fixes #1485
jdx added a commit that referenced this issue Jan 19, 2024
hopefully this is more portable

Fixes #1485
@jdx
Copy link
Owner

jdx commented Jan 19, 2024

I have a more portable fix, but just as a personal thing I suggest installing coreutils on macos with brew install coreutils

it avoids problems like this, but of course mise should work without that

@jdx jdx closed this as completed in #1486 Jan 19, 2024
jdx added a commit that referenced this issue Jan 19, 2024
hopefully this is more portable

Fixes #1485
@zzhaolei
Copy link
Author

it works👍

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

Successfully merging a pull request may close this issue.

2 participants