-
Notifications
You must be signed in to change notification settings - Fork 11
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
All files deleted or untracked every so often #19
Comments
I suspect the pull command combined with deleting the branch on github is causing this. Apart from that try to update to the latest EGit release 6.8.0.202311291450-r [1] and check if this helps. The last Eclipse IDE release was 2023-12, the next one is 2024-03 which will be shipped on March 13 [2]. [1] https://download.eclipse.org/egit/updates-6.8 |
I've never used fetch and I've been using egit for like 8 years. Not sure what is going on. Isn't it standard to:
This is what I've been doing forever. Also, is there a way to turn on logging in egit so I can see at what point it goes off the rails? |
when this happens again, please check if the git config of that repo still looks good. Over the years I had a handful of occurrences where my git config was empty or almost empty after some egit operation, and that had similar confusing effects like you describe. In my case it was sufficient to restore the config file. |
Just was able to reproduce this so I made a screen recording of it. https://www.youtube.com/watch?v=sslAA5uYDLs Thanks @Bananeweizen . The .git/config doesn't seem to have been modified since May 24th so I don't think it is has been changed. Anything else I can check? |
@msohn It doesn't seem to be related to deleting the branch since I hadn't gotten as far as even pushing the branch up to github. |
I watched your reproducer video and I think it's not the files in the working tree you lost but it's the git index (that's the .git/index file in the .git repository folder). That's why the index version isn't shown anymore in the diff view. The git index is a cache of file metadata to speed up git status which needs to find out which files have been modified in the working tree. See https://mincong.io/2018/04/28/git-index/. You can try to recreate it using
Maybe there is interference with some other process like an on-access virus scan on your machine ? |
Version
6.5.0.202303070854-r
Operating System
MacOS
Eclipse version
2023-03 (4.27.0)
Bug description
Every once and a while, maybe when I'm transitioning between branches, I will find that all of my files have been deleted in my repository. I have recently moved to a new Macbook and had upgraded to 2024-01 (I think) version of Eclipse and saw this so went back to the 2023-03 version but just saw it again.
Actual behavior
As far as I can tell, I just did a:
Expected behavior
I did not expect all of my files to be deleted.
Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered: