Untouched files with former deployment error aren't deployed on save

Issue #643 resolved
Former user created an issue

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)

  1. Scott Wells repo owner

    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.

  2. Scott Wells repo owner

    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.

  3. Log in to comment