-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Prompt doesn't show immediately in new shell #171
Comments
To clarify: Is it just that on launching the shell the prompt will not appear until a key is pressed? Or is the prompt always one step behind, for example if you switch directories it will still display the old one until you press a key. |
It's only when first entering the fish shell. After that it works normally. I've tried launching fish directly from bash and replacing fish_greeting with a blank function and a newline with the same results. |
Okay, then this is not the same bug, it's an older bug that I don't really care about. Thanks for reporting though 😄 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I see this issue in fish 3.3.1 as well, though only about 70% of the time. Sometimes when I open a new terminal the prompt does show as expected, otherwise I must press enter before it is displayed.
I would like to try solving this issue myself, but am wondering why you don't care. Is it too hard to solve? Just low-priority? Basically I want to avoid unnecessary work if you have already determined this issue too tricky to solve :) |
Sorry, saying that "I don't care" about the bug was the wrong language to use. It has just been low priority for me, and I believe it is not a Tide bug, both of which have dissuaded me from working on it. For me, the bug appears only in one, fairly unique, terminal of the ones I have tested. That terminal also has this possibly related right_prompt bug: function fish_right_prompt
date
end right-prompt-bug.mp4This indicates to me that Fish/certain terminals just sometimes have problems with initial rendering, and I haven't really felt like tracking the problem down. If this bug really bothers people though, I can give it a go 😄 |
No worries about the language! I understand why this is low priority, as it doesn't interfere with actually using fish. However, I do use Tide for a reason and it would definitely be preferable to have a reliable prompt :) You're right though that this might not even be an issue with Tide. A quick test just showed me that I don't see any issues with fish 3.2.2, so perhaps there was a regression in fish 3.3.0. So yes, I would appreciate you looking into solving this, but I'm also happy to help! I'll try doing a bisect on fish later today to see if I can find which commit introduced the issue. |
Maybe it is low priority but it is a blocker for me and therefore I stopped using |
I ran a git bisect on fish and I believe that b56b23007 introduced this bug.
I also reverted b56b23007 on the current fish master and that resolved the issue. I'm not aware of how Tide works, but I think this might still be something that needs to be solved in Tide because fish does work fine with the default prompt. At this point I'm not sure where else to look. If there is anything else I can do to help let me know. Hopefully this information is helpful! :) |
That commit has already been reverted in fish-shell/fish-shell@62d8f72 (landed in Fish 3.3.1), which fixed a similar bug (#168). |
b56b23007 was only partially reverted, and removing the remaining lines does solve the prompt failing to render when a terminal first opens |
Indeed. Perhaps open an issue/leave a comment on fish-shell? |
Or even better, if you're up for it, submit a PR 😄 I'd have boundless appreciation ❤️ |
That person won't be myself because I don't have this issue and thus can't test😃 |
62d8f72 ("Revert "Avoid excessive polling of universal variable file"") was not a complete revert, which seems to have caused the problem reported in IlanCosman/tide#171. See #8088
I've made the changes suggested by @natecraddock that should fix the bug. |
Thanks @krobelus for taking a look at this! I would like to mention one thing now that I have tested this longer. I used my build with the fully reverted commit regularly over the weekend, and twice Tide failed to load in a new shell. When I noticed this, I would repeatedly open and close a terminal to replicate the behavior without success. So it seems that fully reverting the commit greatly helps, but there is still a small chance that Tide will not load. I'm not sure if that's an issue with fish or Tide, but I figured I would report what I found |
I am also having this bug on gnome terminal, every time I open a new terminal, I have to press Enter to get the Tide prompt to show up. If I remove Tide, the fish shell works normally. Hope you take a moment to fix it. |
@gaumeo3230 Please at least read the latest comments on this thread and don't just spam it. It should already be fixed in latest fish master. |
62d8f72 ("Revert "Avoid excessive polling of universal variable file"") was not a complete revert, which seems to have caused the problem reported in IlanCosman/tide#171. See fish-shell#8088
@leafinote You're awesome! 😄 Thanks a ton for helping me debug this 😄 |
Can someone with the bug verify that the |
I can confirm it works for me. |
Unfortunately this bug still appears to be preset (not fixed in v5.0.1) under WSL2 with Windows Terminal Preview. Edit:
Removing this line stops the issue. My assumption is that this is just a fringe case of the same bug. |
Describe the bug
Upon launching the shell, the prompt will not appear until the enter key is pressed.
Steps to reproduce
Install fish and tide prompt.
Screenshots
Environment
Output of
tide bug-report
:Additional context
Seems to have been fixed for others in the fish update to 3.3.1, but as you can see the issue persists for me after updating.
The text was updated successfully, but these errors were encountered: