-
Notifications
You must be signed in to change notification settings - Fork 35
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
Some trouble with the sidebar again #1733
Comments
Possibly related: #310 |
Number 2 could be related to #1548 |
|
Maybe check your (icon) theme to see under what circumstances it uses the icon that is a folder with an infinite symbol then. |
I use Adaptive Theme with A File Icon package installed. A File Icon seems not to provide folder icons thus I had a look into Adaptive Theme folder. There are several accountable folder icons but I am quite sure it was symlink.png which I saw. Very strange as the folders definitely were real folders but no symlinks or junctions. Maybe ST accidentally recognized them as those? I had some trouble with symlink handling in GitGutter, too, as python's |
@deathaxe The infinite symbol is a chain link, which means the file showed up as a file that has been scanned before, which usually implies a symlink. You can't expand symlinks since it could easily lead to an infinite list of files to popular in Goto Anything and the indexer. |
But it is/was no symlink at all. That's the strange thing. Or does git create temporary symlinks while rebase/cherry pick? |
It isn't strictly for symlinks, it will do it for any file that appears to be a duplicate (based on inode). It may be that git is moving things around in such a way that it was (properly) detected as a duplicate. When the other copy/reference was removed, you were stuck with a "duplicate" copy. That is my hunch, anyway. |
I realized those issues when calling "git: stage current file and fixup" command provided by GitSavvy. I didn't investigate how this command works in detail, but I already got error messages like "I can't cherry pick" from it in the past. Sidebar indeed changes much during that operation. |
@deathaxe If you see this again, can you check in your console for |
Is this a new massage added in recent dev builts? Can't remember to have seen something like that. |
No, it's been around a long time. It is just the only way I've been able to find issues with the sidebar similar to what you describe here is to do a git operation that either adds or removes thousands of files from one of the folders in the sidebar. Each time the sidebar gets out-of-whack, I see that error in my console. |
I recently struggled a lot with #1750 when rebasing package resources especially tmPreferences. The dozens of error dialogs may prevent the sidebar issue for me at the moment. But I'll try with another repo. |
Ah, just realize the repo I had this issue is the one which triggers #1750 since 3133. Therefore I think I'll fail reproducing this issue at the moment. |
The documentation of Maybe it is a good idea to add some idle time, when realizing such an error and restart watching the directory and updating the tree some seconds later. The documentation suggests to manually enumerate the directories to read changes, if The sidebar relies only on information got from |
@deathaxe Yes, we already handle the various documented error conditions of |
Sounds good for us users, but like a kind of nightmare for you. 😄 I can at least confirm directory deletions were part of the git operations which lead to unsync sidebar. So you are on track from my point of view. |
This should (hopefully) be improved/fixed in 3137. We found that |
@deathaxe Have you seen this at all with 3139? |
Not yet. Did some checkouts, external rebase and some fixups using GitSavvy on several months old commits to see what happens on such heavy operations. Sidebar stops updating on some point and goes after a little idle time. After all it's up to date again. Seems ok now. |
Ok, that seems to indicate the issue was that |
Summary
I realized three issues with the sidebar of ST 3132 since yesterday which may all be related and maybe caused by the same reason.
Issue 1: missing file
I made some screenshots about this issue, yesterday.
Expected behavior
This is the state after restarting sublime. The file is displayed in the sidebar again.
Actual behavior
As you can see the open file Keywords.sublime-completions is not part of the project tree on the left even though it exists on disk.
Steps to reproduce
Unfortunately I found no way to reproduce with 100% chance but all of them happened after rebasing the underlying repository. I sometimes do so with GitExtensions or with GitSavvy's
git: stage current file and fixup
command. In all cases the file Keywords.sublime-completions was temporarily removed from disk and spawned again by git rebase/cherry-pick.Environment
The text was updated successfully, but these errors were encountered: