withfig / fig

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

(eval):545: command not found: __bp_install_after_session_init - After latest update #1079

Closed crebuh closed 2 years ago

crebuh commented 2 years ago

Description:

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

Today my fig client was updated. Now after each time I'm opening a new terminal I get this message. Still fig seems to work fine.

Last login: Thu Mar 10 06:50:57 on ttys001 (eval):545: command not found: __bp_install_after_session_init __fig_reset_hooks:16: command not found: __bp_sanitize_string __fig_reset_hooks:26: bad substitution (eval):545: command not found: __bp_install_after_session_init __fig_reset_hooks:16: command not found: __bp_sanitize_string __fig_reset_hooks:26: bad substitution

Details:

OS Fig Shell
macOS 12.2.1 (21D62) 1.0.56 /bin/zsh
fig diagnostic

# Fig Diagnostics ## Fig details: - Fig version: Version 1.0.56 (B401) [ABC] - Bundle path: /Applications/Fig.app - Autocomplete: true - Settings.json: true - Accessibility: true - Number of specs: 0 - Symlinked dotfiles: false - Only insert on tab: false - Keybindings path: - Installation Script: true - PseudoTerminal Path: - SecureKeyboardInput: false - SecureKeyboardProcess: ## Hardware Info: - Model Name: MacBook Pro - Model Identifier: MacBookPro15,1 - Chip: - Cores: 8 - Memory: 16 GB ## OS Info: - macOS 12.2.1 (21D62) ## Environment: - User Shell: /bin/zsh - Current Directory: /Users/crebuh - CLI Installed: true - Executable Location: /usr/local/bin/fig - Current Window ID: 479/% (com.googlecode.iterm2) - Active Process: zsh (11062) - /dev/ttys004 - Environment Variables: - TERM_SESSION_ID=w0t0p1:27CAF99E-A7F4-4705-8239-192E1B0261ED - PATH=/Users/crebuh/.fastlane/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home/bin:/Users/crebuh/google-cloud-sdk/bin:/Users/crebuh/.fastlane/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home/bin:/Users/crebuh/.nvm/versions/node/v17.2.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Users/crebuh/flutter/bin:/Library/Apple/usr/bin:/Users/crebuh/.local/bin:/Users/crebuh/.fig/bin:/Users/crebuh/.local/bin:/Users/crebuh/.local/bin:/Users/crebuh/flutter/.pub-cache/bin:/Users/crebuh/Library/Android/sdk/build-tools/30.0.2:/Users/crebuh/.local/bin:/Users/crebuh/Library/Android/sdk/tools/bin:/Users/crebuh/Library/Android/sdk/platform-tools:/Users/crebuh/Library/Android/sdk/emulator:/Users/crebuh/Library/Android/sdk/build-tools/29.0.0:/Applications/Android Studio.app/Contents/gradle/gradle-5.1.1/bin:/Users/crebuh/.local/bin:/Users/crebuh/Library/Android/sdk/tools/bin:/Users/crebuh/Library/Android/sdk/platform-tools:/Users/crebuh/Library/Android/sdk/emulator:/Users/crebuh/Library/Android/sdk/build-tools/29.0.0:/Applications/Android Studio.app/Contents/gradle/gradle-5.1.1/bin - TERM=xterm-256color - FIG_INTEGRATION_VERSION=8 - FIG_TERM=1 - FIG_TERM_VERSION=4.2.0 - FIG_CHECKED_PROMPTS=1 ## Integrations: - SSH: false - TMUX: false - iTerm: installed! - Hyper: application is not present. - Visual Studio Code: installed! - Docker: false

sergiuwaxmann commented 2 years ago

I also have this issue after the update...

ebarti commented 2 years ago

+1

mscherr-fastspot commented 2 years ago

+1 as well

cow-coding commented 2 years ago

I find similar error solution here! https://github.com/withfig/fig/issues/1078

mschrage commented 2 years ago

We have a fix coming soon! The issue is due to sourcing your ~/.profile from either ~/.zshrc or ~/.zprofile. @cow-coding @crebuh @mscherr-fastspot @ebarti @sergiuwaxmann

A quick workaround is to edit ~/.profile and comment out Fig's shell integration manually:

# Fig pre block. Keep at the top of this file.
export PATH="${PATH}:${HOME}/.local/bin"
# eval "$(fig init bash pre)"

...

# Fig post block. Keep at the bottom of this file.
# eval "$(fig init bash post)"
grant0417 commented 2 years ago

This should be fixed, make sure you are running Fig v1.0.56 B403

crebuh commented 2 years ago

Yeah it's fixed now :)