Terminal session freezes when I type `rclone about ` with fig on
alpineyahoo opened this issue · 2 comments
Checks
- I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
- I have run
fig doctor
in the affected terminal session - I have run
fig restart
and replicated the issue again
Operating system
macOS 14.0.0 (23A5337a)
Expected behaviour
I typed rclone about
with fig on. Usually, fig suggestions work fine or otherwise can be suppressed by pushing the escape button. I expected fig to show my remote:
or do nothing.
Actual behaviour
The terminal session got frozen after I typed rclone about
with fig on. I did Ctrl-C
or Ctrl-D
in the frozen session, but that didn't work. After I ran fig quit
and typed rclone about foobar:
, that worked normally. The culprit is obvious.
I am not sure why this happens, but with my little knowledge, I suggest a scenario that my rclone.conf
config file is encrypted and fig
encountered trouble when accessing it to show suggestions for me.
Steps to reproduce
No response
Environment
fig-details:
- 2.16.0
hardware-info:
- model:
- model-id:
- chip-id: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
- cores: 8
- mem: 16.00 GB
os-info:
- macOS 14.0.0 (23A5337a)
environment:
- shell: /usr/local/Cellar/zsh/5.9/bin/zsh
- terminal: terminal
- cwd: /Users/******
- exe-path: /usr/local/bin/fig
- install-method: brew
- env-vars:
- DISPLAY: :0
- FIGTERM_SESSION_ID: 4d592da8-6a76-4b4c-a96f-889ad3aa0e48
- FIG_SET_PARENT_CHECK: 1
- FIG_TERM: 2.16.0
- SHELL: /usr/local/bin/zsh
- TERM: xterm-256color
- ZDOTDIR: /Users/*****/.zsh
- __CFBundleIdentifier: com.apple.Terminal
- FIG_PID: 98536
- FIG_SET_PARENT: 4d592da8-6a76-4b4c-a96f-889ad3aa0e48
It works fine after I decrypted the rclone.conf
file with rclone config
interactive manipulation. Now I solved the problem for my use, but the fig team might have to include a function in fig that fig can skip its suggestions when the file fig is trying to access is encrypted.
Hey @alpineyahoo! Thanks for reporting this. It looks like an issue with the rclone completion spec.
Would you be open to making a PR?