When try to retrive metadata then additional files was created

Issue #812 resolved
Aliaksandr Luferau created an issue

additional_meta_files.png After 'retrieve metadata' command finished then in the project explorer i see several unexpected files (as example one of them ...\IdeaProjects\Project\src\classes\ForgotPasswordController.cls-meta.xml.cls). And I need to delete they manually then.

Comments (7)

  1. Scott Wells repo owner

    How is your metadata subscription configured? My guess is that it's configured as All/Package in which case IC is going to retrieve all metadata in the organization. I highly recommend against using All/Package unless you're developing managed packages against development packages in your organization. Otherwise I recommend that you use either Package.xml or Selected. If you use Package.xml and wildcard a metadata type, in this case ApexClass, it will also retrieve all entries of that type. In this case, metadata like ForgotPasswordController is a result of a site or community in your organization and is auto-generated by Salesforce when those entities were created. Definitely take a look at your metadata subscription and make sure that it represents your desired subset of metadata for this project.

    If it does turn out that you have a carefully constructed metadata subscription and it's still including this unexpected metadata, please configure debug logging for Metadata Retrieval as described here:

    http://www.illuminatedcloud.com/support/debuglogging

    reproduce the issue, and attach or email your idea.log so that I can take a look at exactly why it's happening. Thanks!

  2. Aliaksandr Luferau reporter

    Thanks. I will try to debug deployment. Because I always use the "selected" subscription. selected.png

    This unexpected files also created for my own classes. So problem is that this files was created. I think that files like "-meta.xml.cls" is wrong at all.

  3. Scott Wells repo owner

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

  4. Log in to comment