retrieve/deploy not working on SFDX configuration

Issue #2177 resolved
Baba Goudiaby created an issue

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)

  1. Scott Wells repo owner

    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.

  2. Baba Goudiaby reporter

    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

  3. Scott Wells 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:

    Project_Structure.png

    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.

  4. Baba Goudiaby 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

  5. Scott Wells 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.

  6. Baba Goudiaby 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

  7. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  8. Log in to comment