Skip to content
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

"exec: Stdout already set" when staging a file #1741

Closed
HannesOlszewski opened this issue Jan 28, 2022 · 3 comments
Closed

"exec: Stdout already set" when staging a file #1741

HannesOlszewski opened this issue Jan 28, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@HannesOlszewski
Copy link

Describe the bug
Left lazygit open for a while so I don't know what exactly lead to this. After some coding I wanted to stage my files with space and the error "exec: Stdout already set" was shown. No file was staged. Restarting lazygit did not help and I needed to delete .git/index.lock to resolve this.

To Reproduce
Steps to reproduce the behavior:

  1. Stage file with space
  2. See error

Expected behavior
The file being staged and no error shown.

Screenshots
Screenshot 2022-01-28 at 22 06 00

Desktop (please complete the following information):

  • OS: MacOS 12.2 (M1)
  • Lazygit Version: v0.32.2
  • The last commit id if you built project from sources: Not applicable, installed through Homebrew
@HannesOlszewski HannesOlszewski added the bug Something isn't working label Jan 28, 2022
@jesseduffield
Copy link
Owner

On master I've fixed the issue with the error not being very informative, however the index.lock bug remains. Haven't been able to determine what's causing it. Any help is much appreciated!

@simonvizzini
Copy link

simonvizzini commented Feb 11, 2022

I just ran into this issue (exec: Stdout already set), and the last thing I did in lazygit before it happened was to rebase my working branch with unstaged changes which resulted in some merge conflicts. What was strange is that this time I didn't get the usual "Merge conflicts! Resolve or press enter to abort" message (don't remember the exact spelling). The merge conflicts were not critical and so I simply reverted the files that contained the conflicts (via lazygits 'd' shortcut). After that I continued to work on my code and when I came back to lazygit (which I always keep open in a terminal window) I couldn't stage files anymore, getting the mentioned "Stdout already exists" error. Not sure if these steps somehow triggered the error, but I hope it helps in identifying the root cause. I'll keep observing it and if it happens again I'll try to provide more details.

Edit: I'm also using lazygit v0.32.2 on Arch Linux

@jesseduffield
Copy link
Owner

This is fixed in #2765 (it was already fixed but I've fixed it again after adding retry logic for the index.lock issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants