withfig / fig

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

Potential conflict with Spaceship prompt #1746

Open nexxai opened 2 years ago

nexxai commented 2 years ago

Sanity checks

Issue Details

Description:

I'm having a problem where the autocomplete box isn't appearing. It will show up in the initial "Here's how to use fig" walkthrough thing, but after that, it never comes back.

I've tried removing all traces of fig (~/.fig, ~/Library/Application Support/fig, ~/Library/Caches/com.mschrage.fig, ~/Library/Preferences/com.mschrage.fig*, ~/Library/WebKit/com.mschrage.fig, ~/Library/HTTPStorages/com.mschrage.fig), and running fig uninstall, and then attempting to reinstall, but nothing changes.

I've confirmed that fig has a check in the Security & Privacy -> Accessibility -> Privacy preferences panel and that it is running the correct plugins (e.g. the "You Should Use" plugin is correctly detecting that I'm not using the right alias and suggests the correct one), so I know it's running.

⇣97% ➜ ps aux | grep fig
nexxai           54361   2.7  0.4 410287264  70464   ??  S     1:21pm   0:09.83 /Applications/Fig.app/Contents/MacOS/fig
nexxai           49075   0.0  0.1 409434816  18240   ??  S     1:18pm   0:00.96 /Applications/Fig.app/Contents/MacOS/fig-darwin-universal daemon
nexxai           60590   0.0  0.0 408637584   1776 s001  S+    1:34pm   0:00.00 grep fig
nexxai           58783   0.0  0.1 409660448  18944 s000  Ss+   1:30pm   0:00.35 /bin/zsh (figterm)
nexxai           54367   0.0  0.0 410224544    848   ??  S     1:21pm   0:00.01 /Applications/Fig.app/Contents/MacOS/fig

I tried running export FIG_LOG_LEVEL=debug in one terminal and then running fig debug logs in another but Github is saying There was an error creating your Issue: body is too long (maximum is 65536 characters). so I've put them here: https://pastebin.com/H0Y1CmAi

Environment

⇣97% ➜ fig diagnostic
fig-details:
  - desktop-version: Version 1.0.61 (B518) [Canadian English]
hardware-info:
  - model: MacBook Air
  - model-id: MacBookAir10,1
  - chip-id: Apple M1
  - cores: 8 (4 performance and 4 efficiency)
  - mem: 16 GB
os-info:
  - macOS 12.5.1 (21G83)
environment:
  - shell: /bin/zsh
  - terminal: iterm
  - cwd: /Users/nexxai
  - exe-path: /opt/homebrew/bin/fig
  - install-method: brew
  - env-vars:
    - FIG_INTEGRATION_VERSION: 8
    - FIG_TERM: 1
    - FIG_TERM_VERSION: 5.2.0
    - PATH: /usr/local/opt/php/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/nexxai/.composer/vendor/bin:/usr/local/share/dotnet:/Users/nexxai/scripts:/Users/nexxai/go/bin:/Users/nexxai/.cargo/bin:/Users/nexxai/.fig/bin:/Users/nexxai/.local/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - TERM_SESSION_ID: w0t0p0:AA660469-AFD4-488E-97E4-58EF792D52DC
    - FIG_PID: 58870
- integrations:
  - SSH: false
  - TMUX: false
  - iTerm: installed!
  - Hyper: application is not present.
  - Visual Studio Code: installed!
  - Docker: false
pinpontitit commented 2 years ago

Same thing was happening for me.

I'm using fig since couple of months, the autocompletion box always worked fine. But it stopped working since few days.

I had few days ago an error from Fig saying that because of one of my app "Logi Options+", the "Secure Text Entry" wasn't working as usual. And that I had to log out from my computer account, and log back to fix it.

However I did it, nothing changed, I ran Fig doctor, nothing changed. I just ran "Fig restart" and the completion box is back.

### Details:
|OS|Fig|Shell|
|-|-|-|
|macOS 12.5.1 (21G83)|1.0.60|/bin/zsh|
fig diagnostic

# Fig Diagnostics
## Fig details:
  - Fig version: Version 1.0.60 (B502) [French – Numerical]
  - 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: /Users/pinpon/.local/share/fig/plugins/git-open:/Users/pinpon/.nvm/versions/node/v16.16.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/pinpon/.fig/bin:/Users/pinpon/.local/bin:/Users/pinpon/.local/share/fig/plugins/git-flow:/Users/pinpon/.local/share/fig/plugins/ugit_Bhupesh-V
  - SecureKeyboardInput: false
  - SecureKeyboardProcess: <none>
## Hardware Info:
  - Model Name: MacBook Air
  - Model Identifier: MacBookAir10,1
  - Chip: Apple M1
  - Cores: 8 (4 performance and 4 efficiency)
  - Memory: 8 GB
## OS Info:
  - macOS 12.5.1 (21G83)
## Environment:
  - User Shell: /bin/zsh
  - Current Directory: /Users/pinpon/lacapsule
  - CLI Installed: true
  - Executable Location: /Users/pinpon/.fig/bin/fig
  - Current Window ID: 1669/% (com.googlecode.iterm2)
  - Active Process: zsh (72493) - not a tty
  - Terminal: iterm
  - Environment Variables:
    - FIG_INTEGRATION_VERSION=8
    - FIG_TERM=1
    - FIG_TERM_VERSION=5.1.0
    - PATH=/Users/pinpon/.local/share/fig/plugins/git-open:/Users/pinpon/.nvm/versions/node/v16.16.0/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/pinpon/.fig/bin:/Users/pinpon/.local/bin:/Users/pinpon/.local/share/fig/plugins/git-flow:/Users/pinpon/.local/share/fig/plugins/ugit_Bhupesh-V
    - TERM=xterm-256color
    - TERM_SESSION_ID=w0t0p0:98149220-1EF3-4AC7-A66B-8C188079D7B4
    - FIG_PID=72493
## Integrations:
  - SSH: false
  - TMUX: false
  - iTerm: installed!
  - Hyper: application is not present.
  - Visual Studio Code: installed!
  - Docker: false
nexxai commented 2 years ago

Not that this necessarily "solves" anything, but I switched from using Spaceship prompt (tried installing via homebrew AND by using the Fig plugin; both had the same issue) to using Starship and now it works. Thinking Spaceship did something that broke the integration with Fig.

I'll leave this open in case the devs want to keep investigating, but I'm satisfied with Starship that I have no direct need to keep troubleshooting Spaceship.

mschrage commented 2 years ago

Thanks for the additional context about Spaceship prompt @nexxai. We'll try to reproduce and figure out the conflict.

@pinpontitit are you still experiencing problems getting autocomplete to appear? If so, would you mind creating a new GitHub issue since I think the underlying cause is different in your case.

sebazelonka commented 7 months ago

Not that this necessarily "solves" anything, but I switched from using Spaceship prompt (tried installing via homebrew AND by using the Fig plugin; both had the same issue) to using Starship and now it works. Thinking Spaceship did something that broke the integration with Fig.

I'll leave this open in case the devs want to keep investigating, but I'm satisfied with Starship that I have no direct need to keep troubleshooting Spaceship.

This worked for me. Thanks!