fig icon indicating copy to clipboard operation
fig copied to clipboard

Paste long text freezes the terminal

Open ginger0207 opened this issue 1 year ago • 7 comments

Checks

  • [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
  • [X] I have run fig doctor in the affected terminal session
  • [X] I have run fig restart and replicated the issue again

Operating system

macOS 13.2.0 (22D49)

Expected behaviour

Paste long text should be fine.

Actual behaviour

Paste long text into wezterm or kitty will freeze the window, no response for any keystrokes. But it's fine to paste long text into macOS built-in terminal. The behavior becomes as expected after uninstall fig, and re-install fig would cause freezing again. So I'm guessing the unexpected freezing is related to fig.

Steps to reproduce

No response

Environment

fig-details:
  - 2.14.2
hardware-info:
  - model: 
  - model-id: 
  - chip-id: Apple M2
  - cores: 8
  - mem: 24.00 GB
os-info:
  - macOS 13.2.0 (22D49)
environment:
  - shell: /bin/zsh
  - terminal: wezterm
  - cwd: /Users/yunghsiu.chen
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIGTERM_SESSION_ID: e60e03a8-f565-4d6a-a451-5bfafc4ec5b3
    - FIG_SET_PARENT_CHECK: 1
    - FIG_TERM: 2.14.2
    - PATH: /Users/yunghsiu.chen/google-cloud-sdk/bin:/opt/homebrew/opt/openjdk/bin:/Users/yunghsiu.chen/.n/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/yunghsiu.chen/go/bin:/Users/yunghsiu.chen/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/yunghsiu.chen/.fig/bin:/Users/yunghsiu.chen/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - __CFBundleIdentifier: com.github.wez.wezterm
    - FIG_PID: 15313
    - FIG_SET_PARENT: e60e03a8-f565-4d6a-a451-5bfafc4ec5b3

ginger0207 avatar Mar 20 '23 18:03 ginger0207

I'm also experiencing this, but uninstalling Fig didn't help. I think it's related to ZSH or oh-my-zsh.

edit: Nevermind, after restarting Terminal and VS Code, pasting now works normally, so Fig appears to be the culprit.

aleclarson avatar Mar 25 '23 21:03 aleclarson

Can either of you share a screen recording showing the issue?

mschrage avatar May 01 '23 23:05 mschrage

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

github-actions[bot] avatar May 16 '23 00:05 github-actions[bot]

hi, sorry for the late reply, here's the screen recording. In the beginning I paste long text into macOS built-in terminal and it works fine, then I paste same text into wezterm freezes the window, no response for any keystrokes.

https://github.com/withfig/fig/assets/26451098/19491c9d-83b7-4218-8fa1-54b5b669fc58

ginger0207 avatar May 24 '23 15:05 ginger0207

I have the same issue, albeit with iterm2.

pmonks avatar Oct 27 '23 23:10 pmonks

Same issue here as well. Using zsh, iterm2, and Fig. No issues when using a blank bash profile.

griffinbaker12 avatar Dec 08 '23 20:12 griffinbaker12

To fix this issue I configured nvim to use:

:set clipboard=unnamedplus

and then pasted using *p.

Hope this helps somebody

griffinbaker12 avatar Dec 08 '23 21:12 griffinbaker12