withfig / fig

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

Issue with z4h and powerlevel10k #1536

Open sagarkar10 opened 2 years ago

sagarkar10 commented 2 years ago

Sanity checks

Issue Details

Description:

Please include a detailed description of the issue (and an image or screen recording, if applicable)

When I change the current working dir with the shortcut shift + right the current dir changes but the prompt don't show the information until I run another command! whereas other info updates like VCS-branch and all!

  1. Issue reported in z4h repo
  2. The VCS and other parts work fine, only dir (current working directory) is not updated!
  3. Screen Cast: https://asciinema.org/a/mbiFQXGQzL05VJV3rIGGNZM7u

Environment

# Fig Diagnostics
## Fig details:
  - Fig version: Version 1.0.57 (B453) [Beta] [ABC – India]
  - Bundle path: /Applications/Fig.app
  - Autocomplete: true
  - Settings.json: true
  - Accessibility: true
  - Number of specs: 0
  - Symlinked dotfiles: true
  - Only insert on tab: false
  - Keybindings path:
  - Installation Script: true
  - PseudoTerminal Path: /usr/local/opt/openjdk/bin:/Users/sagarkar/.pyenv/shims:/Users/sagarkar/.yarn/bin:/Users/sagarkar/.config/yarn/global/node_modules/.bin:/Users/sagarkar/.volta/bin:/Users/sagarkar/bin:/Users/sagarkar/.cache/zsh4humans/v5/zsh4humans/zb:/Users/sagarkar/.local/bin:/usr/local/opt/openjdk/bin:/Users/sagarkar/.yarn/bin:/Users/sagarkar/.config/yarn/global/node_modules/.bin:/Users/sagarkar/.volta/bin:/usr/local/sbin:/usr/local/bin:/Library/Apple/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/sagarkar/.cache/zsh4humans/v5/fzf/bin:/usr/local/opt/fzf/bin:/Users/sagarkar/SpacedOut/sense/bin:/Users/sagarkar/.fig/bin:/Users/sagarkar/SpacedOut/sense/bin
  - SecureKeyboardInput: false
  - SecureKeyboardProcess: <none>
## Hardware Info:
  - Model Name: MacBook Pro
  - Model Identifier: MacBookPro16,1
  - Chip:
  - Cores: 6
  - Memory: 16 GB
## OS Info:
  - macOS 12.2.1 (21D62)
## Environment:
  - User Shell: /bin/zsh
  - Current Directory: /Users/sagarkar
  - CLI Installed: true
  - Executable Location: /Users/sagarkar/.local/bin/fig
  - Current Window ID: 370987/% (com.googlecode.iterm2)
  - Active Process: zsh (27019) - not a tty
  - Environment Variables:
    - FIG_PID=27019
    - TERM=tmux-256color
    - TERM_SESSION_ID=839D2795-CC0F-4BD3-BC71-D0DE622CC4D0
    - FIG_TERM_TMUX=1
    - PATH=/usr/local/opt/openjdk/bin:/Users/sagarkar/.pyenv/shims:/Users/sagarkar/.yarn/bin:/Users/sagarkar/.config/yarn/global/node_modules/.bin:/Users/sagarkar/.volta/bin:/Users/sagarkar/bin:/Users/sagarkar/.cache/zsh4humans/v5/zsh4humans/zb:/usr/local/opt/openjdk/bin:/Users/sagarkar/.yarn/bin:/Users/sagarkar/.config/yarn/global/node_modules/.bin:/Users/sagarkar/.volta/bin:/Users/sagarkar/.local/bin:/usr/local/sbin:/usr/local/bin:/Library/Apple/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/sagarkar/.cache/zsh4humans/v5/fzf/bin:/Users/sagarkar/.fig/bin:/usr/local/opt/fzf/bin:/Users/sagarkar/SpacedOut/sense/bin:/Users/sagarkar/SpacedOut/sense/bin
    - FIG_INTEGRATION_VERSION=8
    - FIG_TERM_VERSION=4.4.0
    - FIG_TERM=1
## Integrations:
  - SSH: false
  - TMUX: false
  - iTerm: installed!
  - Hyper: application is not present.
  - Visual Studio Code: application is not present.
  - Docker: true
clo4 commented 2 years ago

I read through the issue, I don't think that this is specifically a bug with fig... think this is some kind of issue with p10k's transient prompt. Could you share your ~/.p10k.zsh file so I can try to reproduce?

sagarkar10 commented 2 years ago

Sure here you go! Renamed it to .txt to upload! so that the thread is not cluttered by the paste!

p10kconf.txt

clo4 commented 2 years ago

Super weird, with your p10k config I can't reproduce this. Could you send your .zshrc and .zprofile too? Might be something there that's causing this...

sagarkar10 commented 2 years ago

I hope this can help you repro! .zprofile

# Fig pre block. Keep at the top of this file.
. "$HOME/.fig/shell/zprofile.pre.zsh"

# Fig post block. Keep at the bottom of this file.
. "$HOME/.fig/shell/zprofile.post.zsh"

zshrc.txt

clo4 commented 2 years ago

Still can't repro! Two commands to try: z4h update; omz update -- maybe it's an out of date plugin?

sagarkar10 commented 2 years ago

Updated.

sagarkar10 commented 2 years ago

Lmk if you want to connect over zoom.

sagarkar10 commented 2 years ago

Can you please share your zshrc. I can give it a try. And let u know.

clo4 commented 2 years ago

Sorry for the delay! I typed out a reply but I forgot to send.

I don't actually have a zshrc of my own since I use fish, usually it's empty except for the fig lines 😅

@mschrage are you able to repro? Or do you have an idea of what might be going on here?

sagarkar10 commented 2 years ago

anything? @SeparateRecords

satyajeet-rout commented 10 months ago

did your problem solved for "# Fig pre block. Keep at the top of this file. . "$HOME/.fig/shell/zprofile.pre.zsh"

Fig post block. Keep at the bottom of this file.

. "$HOME/.fig/shell/zprofile.post.zsh" " ?? i have encountered with same problem