Unity icon indicating copy to clipboard operation
Unity copied to clipboard

Listing Changes Files Refresh Issue

Open drguthals opened this issue 7 years ago • 40 comments

From Twitter:

I cannot for the life of me find a fix for the "Listing change files" refresh issue for the GitHub panel in Unity. How do I fix this refresh problem, I cannot submit my changes to my repos because it keeps deselecting my changes...

For context; this is what I see refreshing every second or so. It deselects my changes which prevents me from submitting them to the repo.

dr3amjtvaaa4t9g

drguthals avatar Nov 15 '18 16:11 drguthals

Thanks for getting back to me!

It occurs automatically on it's own. Once I open Unity and submit a commit it will continue to refresh the listed changes (even though there are none).

As it's listing the changed files, it will deselect any of the changes from the list preventing me from being able to commit further changes.

I hope we can figure out a fix, thank you for the help! :)

MaximumHussey avatar Nov 15 '18 17:11 MaximumHussey

Sorry that's it's so messed up for you! There's two problems here, it seems: 1) it should not be constantly refreshing and 2) the UI should not reset your selection

I'll work on fixing 2, but I'm not surr why 1 is happening. Could you enable trace logging in the settings tab and then upload the log after some refreshes so I can take a look? The path to the log shows up in the console the first time you start Unity with the plugin running.

shana avatar Nov 15 '18 19:11 shana

Absolutely! I'll see if I can get that for log you this afternoon when I get home.

Thanks for the assistance!

MaximumHussey avatar Nov 15 '18 19:11 MaximumHussey

Hi again, sorry about the delay had a few busy days. I believe this is the correct log file.

Thanks again!

github-unity.log

MaximumHussey avatar Nov 18 '18 21:11 MaximumHussey

Yeah, something is definitely wonky with your project, it keeps running git status over and over again. Do you have something in your project that might be changing something in the filesystem once a second?

shana avatar Nov 19 '18 10:11 shana

To be honest I don't know, this is my first time using a GIT system before and I was hopin' this panel would make it easier to understand :P I'm super fresh to the whole scripting/programming thing!

I can't imagine that there would be anything causing it to refresh all the time. It seems that if I can press the "refresh" button at just the right time I am able to stop the panel from automatically doing it.

Is there anything else that I would be able to grab for you that might give you a clearer idea?

Thanks again!

MaximumHussey avatar Nov 20 '18 03:11 MaximumHussey

@MaximumHussey Sorry for not getting back to you earlier, still trying to figure out what's wrong. We're working on a fix for the selection, so at least even if it goes nuts refreshing it shouldn't affect your work. Hopefully I can get a build for you to test this week. Thank you for the patience!

shana avatar Nov 26 '18 15:11 shana

I just experienced this issue. Here is the log and I will try to provide any info upon request!

github-unity.log

jeliastam avatar Feb 06 '19 01:02 jeliastam

I have the same issue once in a while... it is very annoying. To get out of that state, I usually close the editor and commit using Git Desktop... I hope it gets fixed soon. I have a feeling it is related to locks as I often trigger this loop state when working with locks.

uberyoji avatar Apr 16 '19 13:04 uberyoji

I have the same issue also. What I do is I go to Window->Github CLI and as long as you are in the opened console/terminal it works fine. The UI Window does not work for me though. I hope it gets fixed soon!

DanielDimanov avatar May 02 '19 17:05 DanielDimanov

Do you have any other git repo folders inside your project that aren't proper submodules? Making them proper submodules or removing the .git folder inside them stopped the issue for me.

AlpyneDreams avatar Jun 20 '19 05:06 AlpyneDreams

I have had this issue on MacOS 10.14.5 Running GitHubForUnity:'v1.4.0' Unity:'v2019.1.8f1'. To reiterate the issue, Checked items in the UI become unchecked by the refresh.

The only things of interest in the trace log are:

190628-11:41:19.851 TRACE [ 1] <GitUserCache> needsInvalidation isInitialized:False timedOut:False 190628-11:41:19.853 TRACE [81] <ProcessWrapper> Running '/usr/local/bin/git config --get --global user.name' 190628-11:41:19.995 TRACE [85] <ProcessWrapper> Running '/usr/local/bin/git config --get --global user.email' 190628-11:41:20.063 TRACE [73] <ProcessWrapper> Running '/usr/local/bin/git -c i18n.logoutputencoding=utf8 -c core.quotepath=false --no-optional-locks status -b -u --porcelain'

It repeats the GitStatusCache line occasionally and ProcessWrapper line quite a bit.

  • I made sure that the repo was in sync and the "listing file changes" progress bar kept up its antics.
  • I tried a completely blank Unity project and initialized a repo from the plugin and it did not have the issue.
  • I returned to the my existing project and synced up the gitignore and gitattributes files. issue remained.

oddlots avatar Jun 28 '19 17:06 oddlots

Stuck with the same issue.

Any one have a solution?

Snoozey avatar Jul 13 '19 01:07 Snoozey

Unfortunately I abandoned it after a number of attempts

oddlots avatar Jul 15 '19 00:07 oddlots

Same issue. Enabled trace logging and found a piece of logs that have been repeated

<ProcessWrapper> Running '/usr/bin/git -c i18n.logoutputencoding=utf8 -c core.quotepath=false --no-optional-locks status -b -u --porcelain'

Wondering how to fix it.

Bosspwn avatar Jul 17 '19 11:07 Bosspwn

I have also this issue.

kronnect avatar Aug 05 '19 15:08 kronnect

Editor->Project Settings->Editor: Version Control/Mode = Visible Meta Files fixed it for me.

sarrowsmith avatar Aug 05 '19 19:08 sarrowsmith

Same issue, sarrowsmith's solution fixed the problem for me, thanks.

douyafang avatar Aug 09 '19 22:08 douyafang

sarrowsmith's solution worked for me too! Thanks!

itsandrewhong avatar Sep 05 '19 03:09 itsandrewhong

wow that worked for me too. Anyone here trying to be foolish and have both collab and git repo activated?

Crazykingjammy avatar Sep 14 '19 21:09 Crazykingjammy

This solution also worked for me!

toonhimself avatar Dec 20 '19 09:12 toonhimself

github is useless, what a lamer programmer

IONM12 avatar May 28 '21 02:05 IONM12

Changing the visibility mode of meta files doesn't seems to work for me. I am using Unity 2021.2.0b11,which is a beta version. The refresh bug is reproduced everytime I create a project and initialize Git. It might be due to a change in unity.

fweibel avatar Sep 14 '21 06:09 fweibel

Changing the visibility mode of metafiles doesn't seem to work for me. I am using Unity 2021.2.0b11, which is a beta version. The refresh bug is reproduced every time I create a project and initialize Git. It might be due to a change in unity.

Any luck on fixing this issue?

smultar avatar Oct 03 '21 21:10 smultar

Today I upgraded to the new 2021.2 "Tech Stream", and the "Listing changed files" is happening now with my project. The "Visible Meta Files" fix above doesn't work anymore. Any solution for this 3 years old issue?

GusDS avatar Oct 27 '21 00:10 GusDS

Today I upgraded to the new 2021.2 "Tech Stream", and the "Listing changed files" is happening now with my project. The "Visible Meta Files" fix above doesn't work anymore. Any solution for this 3 years old issue?

Have same question. Mode already "Visible Meta Files".

Kazbek avatar Nov 02 '21 22:11 Kazbek

So changing the Mode did not do anything for me, it was already in the right mode, but i have this file lying around in my root directory. And renaming the gitignore file solved the issue for me. But obviously i need the file.

Edit: False Alarm, it just takes a lot of time for it to refresh, but it still does it.

x1rom avatar Nov 19 '21 19:11 x1rom

my temporary solution is to use github-desktop app

someone-s avatar Nov 21 '21 07:11 someone-s

my temporary solution is to use github-desktop app

Yes. When trying to fix this, I did a logout and couldn't login again... This is ANOTHER posted issue without a solution. I've already dropped GitHub for Unity and I'm using GitHub desktop or Visual Studio Code source control. The last release of this package is from June 2019. It seems it's discontinued and without support.

GusDS avatar Nov 21 '21 18:11 GusDS

Got hit by this issue today w/ unity 2021.2.7f1 on Windows 10. Same thing it keeps running git status every 800 ms and de-selecting the files to commit. Downloaded github-for-unity today and this is a brand new unity project. The "visible meta files" is already set and switching it does nothing.

cpizano avatar Dec 30 '21 22:12 cpizano