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

cannot commit and push sometimes; requires restart to work again #567

Open
kwsiah opened this issue Aug 19, 2019 · 6 comments
Open

cannot commit and push sometimes; requires restart to work again #567

kwsiah opened this issue Aug 19, 2019 · 6 comments

Comments

@kwsiah
Copy link

kwsiah commented Aug 19, 2019

Hi, I've been using sublime-text-git on sublimetext3 for quite awhile. It works really well. However, sometimes it just stops working---I can enter a commit message for git quick commit but the git-output doesn't come up as usual to show that the commit has been registered. The problem goes away only after I restart sublimetext.

Usually the bar at the bottom of the sublimetext window has "Git branch: master, index: (tick), working: (tick), ...". This goes away when it stops working. I can't figure out the source of this problem. Is anyone else facing this problem?

@MPvHarmelen
Copy link

Hmm, I have something similar but not the same:
all git commands stop working and the git message in the status bar doesn't update any more, but it still shows (index: bla, working: foo). Problem goes away after restarting sublime.

Additional observations:
Putting the machine to sleep flushes all git commands I did (and (sometimes?) shows a bad file descriptor popup) and fixes all problems.

OS: Ubuntu 18.04.04

@MPvHarmelen
Copy link

MPvHarmelen commented May 13, 2020

Still the same after updating to Ubuntu 20.04.
Forgot to mention that the commands do show up in the status bar, like /usr/bin/get status --porcelain for the git_status command.

Commands after which a bad file descriptor dialog box popped up:

  • git_add_selected_hunk (adding didn't go through after suspending and waking)
  • git_quick_commit (committing went well after suspending and waking)
  • git_add_choice (the overlay to choose what to add showed up as normal after suspending and waking)

An example of the log I get (when sublime.log_commands(True)):

command: git_add_choice                         # the command
command: move {"by": "lines", "forward": true}  # me finding out it didn't work
# suspend machine and wake up again
OSError [Errno 9] Bad file descriptor
error: Bad file descriptor

As said, the command worked just fine.

@nikita-volkov
Copy link

What's the status on this? I confirm experiencing the same issue.

Git plugin: 1.0.8
OS: macOS 11.0.1
SublimeText: 3.2.2 Build 3211

@fifofonix
Copy link

Experiencing the same issue. Works fine until it doesn't. Sublime console shows the command that is being requested, e.g. ['git', 'add', '-A'] when it is working, and does just the same when it isn't. Sadly no obvious way to see any further debug information on what might be failing. Certainly os.getcwd() is still a git project when it is in a failing state. I am working with multiple git projects concurrently within one sublime project and wonder whether this is a cause?

@nikita-volkov
Copy link

I am working with multiple git projects concurrently within one sublime project and wonder whether this is a cause?

It's not. I've experienced this working on a single repo.

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

No branches or pull requests

5 participants
@MPvHarmelen @nikita-volkov @kwsiah @fifofonix and others