withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.06k stars 63 forks source link

"zimfw: Unknown action" error on startup #2071

Open sachamorgese opened 1 year ago

sachamorgese commented 1 year ago

Checks

Operating system

macOS 13.0.1 (22A400)

Expected behaviour

No error logged when starting a new instance of the terminal

Actual behaviour

This message gets logged every time I use the terminal. It only happens at startup and everything seems to work fine, but it's really annoying

zimfw: Unknown action 

Usage: zimfw <action> [-q|-v]

Actions:
  build           Build /Users/sacha/.local/share/fig/plugins/zimfw_zimfw/init.zsh and /Users/sacha/.local/share/fig/plugins/zimfw_zimfw/login_init.zsh.
                  Also does check-dumpfile and compile. Use -v to also see their output.
  check-dumpfile  Does clean-dumpfile if new completion configuration needs to be dumped.
  clean           Clean all. Does both clean-compiled and clean-dumpfile.
  clean-compiled  Clean Zsh compiled files.
  clean-dumpfile  Clean completion dumpfile.
  compile         Compile Zsh files.
  help            Print this help.
  info            Print Zim and system info.
  list            List all modules currently defined in /Users/sacha/.zimrc.
                  Use -v to also see the modules details.
  init            Same as install, but with output tailored to be used at terminal startup.
  install         Install new modules. Also does build, check-dumpfile and compile. Use -v to
                  also see their output, any on-pull output, and see skipped modules.
  uninstall       Delete unused modules. Prompts for confirmation. Use -q for quiet uninstall.
  update          Update current modules. Also does build, check-dumpfile and compile. Use -v
                  to also see their output, any on-pull output, and see skipped modules.
  upgrade         Upgrade zimfw. Also does compile. Use -v to also see its output.
  version         Print zimfw version.

Options:
  -q              Quiet (yes to prompts, and only outputs errors)
  -v              Verbose (outputs more details)
cp: /git-hooks/post-merge.zsh: No such file or directory
/Users/sacha/.local/share/fig/plugins/alf_psyrendust/init.zsh:source:24: no such file or directory: /.git/hooks/post-merge

Uninstalling fig fixes the error. I imagine it has to do with the code added to .zshrc.

Steps to reproduce

Just open the terminal. It happens on any new window/tab, both in Webstorm and using iTerm or Warp.

Environment

fig-details:
  - 2.7.9
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M1 Pro
  - cores: 10
  - mem: 16.00 GB
os-info:
  - macOS 13.0.1 (22A400)
environment:
  - shell: /bin/zsh
  - terminal: WebStorm
  - cwd: /Users/sacha/WebstormProjects/emki-frontend
  - exe-path: /Users/sacha/.fig/bin/fig
  - install-method: unknown
  - env-vars:
    - DISPLAY: /private/tmp/com.apple.launchd.7AGOQrEXOc/org.xquartz:0
    - FIGTERM_SESSION_ID: 531370be-812c-4042-b6f9-4a7fd6e92bda
    - FIG_HOSTNAME: Sachas-MBP
    - FIG_TERM: 2.7.9
    - PATH: /Users/sacha/.nvm/versions/node/v16.18.0/bin:/Users/sacha/Library/Android/sdk/platform-tools:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/aria2/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Users/sacha/Library/Android/sdk/platform-tools:/Users/sacha/.cargo/bin:/Users/sacha/WebstormProjects/emki-frontend/node_modules/.bin:/Users/sacha/.fig/bin:/Users/sacha/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - FIG_PID: 58494
    - FIG_PARENT: 531370be-812c-4042-b6f9-4a7fd6e92bda
    - FIG_SET_PARENT: 531370be-812c-4042-b6f9-4a7fd6e92bda
mschrage commented 1 year ago

Do you have the zimfw plugin installed via Fig?

sachamorgese commented 1 year ago

Turns out I did have some plugins enabled that were causing that issue. Must have done it by mistake. Removing them fixed the error message!

brendanfalk commented 1 year ago

Will prioritise fix in the next 2 weeks. Thanks!

kitsunde commented 1 year ago

I don't have any plugins enabled except for zimfw, and I commented out everything else in zhrc and when restarting my terminal I continue to see this issue. Not sure why that is.

Rukeith commented 1 year ago

I have the same issue; I just use my new Macbook Pro with Fig to install zimfw.