sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Refresh issue: recent changes are not shown but can be staged

Open Zwyx opened this issue 3 years ago • 2 comments

Version info

  • OS: Ubuntu 22.04
  • Build: 2074

Description

Sublime Merge sometimes doesn't automatically refresh when changes are made to files. When this happens, a change is not visible when clicking the Stage button, but is actually staged.

Steps to reproduce

I am not yet able to tell when or why this starts to happen. But when it is happening:

  1. Make a change to a file
  2. Notice that the change is not visible in Sublime
  3. Stage this file
  4. Notice that the change that wasn't visible in Sublime has been staged.

This is what I have done in this screen record:

Screencast from 19-08-22 10:13:28.webm

Restarting Sublime fixed, temporarily, this issue.

Expected behavior

Changes on disk are always reflected in Sublime.

Note

In case it's relevant, the maximum number of file watchers on my system is 524,288. And the total number of files in all the repositories opened in Sublime is about 120,000 (with most of them being in node_modules folders, ignored by Git).

Zwyx avatar Aug 19 '22 02:08 Zwyx

FWIW, I also find my self sometimes in SM not recognizing changes until the repo is closed & reopend. Cannot reproduce, also tweaked a few filewatcher settings etc. No log entries in SM regarding "too many files opened" or so. And my repos usually aren't that huge. Only happens from time to time, so no big issue here. Kubuntu 22.04.

themilkman avatar Aug 19 '22 06:08 themilkman

On mac, also see that views don't get refreshed, especially the Files tab. When I have made changes, I don't see the files there, until i close/open the repo. Tools -> Refresh also doesn't help.

kg-currenxie avatar Nov 24 '22 03:11 kg-currenxie

I've been having this more frequently recently, so I kept an eye on the number of inotify watches being used.

It just happened now: I had four files changed in the repo, but Sublime was still showing No changes. I have:

  • 62,974 inotify watches being used system wide,
  • 3,549 inotify watches being used by Sublime.

The maximum number is 524,288. We're far from it, so the problem might not be related.

(By the way, I used this script.)

Zwyx avatar Dec 20 '22 06:12 Zwyx