withfig / fig

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

Fig tries to download everything from the Onedrive folder when providing autocompletion #1326

Open chenzhekl opened 2 years ago

chenzhekl commented 2 years ago

Description:

Please include a detailed description of the issue (and an image or screen recording, if applicable)

Fig tries to download everything from the Onedrive folder when providing auto-completion. But most files there are pretty huge and are expected to be downloaded on demand.

Details:

macOS Fig Shell
11.6.5 Version 1.0.56 (B421) /usr/local/bin/fish
fig diagnostic

Version 1.0.56 (B421) [ABC] 
UserShell: /usr/local/bin/fish
Bundle path: /Applications/Fig.app
Autocomplete: true
Settings.json: true
CLI installed: true
CLI tool path: /Users/chenzhekl/.fig/bin/fig
Accessibility: true
SSH Integration: false
Tmux Integration: false
iTerm Integration: false 
Hyper Integration: false
VSCode Integration: true
Docker Integration: false
Symlinked dotfiles: false
Only insert on tab: false
UNIX Socket Exists: true
Installation Script: true
PseudoTerminal Path: /usr/local/opt/openjdk@11:/Users/chenzhekl/.dotnet/tools:/Users/chenzhekl/.local/bin:/Users/chenzhekl/.fig/bin:/Users/chenzhekl/.cargo/bin:/Users/chenzhekl/.nvm/versions/node/v16.14.0/bin:/usr/local/Caskroom/miniconda/base/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools
SecureKeyboardInput: false
SecureKeyboardProcess: 
Current active process: ??? (???) - ???
Current terminal session: ???
Current working directory: ???
Current window identifier: ???

grant0417 commented 2 years ago

Looks like this might be an issue with how we try to list files using system utils (like ls) which might trigger onedrive to try to download the files, not sure what the solution here is.