IlanCosman / tide

🌊 The ultimate Fish prompt.
MIT License
2.75k stars 103 forks source link

Prompt not loading correctly initially #340

Open jake8655 opened 1 year ago

jake8655 commented 1 year ago

Describe the bug

The prompt shows "..." after starting a new instance of fish

Steps to reproduce

  1. Download and configure Tide
  2. Restart your terminal emulator and the prompt should be "..."
  3. Type any command and hit enter and the prompt magically starts working again

Screenshots

Initially: Screen Shot 2022-09-01 at 13 13 30

After any command: Screen Shot 2022-09-01 at 13 15 33

Environment

Output of tide bug-report:

fish version: 3.5.1
tide version: 5.4.0
term: xterm-256color
os: macOS 11.1
terminal emulator: Iterm2
fish startup: 90.26 millis
fisher plugins: jorgebucaran/fisher ilancosman/tide@v5

Additional context

When I first started using Tide it worked like a charm. This only started happening about a week after using Tide without any problems.

I have tried the following:

  1. Rerunning the tide configuration
  2. Reinstalling tide
  3. Reinstalling fisher
  4. Reinstalling fish (with Homebrew)
  5. Restarting my computer
hanoii commented 3 months ago

Same thing is happening to me on a local docker container, I do a docker exec fish and I get no prompt, hit enter and the prompt is there.

hanoii commented 3 months ago

For some reason this started to work just fine, using v6 so not sure. The one situation where I found this is if I am configuring it on a conf.d/foo.bar.fish. In that case the first time it's blank while an enter activated it. I then added a simple flag flag so I don't reconfigure it on each start.

hanoii commented 1 month ago

I am still seeing this happening randomly

jorgebucaran commented 1 month ago

There could be something in your config.fish that should only run in non-interactive mode, as this configuration runs on every shell start and both Fisher and Tide have asynchronous behavior.