withfig/autocomplete

Fig doesn't autocomplete az cli

tomerzaidler opened this issue · 3 comments

Checks

  • I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
  • I have run fig doctor in the affected terminal session
  • I have run fig restart and replicated the issue again

Operating system

macOS 13.6.0 (22G120)

Expected behaviour

Fig should autocomplete az cli.

Actual behaviour

Fig doesn't autocomplete az cli on mac m2.

Steps to reproduce

install fig
install az cli
try to run az commands and wait for autocomplete

Environment

fig-details:
  - 2.16.0
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M2
  - cores: 8
  - mem: 16.00 GB
os-info:
  - macOS 13.6.0 (22G120)
environment:
  - shell: /bin/zsh
  - terminal: vscode
  - cwd: /Users/tomer.zaidler/projects
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: af9d2c01-cdea-4d26-b399-0d89766e47e0
    - FIG_PID: 64251
    - FIG_SET_PARENT: af9d2c01-cdea-4d26-b399-0d89766e47e0
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.16.0
    - PATH: /Users/tomer.zaidler/.nvm/versions/node/v18.18.0/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/homebrew/bin:/opt/homebrew/bin:/Users/tomer.zaidler/.fig/bin:/Users/tomer.zaidler/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - ZDOTDIR: /Users/tomer.zaidler
    - __CFBundleIdentifier: com.microsoft.VSCode

I have encountered the same on M2 chip

Same issue here. Other completions (e.g. gh) do seem to work.
Tab-tab completion does work for az.

AZ CLI info

🐟 ❯ az --version
azure-cli                         2.53.0

core                              2.53.0
telemetry                          1.1.0

Extensions:
account                            0.2.3
rdbms-connect                      1.0.2

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location '/opt/homebrew/Cellar/azure-cli/2.53.0/libexec/bin/python'
Extensions directory '/Users/mitchjans/.azure/cliextensions'

Python (Darwin) 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

fig diagnostics

fig-details:
  - 2.16.0
hardware-info:
  - model:
  - model-id:
  - chip-id: Apple M1 Pro
  - cores: 8
  - mem: 32.00 GB
os-info:
  - macOS 14.0.0 (23A344)
environment:
  - shell: /opt/homebrew/Cellar/fish/3.6.1/bin/fish
  - terminal: hyper
  - cwd: [REDACTED]
  - exe-path: /Users/mitchjans/.fig/bin/fig
  - install-method: unknown
  - env-vars:
    - __CFBundleIdentifier: co.zeit.hyper
    - FIG_SET_PARENT:
    - FIG_PARENT:
    - PATH: [REDACTED]
    - TERM: screen-256color
    - FIGTERM_SESSION_ID: 6ec23991-bcfe-43ac-868a-4f947ebf56a7
    - SHELL: /opt/homebrew/bin/fish
    - FIG_TERM: 2.16.0
    - FIG_PID: 80500
    - FIG_TERM_TMUX: 2.16.0

Completion specs are contributed by the community. If you are interested in adding support for the az CLI please open up an issue or a PR in withfig/autocomplete repo.