-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[WARN] - (starship::utils): Executing command "/usr/bin/git" timed out. #5985
Comments
This is not a bug, it just means that git takes longer than the default timeout configured for starship. If the command takes too long, starship stops waiting for it in favor of a snappier user experience. I'm not sure what the default time is, but you could check Though if the report is about the time it takes to get the git status information, you can always look into helping Byron/gitoxide to improve, so Starship doesn't have to call system git in the background. Should be slightly faster too, Byron is really working towards that. See also the relevant FAQ entry on timeouts |
@RivenSkaye Hi, actually it is a bug. I have the same issue with Check
Check config file content:
Check the config using starship itself:
And what we see here? Additional info:
Created a separate issue: #5994 |
It looks like Line 429 in 50a6b84
|
This is weird, I manually set it to 750 months ago and it just works for me |
|
It works properly after exporting But! |
Starship does not set |
@davidkna Me either. But I have found the "author". It's a Homebrew. Homebrew formula has to be fixed to export those env variables. |
The homebrew package is updated automatically on every release by uses and could be considered to be maintained by the project. Nevertheless, I checked, and it looks like it's only used to prevent local configs from being picked up when running tests. Closing this since the initial issue was addressed. |
@RivenSkaye tide does this asynchronous. Is this also possible in Starship? |
You'd have to ask one of the people more intimately familiar with the project to be certain, but to the best of my knowledge starship takes a fundamentally different approach here. Tide seems to be a constantly monitoring the working directory, and updating as soon as possible. Starship, on the other hand, pulls the info when a command is issued and builds the modules in the prompt based on that |
It works with https://github.com/IlanCosman/tide
The text was updated successfully, but these errors were encountered: