-
Notifications
You must be signed in to change notification settings - Fork 107
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
Make prompt asynchronous #15
Comments
+1 |
Sorry for the message blast 😅 If anyone is interested in trying this out early, you can install it with @jorgebucaran @deathtrip @PatrickF1 @gokulsoumya @sgorblex @andre95d @branchvincent @limakzi @joaolrpaulo |
Installing :) |
@ferologics Anything to report? What do you think? |
@IlanCosman so far so good. I only have one issue when using the emojis & special characters keyboard. Not sure if it's related but I think that it used to work fine prior to the install. It adds a newline and makes the prompt disappear if I use an emoji. |
Glad to hear it's (mostly 😂) working well for you! I can't replicate your emoji error on my mac, so we'll just have to wait and see. Thanks for beta testing 😄 |
@IlanCosman maybe this is a problem with the prompt type, I didn't use to have the icons on the side (the 🍎) but when I updated to async prompt I changed my configuration. How can I dump the config for you to reproduce? |
That would be |
I got the feeling that you're not rushing to the rescue here @IlanCosman 😄 good luck with the update 😝 I'll have to suffer in the meantime 🙂 |
Yah sorry about that 😞I get the impression after a bit of digging that the bug isn't originating from Tide though. Emojis have a ton of issues with shells in general. |
Hi. I've tested the async branch on my machine and some Docker containers (official images + installed fish). Here's what i found. I'm a big fan of this project, I really hope this helps :) 1. My machine, ArchIt could be relevant that I'm using tmux. Output of
Issues
2. Arch DockerOutput of
Issues
3. Debian DockerOutput of
Issues4. Ubuntu DockerOutput of
Issues
5. Alpine DockerOutput of
Issues
I'm not familiar with Alpine Linux, so I'm not sure if this is related. |
Wow! Thank you so much for your extensive work @sgorblex! 😄
This one I already knew about, and I'm not really sure how to fix it. It doesn't happen on my Arch VM, but does happen on my Mac. I'll look into it, however it's definitely not a release-blocking bug.
That's interesting. May I ask what hardware you're using? On my newish hardware there isn't a perceptible difference. In a git repo, the new version is light years faster. There is unfortunately a quirk of fish where the perceived speed of the prompt seems to be effected by the duration of the new I'll try to reproduce each of these bugs in VMs, as in my limited experience they're more likely to be a realistic depiction of a user's machine. However it's obviously still an issue if Tide doesn't work in docker containers, so afterwards I'll check that out. Unfortunately I don't use tmux or vim, but I'll do my best. I'd wager however that tmux and or docker is probably messing things up for Tide (or the other way depending on your perspective 😂) . Your Again, thank you so much for your work 😄 I had been planning to release today, but after this it's clear I'll need to do some more testing 😂 Might delay the release for a weekish because finals are upon me. This was sort of my last day to get it done beforehand. |
Hi @IlanCosman, I've also conducted some tests. Here are my notes
|
I encountered a problem while running Click to expand
The last line asking for prompt configuration seems to be continuously clearing the line and printing the text again (the cursor shifts back and forth between the beginning and end of the line), and it's unresponsive with ^C also. Force closing the terminal instance and opening a new one doesn't leave any trace of the error during installation. |
IDK if this is related but I started getting this strange error when using
|
To be honest I too just found out that I don't have (btw, I'm trying to learn Docker containers so this tests were doubly useful :D ) In a regular directory I get async:
main:
In a git repo (openjdk/jdk) I get these times: async:
main:
So yes, async is way faster on paper. Also, I have no idea what causes this but sometimes the prompt takes a billion years (like 30 secs) to load in a big repo like that. This happens in the main branch, I'm not sure in async. When starting the shell I also encountered this error message (which I didn't have prior to installing async but I'm not sure it's related) related to thefuck.
Thank you for providing this awesome software. I'd love to contribute but if I'm being honest I don't really know this area and on top of that I have very little time in this period. Maybe in some time things will change :). In the meantime I hope I'm being helpful with these reports (I might also open an issue with some ideas that I thought would be cool). Keep up the good stuff! P.S. I'm a non-native English speaker so bear with me on that. |
@sgorblex Alright so I did a little bit of testing, and as far as I can tell the vi indicator is always displaying the previous state, in other words it's always one step behind what it should be. Sigh It's probably some annoying interaction between event handlers and universal variables and prompt repainting. As for the other bugs, your debian ones are presumably caused by an old fish version; Tide only works with 3.1.0+. Your Ubuntu one I can't reproduce with a 20.04 VM. Alpine 🤷♂️If anyone complains about it I'll look into it lol. P.S. Your English is excellent, I had no idea you weren't a native speaker! No worries there regardless 😄 |
Nope, was actually dead easy! I just had to use @sgorblex Could you do a little testing after the latest commit? I don't really know vi mode well enough to tell if things aren't working as expected. |
I didn't upgrade yet and recently I'm getting this
(with various times) Anyway I'm upgrading right now. |
Hi all, with the release of v3, please report any problems in new issues. Thanks 😄 |
Is your feature request related to a problem? Please describe.
The prompt can be slow at times, especially when in a git repository.
Describe the solution you'd like
An asynchronous prompt that allows the user to run commands without being blocked by the prompt loading.
fish-async-prompt already works fairly well with Tide so adapting it and then baking it in is probably the easiest path.The text was updated successfully, but these errors were encountered: