kemayo / sublime-text-git

Plugin for some git integration into sublime text
MIT License
2.83k stars 391 forks source link

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

Open kwsiah opened 4 years ago

kwsiah commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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:

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.