Open domoritz opened 5 years ago
Thanks for let me know. I will investigate it.
@domoritz Unfortunately, I cannot reproduce the issue with fish3 and MacOS iTerm. Could you provide more info about the issue, such as would this issue happen in any directory or some special directories?
Odd, maybe it's something else. I do seem to be able to reproduce it in any directory.
However, I have also noticed that a similar issue appears sometimes when I try to autocomplete branches in git.
I'll keep looking for patterns and report them here. Let me know if you have any suggestions for how I can debug a frozen shell.
Emmm, you can use fish -d3
or even fish -d4
to print out the info/debug logs. In this way, you can find out the logs before it gets stuck.
I've found that I can reproduce the issue fairly reliably with these two extensions and autocomplete on git branches.
oh-my-fish/theme-bobthefish
oh-my-fish/plugin-fasd
Error Log:
If you have a really large git repo, git status
and friends can crawl, especially on macOS where filesystem stat calls are more expensive than Linux. If you’re running into this, anything that checks git status will be slow, including your prompt.
bobthefish is fairly well optimized, but it’s not always enough. So it also has several ways to mitigate this, by disabling certain more expensive operations, on a repo-by-repo basis. Feel free to open an issue on the bobthefish repo with more details :)
I have a large git repo and I am on OSX. However, my shell is freezing on autocomplete even on small repos and even waiting for a while does not unfreeze the shell. The frozen shells have slightly higher CPU usage, though (see top 3 below). This makes me think that there is some kind of infinite loop but it's just a wild guess.
When I try to autocomplete an unknown directory, my shell freezes.
Install the plugin
Then try
I'm on fish 3 on MacOS in iTerm.