withfig / fig

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

A < symbol is accidentally generated in the jetbrains ides #2507

Closed StringKe closed 1 year ago

StringKe commented 1 year ago

Checks

Operating system

macOS 13.3.1 (22E261)

Expected behaviour

No extra < symbols

Actual behaviour

Preview Video

An additional < symbol will appear in all jetbrains ide

Steps to reproduce

.zshrc

# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
[[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

# 自动进入命令工具
eval "$(zoxide init zsh)"

export PATH="/Users/chen/Runtime:$PATH"

export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"  # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion

alias ls="ls --color"

# THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"

# pnpm
export PNPM_HOME="/Users/chen/Library/pnpm"
case ":$PATH:" in
  *":$PNPM_HOME:"*) ;;
  *) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end

# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"

plugins

CleanShot 2023-05-03 at 22 14 43@2x

All plugins do not set anything extra.

Environment

fig-details:
  - 2.15.0
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M1 Max
  - cores: 10
  - mem: 64.00 GB
os-info:
  - macOS 13.3.1 (22E261)
environment:
  - shell: /bin/zsh
  - terminal: intellij-webstorm
  - cwd: /Users/chen/Project/Bussiness/avarile/next-scaling
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: ed7d6c7e-1666-48da-a602-f3367c42e1fd
    - FIG_JETBRAINS_SHELL_INTEGRATION: 1
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.15.0
    - PATH: /Users/chen/.local/share/fig/plugins/git-open:/Users/chen/Library/pnpm:/Users/chen/.sdkman/candidates/maven/current/bin:/Users/chen/.sdkman/candidates/java/current/bin:/Users/chen/.sdkman/candidates/gradle/current/bin:/Users/chen/.nvm/versions/node/v18.16.0/bin:/Users/chen/Runtime:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/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:/Users/chen/.cargo/bin:/Users/chen/Project/Bussiness/avarile/next-scaling/node_modules/.bin:/Users/chen/.fig/bin:/Users/chen/.local/bin:/opt/homebrew/opt/fzf/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.jetbrains.WebStorm
    - FIG_PID: 40245
    - FIG_SET_PARENT: ed7d6c7e-1666-48da-a602-f3367c42e1fd
mschrage commented 1 year ago

Very strange. I'd recommend removing all of the community plugins and seeing if this resolves the issue.

StringKe commented 1 year ago

I removed all plugins, but still have the problem.

https://share.cleanshot.com/9sf9LF49

Only when I delete the ~/.fig directory and reboot and reapply fig does it work.

mschrage commented 1 year ago

I'm not sure what is going on here. I cannot reproduce locally. Can you see if this behavior is reproducible in a different terminal or shell?

mochaslave commented 1 year ago

I have a similar issue. It will auto append weird char in my iTerm. After comparing settings with the default value I find out the root cause.

Resolved by set "figterm.csi-u.enabled": false, in ~/.fig/settings.json file.

github-actions[bot] commented 1 year ago

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