withfig / fig

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

Console output during zsh initialization detected. #2098

Closed ynsemrk closed 1 year ago

ynsemrk commented 1 year ago

Checks

Operating system

macOS 13.1.0 (22C5050e)

Expected behaviour

dont want to see this message

Actual behaviour

accour this message

Steps to reproduce

No response

Environment

fig-details:
  - 2.7.9
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M1 Pro
  - cores: 10
  - mem: 32.00 GB
os-info:
  - macOS 13.1.0 (22C5050e)
environment:
  - shell: /bin/zsh
  - terminal: terminal
  - cwd: /Users/developerpro
  - exe-path: /Users/developerpro/.fig/bin/fig
  - install-method: unknown
  - env-vars:
    - FIGTERM_SESSION_ID: 33c9a985-6286-4489-831d-e541af85acff
    - FIG_HOSTNAME: 192.168.1.34
    - FIG_TERM: 2.7.9
    - PATH: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/developerpro/.fig/bin:/Users/developerpro/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - FIG_PID: 9182
    - FIG_PARENT: 33c9a985-6286-4489-831d-e541af85acff
    - FIG_SET_PARENT: 33c9a985-6286-4489-831d-e541af85acff
grant0417 commented 1 year ago

Hey @ynsemrk can you share a screenshot of what you are referring to?

github-actions[bot] commented 1 year ago

This issue has been automatically closed because there has been no activity for 14 days.

prasannjeet commented 1 year ago

Hi @grant0417. Facing the same issue with Fig. Whenever I open a terminal or run fig source, I see a lot of output generated by fig.

This started happening after I installed some plugins from within fig, such as oh my zsh, powerlevel10k, zsh autocomplete and zsh syntax highlighting. After that I went into the oh my zsh config from within fig and activated some of the oh my zsh plugins.

Following is the output that I see:

✅ Dotfiles sourced!

[WARNING]: Console output during zsh initialization detected.

When using Powerlevel10k with instant prompt, console output during zsh
initialization may indicate issues.

You can:

  - Recommended: Change ~/.zshrc so that it does not perform console I/O
    after the instant prompt preamble. See the link below for details.

    * You will not see this error message again.
    * Zsh will start quickly and prompt will update smoothly.

  - Suppress this warning either by running p10k configure or by manually
    defining the following parameter:

      typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet

    * You will not see this error message again.
    * Zsh will start quickly but prompt will jump down after initialization.

  - Disable instant prompt either by running p10k configure or by manually
    defining the following parameter:

      typeset -g POWERLEVEL9K_INSTANT_PROMPT=off

    * You will not see this error message again.
    * Zsh will start slowly.

  - Do nothing.

    * You will see this error message every time you start zsh.
    * Zsh will start quickly but prompt will jump down after initialization.

For details, see:
https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt

-- console output produced during zsh initialization follows --

Evaluating plugin block: ### ohmyzsh
  if [ -d '/Users/PRASI/.local/share/fig/plugins/ohmyzsh' ]; then
  export ZSH="/Users/PRASI/.local/share/fig/plugins/ohmyzsh"
  echo Evaluating variable block: 'plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "macos" "web-search")'

  plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "macos" "web-search")
  echo Evaluating variable block: 'plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "macos" "web-search")'

  plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "macos" "web-search")
  echo Evaluating variable block: 'plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "web-search")'

  plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "web-search")
  echo Evaluating variable block: 'plugins=("copyfile" "copypath" "extract" "git" "jsontools" "kubectl" "web-search")'

  plugins=("copyfile" "copypath" "extract" "git" "jsontools" "kubectl" "web-search")
  echo Evaluating variable block: 'plugins=("copypath" "extract" "git" "jsontools" "kubectl" "web-search")'

  plugins=("copypath" "extract" "git" "jsontools" "kubectl" "web-search")
  echo Evaluating variable block: 'plugins=("extract" "git" "jsontools" "kubectl" "web-search")'

  plugins=("extract" "git" "jsontools" "kubectl" "web-search")
  echo Evaluating variable block: 'plugins=("extract" "git" "jsontools" "web-search")'

  plugins=("extract" "git" "jsontools" "web-search")
  echo Evaluating variable block: 'plugins=("git" "jsontools" "web-search")'

  plugins=("git" "jsontools" "web-search")
  echo Evaluating variable block: 'plugins=("git" "web-search")'

  plugins=("git" "web-search")
  echo Evaluating variable block: 'plugins=("git")'

  plugins=("git")
  echo Evaluating variable block: 'ZSH_THEME="risto"'

  ZSH_THEME="risto"
  echo Evaluating variable block: 'ZSH_THEME="risto"'

  ZSH_THEME="risto"
  echo Evaluating variable block: 'ZSH_THEME="risto"'

  ZSH_THEME="risto"
  echo Evaluating variable block: 'ZSH_THEME="risto"'

  ZSH_THEME="risto"
  echo Evaluating variable block: 'ZSH_THEME="risto"'

  ZSH_THEME="risto"
  source '/Users/PRASI/.local/share/fig/plugins/ohmyzsh/oh-my-zsh.sh'
  fi

Evaluating variable block: plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "macos" "web-search")
Evaluating variable block: plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "macos" "web-search")
Evaluating variable block: plugins=("copyfile" "copypath" "dirhistory" "extract" "git" "jsontools" "kubectl" "web-search")
Evaluating variable block: plugins=("copyfile" "copypath" "extract" "git" "jsontools" "kubectl" "web-search")
Evaluating variable block: plugins=("copypath" "extract" "git" "jsontools" "kubectl" "web-search")
Evaluating variable block: plugins=("extract" "git" "jsontools" "kubectl" "web-search")
Evaluating variable block: plugins=("extract" "git" "jsontools" "web-search")
Evaluating variable block: plugins=("git" "jsontools" "web-search")
Evaluating variable block: plugins=("git" "web-search")
Evaluating variable block: plugins=("git")
Evaluating variable block: ZSH_THEME="risto"
Evaluating variable block: ZSH_THEME="risto"
Evaluating variable block: ZSH_THEME="risto"
Evaluating variable block: ZSH_THEME="risto"
Evaluating variable block: ZSH_THEME="risto"
Evaluating plugin block: ### powerlevel10k
  if [ -d '/Users/PRASI/.local/share/fig/plugins/powerlevel10k' ]; then
  if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
    source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
  fi

  source '/Users/PRASI/.local/share/fig/plugins/powerlevel10k/powerlevel10k.zsh-theme'
  [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
  fi

Evaluating plugin block: ### zsh-autosuggestions
  if [ -d '/Users/PRASI/.local/share/fig/plugins/zsh-autosuggestions' ]; then

  source '/Users/PRASI/.local/share/fig/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh'
  fi

Evaluating plugin block: ### zsh-syntax-highlighting
  if [ -d '/Users/PRASI/.local/share/fig/plugins/zsh-syntax-highlighting' ]; then

  source '/Users/PRASI/.local/share/fig/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'
  fi

Note that this happens everytime I open a new terminal, or run fig source.

I think reproducing it should be straight forward, just install these plugins and run fig source. From the logs, looks like that is causing the verbose output by fig.

As an additional info, in the Fig Settings -> Dot Files -> Dot Files Verbosity, I have kept it to None, but I still see these logs.

Following is my fig details:

fig-details:
  - 2.13.1
hardware-info:
  - model:
  - model-id:
  - chip-id: Apple M1 Pro
  - cores: 10
  - mem: 32.00 GB
os-info:
  - macOS 13.1.0 (22C65)
environment:
  - shell: /bin/zsh
  - terminal: iterm
  - cwd: /Users/PRASI
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: 535bf968-7235-41c9-8889-819f41ef1061
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.13.1
    - PATH: /Users/PRASI/.nvm/versions/node/v18.13.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/PRASI/Library/Application Support/JetBrains/Toolbox/scripts:/Users/PRASI/.fig/bin:/Users/PRASI/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.googlecode.iterm2
    - FIG_PID: 697
    - FIG_SET_PARENT: 535bf968-7235-41c9-8889-819f41ef1061
Esonhugh commented 1 year ago

Is this issue fixed?

Esonhugh commented 1 year ago

Is this issue fixed?

Oh, Open a new issue. at #2280