retrieve/deploy not working on SFDX configuration
On my project, we’re using SFDX configuration, and the connection with the org is working correctly.
But the retrieve operation is taking too long and the deploy operation is not working.
You will find in the attachment the log and the screenshot of what happened when I clicked on “Deploy Modified Metadata” or “Deploy All Metadata”.
I have this problem only on my SFDX projects, no performance problem for MDAPI projects.
I got stuck for many weeks with this problem.
Thanks in advance,
Baba
Comments (9)
-
repo owner -
reporter - attached devAM.iml
Hi,
Thank you for your answer. Sure I attached the .iml file.
I checked directories and removed the node_modules and I do a retry but refreshing one file takes a very long time. : Refreshed 1/1 components from devAM in 1 m 23 s 989 ms with status SUCCEEDED.Many thanks
-
repo owner Okay. It looks like your source root is set at the very top with no excludes. I'd recommend that you remove the project root as a source root and add the specific root directory/ies under which metadata can be found, then explicitly add
node_modules
as an exclude. Here's an example from one of my projects for reference:Notice that
node_modules
is already excluded by the IDE and doesn't need to be excluded explicitly. If that's not the case in your config once you get it set up similar to what I show above, go ahead and mark it explicitly as an exclude directory.Let me know if that doesn't make sense and/or doesn't help with the original issue.
-
reporter Hi,
Based on the reference above, I updated my project structure. The retrieval operation is now a little bit faster (less than one minute) with that change.
The principal issue with the "deployment operation" is that it does not work at all. Currently, it is blocked on the populating contents window and blocks the application also (see attachment).
Even so, the sfdx force:source:deploy command does not take long.Many thanks
-
repo owner Okay. Let's start with what is likely already the case but could make a difference if not. Can you please ensure that you're on the latest versions of both the underlying JetBrains IDE and the Illuminated Cloud 2 plugin? Assuming that you either are or that the same behavior exists after updating, please enable debug logging for Metadata Deployment, Metadata Retrieval, and Salesforce DX and reproduce these behaviors, then send me all
idea.log*
files from the duration of those reproductions for review. You can attach them here or, if you'd prefer, you can email them. -
repo owner Hi. Anything new to report here?
-
reporter Hi Scott,
I just come back from vacation.
I updated both Jetbrains IDE (webStorm) and IC2 plugin with the last version but the problem persists.I will send you all the logs requested through email soon.
Thanks,
Baba
-
repo owner - changed status to resolved
Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.
-
repo owner - changed component to Metadata Deployment/Retrieval/Removal
- Log in to comment
Hi. Can you send me your project's
.iml
file? At a minimum it looks like there are some directories that should be excluded, e.g.,node_modules
which contains a LARGE number of files that are being processed but shouldn't.