Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal session freezes when I type rclone about with fig on #2102

Open
3 tasks done
alpineyahoo opened this issue Sep 22, 2023 · 2 comments
Open
3 tasks done

Terminal session freezes when I type rclone about with fig on #2102

alpineyahoo opened this issue Sep 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@alpineyahoo
Copy link

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
@alpineyahoo
Copy link
Author

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.

@mschrage
Copy link
Member

Hey @alpineyahoo! Thanks for reporting this. It looks like an issue with the rclone completion spec.

Would you be open to making a PR?

@mschrage mschrage transferred this issue from withfig/fig Sep 26, 2023
@mschrage mschrage added the bug Something isn't working label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants