PyCharm 2025.3.1.1 - git rollback not working
Answered
This is a strange new behavior - if I want to rollback some files from git, this doesn't work. It is simply ignored, and after some attempts it works (randomly?). No idea how this can happen.
In the last time is is in general a little bit frustrating - with every update there are more bugs than fixes (at least it feels like this). I love JetBrains IDEs because they are the best tools I can have, but I hope the quality will come back soon.
Please sign in to leave a comment.
Could you please share a screen recording showing the issue in your IDE?
What exactly happens when you try to rollback? Is it completely ignored or there is some error message or warning shown?
Also, could you please enable debug logging by adding the following lines to Help > Diagnostic Tools > Debug Log Settings..:
restart IDE, reproduce the issue again and share your IDE logs (Help > Collect Logs and Diagnostic Data)?
Logs contain useful information about your environment and potentially some errors/exceptions related to the issue.
You can upload the mentioned data to our secure server: https://uploads.jetbrains.com, just provide the uploaded file ID.
Thank you!
Upload-ID: 2026_01_15_232GQLgxmqH4ZpLXmxwDzb
Screen capture and upload are from 2 different runs; for reproduce with logging I had to try several times, and when it happened, i had 3 files changed and all 3 selected for revert, 2 of them where reverted but the 3rd one not.
Thank you for the logs and screen recording.
In the log, only the last rollback execution is shown, previous ones are not logged/executed for some reason.
In the screen recording I see there is a cache conflict warning after the last rollback action. Does it show every time a rollback is actually executed?
Also, I saw that rollback was executed after you closed the file in the editor. Is it related? Does the rollback action get executed when the file is not open in the editor?
Is your project located on a local drive or a network/share? Do you have symbolic links in the project directory path?
From the screen recording it looks like you are working in regular/monolith mode – not remote development, is it correct?
Cache conflict: this happens relatively often in this case, yes. Not sure if everytime, but is is related.
Closing the file: I got the impression it is related, yes.
My project is on local disk, no symbolic links.
Thank you for the information.
Could you please check if the following options are enabled in Settings (
⌘ + ,orCtrl + Alt + S) > Appearance & Behavior > System Settings | Autosave:So it looks like when the file is opened in editor the rollback action is not triggered, right?
Could you also try to close the IDE and delete the IDE system directory? This will recreate IDE caches/indexes from scratch on the next IDE startup. Sometimes indexes/caches can get corrupted and cause unexpected behavior.
> So it looks like when the file is opened in editor the rollback action is not triggered, right?
Yes.
After renaming the system directory (and restarting PyCharm) i see some random behavior, all 3 variants:
* Successful
* Success but with asking for reloading from disk
* Not working at all
BTW; I'm on Ubuntu Mate 22.04
Thank you for the information.
Is it the same behavior as before renaming system directory? You had all three variants before also, right?
Is it still not working when the file is open in editor, and showing cache conflict warning when the file is not open in editor?
The behavior is not stable, it looks more random. All of the previously mentioned effects may occur. I would say that renaming the directory did not change anything.
Thank you for the information.
Btw, was a new system directory created automatically – after you renamed the old one?
Yes, immediately, and PyCharm recreated the indexes
Thank you for the information.
Could you also please try the following general troubleshooting steps – to test if it will affect the behavior.:
.ideafolder and any*.imlfiles in your project root folder in the file explorer, and re-import the project from existing sources. You can also rename the.ideafolder in case you have many project-level settings configured.Sorry, I have delivery pressure and will definitely not destroy my development environment. There are a lot of plugins, too many for a quick test.
What I did is to checkout my project into a tmp folder (.idea is not comitted in git) and opened it as a new project. Within this new project I tried several times to reproduce, but the effect did not appear. So, it looks like the problem has to do with the stored data in .idea folder.
Thank you for the information. Glad to hear it is now working as expected for you.
If possible, please share your
.ideadirectory (broken one) with us, to try to investigate the root cause of the issue.OK, you can find it here: 2026_01_20_UviommZvZehVB8fy7uRoSi
Thank you for the upload.
I created a new bug report for this issue for our development team to analyze: https://youtrack.jetbrains.com/issue/IJPL-230786.
Feel free to follow it for progress updates.
I'm also affected by this bug, both in pycharm and Idea Ultimate