Salesforce DX setting to Push when Save is not working

620 views
Skip to first unread message

mike...@gmail.com

unread,
Oct 24, 2017, 9:04:03 AM10/24/17
to Illuminated Cloud General Discussion
I've started using the SFDX features of Illuminated Cloud the last week or so but even though I have the option to 'Automatically push to server' on Save, as well as everything else , it's not pushing. When I create a new class it pushes fine however when I save, it only saves the file locally without any push to the DX org. Hitting the Push button works fine of course so it's not like there's an error.

Any suggestions? It's working for a colleague here, just not me.

Mike

sc...@illuminatedcloud.com

unread,
Oct 24, 2017, 9:23:56 AM10/24/17
to Illuminated Cloud General Discussion
Mike, do you mind verifying that you have a few settings configured properly for push-on-save? First, make sure that Override Save All action is enabled. Otherwise saving will only initiate a push (or deploy in a traditional org) if the IDE sees the editor contents as out-of-sync with the filesystem. That setting is under Validation and Deployment. Actually, since you already said that you have Automatically push to server>On save enabled, let's start there. If that's already enabled and it's still not working, let me know and I'll have you capture a debug log so I can see what's going on.

Regards,
Scott Wells

mike...@gmail.com

unread,
Oct 24, 2017, 1:28:15 PM10/24/17
to Illuminated Cloud General Discussion
Awesome, flipping the Override Save All worked like a charm.

Thanks for the help, and keep up the amazing work!

Mike

sc...@illuminatedcloud.com

unread,
Oct 24, 2017, 2:49:44 PM10/24/17
to Illuminated Cloud General Discussion
Glad to hear, Mike! Thanks for the update.

rasmuszim...@gmail.com

unread,
Aug 2, 2019, 8:38:04 AM8/2/19
to Illuminated Cloud General Discussion
Hi Scott,

This feature is not working for me even with Override Save All ticked. Anything else that might be missing?

Scott Wells

unread,
Aug 2, 2019, 11:12:37 AM8/2/19
to Illuminated Cloud General Discussion
If you're in an MDAPI project, you should just need Override Save All action and Deploy on save checked. If you're in an SFDX project, you will also need to check the Automatically push to server on... option(s) under the Salesforce DX tab. If you have all of those checked and it's still not working, please enable debug logging for metadata deployment, reproduce the behavior, and email the resulting idea.log to sup...@illuminatedcloud.com.

Regards,
Scott

rasmuszim...@gmail.com

unread,
Aug 2, 2019, 3:41:04 PM8/2/19
to Illuminated Cloud General Discussion
Hi Scott,

Thanks for the quick response. Im on an SFDX project. I got every conveivable checkbox checked, but nothing seems to happen when i press ctrl +S. It seems to autopush to server on create though. Could it be because there's some weird autosave behavior going on in IntelliJ? Also

jare...@gmail.com

unread,
Aug 5, 2019, 12:38:43 PM8/5/19
to Illuminated Cloud General Discussion
I am having the same issue.  Sending a log your way.

Scott Wells

unread,
Aug 6, 2019, 11:01:41 AM8/6/19
to Illuminated Cloud General Discussion
I wanted to circle around here with the resolution to Jaren's issue:

Thanks. That means to me that your project isn't properly configured for source roots. All source files must be found under configured source roots. You can configure your source roots a few different ways:
 
https://www.jetbrains.com/help/idea/content-roots.html
https://www.jetbrains.com/help/webstorm/configuring-project-structure.html
 
Please make sure these are properly configured and I bet this issue (and likely others) goes away. Let me know if it doesn't.

 

IC will warn you if there are no source roots, but if you start adding source to another directory, you must mark it as a source root for IC to know to handle it properly. This becomes even more critical with the more flexible directory structure of SFDX.


I'll see if I can provide better feedback in IC when files are requested for deployment which aren't under a source root as well, but in the interim just make sure that your content roots and source roots are configured properly for your project structure.


Regards,

Scott

rasmuszim...@gmail.com

unread,
Aug 7, 2019, 6:21:42 AM8/7/19
to Illuminated Cloud General Discussion
Hi Scott,

That indeed fixed it. Thanks!
Reply all
Reply to author
Forward
0 new messages