Skip to content

Conversation

@tlehman
Copy link

@tlehman tlehman commented Dec 5, 2025

When nix brings in xcbuild as a transitive dependency on macOS, if there are new metadata tags that the nix-specific version of xcbuild doesn't support, then git status will write a warning to stderr like: warning: unhandled Platform key FamilyDisplayName. That stderr message causes lazygit to crash. My fix is to filter out the warnings and then redirect them to the lazygit log

Fixes #5013

PR Description

Please check if the PR fulfills these requirements

  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • [ ] Text is internationalised (see here)
    • not needed, there are no user-facing changes
  • [ ] If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • [ ] Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

When nix brings in xcbuild as a transitive dependency on macOS,
if there are new metadata tags that the nix-specific version of
xcbuild doesn't support, then `git status` will write a warning
to stderr like: `warning: unhandled Platform key FamilyDisplayName`.
That stderr message causes lazygit to crash. My fix is to filter
out the warnings and then redirect them to the lazygit log

Fixes jesseduffield#5013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

too liberal handling of stdin/stderr reading causes crash at startup

1 participant