I'm working in Eclipse Photon and my team uses git. I choose not to do anything with the Eclipse git plug in, I just do everything I need with git using a third party application and command line. Egit is installed though. Not sure if any of that factors into my issue.
But I've noticed a couple times now if I start working on a feature branch, add a couple new files in Eclipse, commit my work, then need to switch to another branch for some reason, and then switch back to my feature branch, those new files I added before will not show up in my project explorer in Eclipse, even after refreshing. To be clear, this happens when I switch to one branch that doesn't have my new files, and then back to my feature branch that has the new files. This has been driving me crazy. It's not an issue of git doing anything wrong, git is working as expected. When I switch away from my branch, the files are gone in windows explorer, and when I switch back, they are there again in windows explorer. The only solution I've found, which works inconsistently, is to close and reopen Eclipse. Which is a huge waste of time for how slow Eclipse is. Anyone have any ideas about what might cause this behavior?
I've been using this setup for a while and only just started noticing it. Refresh does nothing for me. I've tried importing my new file, but this leads to an error stating that my destination already contains the file in its hierarchy. Well, that makes sense, because it does. And yet, Eclipse still won't show me the file in the explorer. I can open the file into Eclipse from windows explorer, and even then, Eclipse won't show me the file in the explorer. This wouldn't be too much of a bother, except it's invisible in my references and searches too, which is annoying because I'm working on and referencing things in the new files.
Thanks for any help!