How do I turn off or delete this strange cache?

Hi,
I use a LAN connected local server for my development, so I actually use PHPStorm's built in SFTP and such. Apparently, that is rare, which I understand due to many, many issues. The forever-issue that plagued PHPStorm where it tends to corrupt uploaded files or simply skips them when your upload gets bigger than 10 files being one of them.
However, now I have a new one; See screenshot.
Whenever I have refactored/edited files, PHPStorm will claim the deployed file is ‘different’ from mine, and ask me if I want to merge it. Although rare, it does happen we cross work on the networked server, so I tend to check it. At first I was mostly just confused by how many changes were made, I'd ask people, and they'd be like “Nah, wasn't be bruh” and we'd never really figure it out. Also, the whitespace ignore and everything does not work at all, so there is still that painful forever-issue in phpstorm.
Anyway; I then start the merge process and it'll show me, from left to right: Local - result - deployed
What I noticed, is that the ‘result’ gets entirely magicked out of thin air. I have had files that were refactored, with entirely new functions, rewritten from the bottom up, still showing the old, pre-refactored version from 9 months ago, while my local ánd the deployed files were both entirely up-to-date and the same. However, PHPStorm will just not understand this, apparently.
In my screenshot you can see a very clear example of this. The result is automatically adding the line `RS.Token = new RSC_Token();` – Where does it even come from? You can clearly see on both my local ánd deployed, that not only are they identical, but neither of them has that line.
This has actually caused quite a few issues for me. We have now decided to entirely ignore what PHPStorm thinks, but it still keeps giving me random pop-ups when nobody even touched a file, that they were changed, and stuff like this happens.
And I have already done the whole invalidate caches thing multiple times as well.
PHPStorm seems to basically be hallucinating history as current.
What can I do about this?
I have been seriously considering a policy of switching to VSCode due to issues like these… But if there's an easy solution I just happened to have missed, I'm still open to it.
请先登录再写评论。
Hi,
This is a really weird scenarion and, honestly, I have no quick idea what to suggest here.
The only thing that I can think of now is to check logs once the issue is reproduced. A good starting point would be to enable the extended log level and collect log files next time you notice this behaviour.
To extend the log level, add the following lines to the Help > Diagnostic Tools > Debug Log Settings:
Logs can be collected as usual with the Help > Collect Logs… menu action.
Afterwards, you may either submit a YouTrack report/support ticket with logs or upload them to JetBrains Upload services and share the upload id, I will handle it from there:
https://uploads.jetbrains.com/
Hi Vasiliy, I currently turned as many of those features off as I could and try to ignore it as it causes problems, but if I run into it again, I'll try to do so if I have the time. This of course mostly happens in a crunch :')