- edited description
Project subscription issue
I have a sfdx source based project that is not a package but using the source format. In it I’ve tried configuring it multiple times to allow custom selection of my metadata but I can’t select ‘Selected’ as my subscription type.
And so anytime I goto deploy now I get:
any ideas?
Comments (16)
-
reporter -
repo owner - changed status to resolved
Justin, this was intentional. The combination of Selected and source format was never intended to be supported, and the bug that allowed it to be could cause issues when IC2 engaged the CLI for deployment or retrieval, or could cause IC2 to think that the project is for a source-tracked org. A source format project against a non-source-tracked org must use a
package.xml
-based subscription. Note that the same selection facilities are available now forpackage.xml
as for Selected. -
reporter Ahh ok.
How do I add metadata to the subscription then? I tried running it with a package.xml but everytime I tried ‘adding to metadata subscription’ it would do nothing and I would keep getting prompted everytime I wanted to deploy? Do I have to do that manually i.e. edit the package.xml manually?
-
repo owner If you switch to a Package.xml metadata subscription and select a
package.xml
file, IC2 should help maintain that file just as it would a Selected metadata subscription. That means that Illuminated Cloud>Add to Metadata Subscription should work, as should the metadata subscription checkbox tree in Illuminated Cloud>Configure Module. Your designatedpackage.xml
file should be updated as you do those actions. Similarly if you enable automatic subscription updates in Illuminated Cloud>Configure Application>Validation and Deployment>Metadata subscription>When files are added and remove, it should update yourpackage.xml
file as you create/delete metadata files via the IDE. -
reporter That’s what I did - I switched to manifest/package.xml (which exists and is there) but whenever I try to ‘Add metadata to subscription’ nothing happens - no usual notification that it was or wasn’t added.
-
repo owner Justin, it must be some other misconfiguration then (or a bug). Let's see if we can find it. Do you mind providing two things? First, please send over this project's
.iml
file. Second, please add the following for debug logging, retry Add to Metadata Subscription, and provide theidea.log
for review:#com.illuminatedcloud.intellij.settings.module.ModuleContentsSynchronizationListener
-
reporter - changed status to open
Further investigation required
-
reporter - changed title to Project subscription issue
-
reporter - attached GRE_Salesforce_Phase_One.iml
IML File
-
reporter Hi Scott
thanks for getting back to me.
This is what I got in the log:
2021-06-03 09:58:24,399 [82732438] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: #com.illuminatedcloud.intellij.settings.module.ModuleContentsSynchronizationListener 2021-06-03 09:58:31,310 [82739349] INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 15 ms 2021-06-03 09:58:31,333 [82739372] DEBUG - ontentsSynchronizationListener - Subscription management policy is Never Update. Ignoring ADD event for amc__Approval_Values.globalValueSet-meta.xml. 2021-06-03 09:58:33,764 [82741803] INFO - rationStore.ComponentStoreImpl - Saving Project(name=GRE Salesforce Phase One, containerState=COMPONENT_CREATED, componentStore=C:\Users\justinj\Workspace\GRE Salesforce Phase One)ProjectPlainTextFileTypeManager took 15 ms 2021-06-03 09:58:40,229 [82748268] INFO - in.events.ServerPollingManager - Timer fired
and here’s my subscription setting page:
-
repo owner Justin, this is certainly important:
2021-06-03 09:58:31,333 [82739372] DEBUG - ontentsSynchronizationListener - Subscription management policy is Never Update. Ignoring ADD event for amc__Approval_Values.globalValueSet-meta.xml.
You've configured IC2 never to make changes to your metadata subscription. See the Metadata Subscription settings documented here for more details, but if you want things like Add to Metadata Subscription to work, that should be configured for either Prompt (recommended) or Always Update. Is that perhaps the root cause of this issue?
-
reporter Hi Scott
I was under the impression that if a file was added or removed from the file system this setting would apply. As it doesn’t make sense to prompt to add when you use the context menu to ‘Add to metadata subscription’ - that should be implicit right if you set it to always prompt? Does that make sense?
And yes that now allows me to add and remove to the subscription.
thanks
-
reporter Also - I’m not 100% sure but I haven’t raised this issue before as I think I was using the selected option in the project dialog. Does it work differently?
It would be good to avoid confusion in the future if the ‘Add metadata to subscription’ context menu was removed if the Metadata Subscription = Never, or a prompt to notify silly users like myself why it wouldn’t work
thanks for your quick responses on this.
-
repo owner Yeah, I was just thinking the same thing. Either that action should be disabled if you've specified Never Update, or it shouldn't consult that setting since it's an explicit, user-initiated action. I'll chew on that, but it does seem that there's a disconnect there one way or the other.
-
reporter Thanks.
In answer to my other question and RTFD.
NOTE: This option applies only to modules that use a
package.xml
metadata subscription. -
repo owner - changed status to resolved
I'm a bit confused as to where we left this, particularly with the larger changes around metadata subscriptions, e.g., the removal of Selected as a metadata subscription type. Is there still an issue here? If so, please reopen and clarify what is left to address.
- Log in to comment