Module-to-SF-connection link is lost after (un)loading the module

10 views
Skip to first unread message

Hrvoje

unread,
Jun 4, 2026, 11:03:15 AM (7 days ago) Jun 4
to Illuminated Cloud General Discussion
Hi,

The structure of my Salesforce project in Intellij is:
- one container Intellij project created as an "empty project"
- added one module per Salesforce org, that is connected to one Salesforce connection (dev, test, ..., production)

With this approach I can easily switch to DEV/TEST/PROD org/environment by just using the Load/Undload Modules... option in Intellij.
Once I need to develop something on DEV, I enable DEV module, if there is a need to check something on TEST, I additionally enable TEST module, and usually disable the DEV module to free some system resource (mostly RAM).

It usually worked just fine, but I recently noticed that, once I disable the module, the related Salesforce connection is no longer linked to it once I reenable module.

This required an additional effort to manually set the desired SF connection each time the module is re-enabled.



Can you please try to check what happens with module and SF connection once module is disabled?

Scott Wells

unread,
Jun 4, 2026, 11:54:09 AM (7 days ago) Jun 4
to Illuminated Cloud General Discussion, Hrvoje
Hi. That's probably not going to be a good option for switching connections in what is fundamentally the same project. I would generally recommend using a single-module project (assuming that the project contents make sense as a single module, and based your description, it sounds like they do) and either per-connection branches with the IDE config files checked into version control or just switching connections as-needed. Trying to have multiple modules like that is probably going to result in any number of ambiguities, conflicts, etc.

Please let me know if that doesn't make sense.

Regards,
Scott Wells
Reply all
Reply to author
Forward
0 new messages