Untouched files with former deployment error aren't deployed on save
Hi,
when editing Apex Code I do deploy single classes with manually saving via keyboard shortcut. Then I'm checking Event Log for success. Sometimes there is an error because of other classes, dependencies, scheduled jobs, running deployments etc. After fixing the cause I want to deploy the file again by saving but IC wouldn't because I didn't change the file/class. After adding an empty line IC deploys the class without error. IC should "remember" that deployment of the file/class failed last time and saving file should always deploy it then, although there are no changes made.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
I'm going to resolve this assuming(/hoping) that Override Save All action gives you what you need. If it doesn't, or if you find issues with it, just reopen with those details and I'll absolutely take a look.
-
Account Deleted reporter It works like a charm. Thank you very much!
- Log in to comment
Hi, John. Have you tried enabling Override Save All action? That was implemented largely to assist with this issue. The short version is that IntelliJ IDEA tries to optimize when saves occur and only does them when the local buffer is different from the on-disk file contents. By default Illuminated Cloud reacts to save events, not the save keystroke, so you would see the behavior you describe. When you enable Override Save All action, every time you try to save a file, even if it's not "dirty" from IntelliJ's perspective, it will be deployed to the server. I highly recommend this as the default behavior for most people because it takes the guesswork out of whether a file will be deployed or not.
If you do have that enabled and you're still seeing this behavior, let me know as that would indicate a bug.