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

mise completions fail with jq error on fish #3508

Closed
vemoo opened this issue Dec 12, 2024 · 1 comment
Closed

mise completions fail with jq error on fish #3508

vemoo opened this issue Dec 12, 2024 · 1 comment
Labels

Comments

@vemoo
Copy link

vemoo commented Dec 12, 2024

Describe the bug
mise completions fail with:

jq: error: Invalid escape at line 1, column 6 (while parsing '"\\\:"') at <top-level>, line 1:
.[] | (.name | sub(":"; "\\\:")) + ":" + (.description | sub(":"; "\\\:"))
jq: error: Invalid escape at line 1, column 6 (while parsing '"\\\:"') at <top-level>, line 1:
.[] | (.name | sub(":"; "\\\:")) + ":" + (.description | sub(":"; "\\\:"))                                    
jq: 2 compile errors
Error: xx::process (link)

  × exited with code 3
  │ sh -c
  │ mise tasks --json | jq '.[] | (.name | sub(":"; "\\\:")) + ":" + (.description | sub(":"; "\\\:"))'
  │

To Reproduce
type mise and the press <tab>.

Expected behavior
completions should appear.

mise doctor output

version: 2024.12.7 linux-x64 (d21597c 2024-12-12)
activated: yes
shims_on_path: no

build_info:
  Target: x86_64-unknown-linux-gnu
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Thu, 12 Dec 2024 13:48:36 +0000
  Rust Version: rustc 1.83.0 (90b35a623 2024-11-26)
  Profile: release

shell:
  fish
  fish, version 3.7.1

dirs:
  cache: ~/.cache/mise
  config: ~/.config/mise
  data: ~/.local/share/mise
  shims: ~/.local/share/mise/shims
  state: ~/.local/state/mise

config_files:
  ~/.config/mise/config.toml

backends:
  aqua
  asdf
  cargo
  core
  gem
  go
  npm
  pipx
  spm
  ubi
  vfox

plugins:

toolset:
  core:[email protected]
  core:[email protected]
  core:[email protected]
  ubi:jdx/[email protected]

path:
  ~/.local/share/mise/installs/bun/1.1.38/bin
  ~/.local/share/mise/installs/deno/2.1.4/bin
  ~/.local/share/mise/installs/deno/2.1.4/.deno/bin
  ~/.local/share/mise/installs/node/22.12.0/bin
  ~/.local/share/mise/installs/usage/1.5.0/bin
  ~/.volta/bin
  ~/.bun/bin
  ~/.local/bin
  ~/.dotnet
  ~/.cargo/bin
  ~/.dotnet/tools
  ~/.deno/bin
  ~/.local/share/pnpm
  ~/.volta/bin
  /usr/local/sbin
  /usr/local/bin
  /usr/bin
  /usr/lib/emscripten
  /var/lib/flatpak/exports/bin
  /usr/lib/jvm/default/bin
  /usr/bin/site_perl
  /usr/bin/vendor_perl
  /usr/bin/core_perl
  /usr/lib/rustup/bin
  ~/.local/share/JetBrains/Toolbox/scripts

env_vars:
  MISE_SHELL=fish

settings:

No problems found

I think it may be a shell quoting issue related with #3497

@vemoo vemoo added the bug label Dec 12, 2024
@jdx
Copy link
Owner

jdx commented Dec 12, 2024

duplicate #3507

@jdx jdx closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants