Make it easy to wrap an Illuminated Cloud project over the top of an existing codebase in source control
We have a client who has their Salesforce metadata checked into git (i.e., basically the src/ folder with classes, pages, layouts, etc under it and a corresponding package.xml). This was all extracted from Salesforce with the <sf:retrieve> ant task.
Their devs have been using the developer console in Salesforce and text editors to work on their code, and when they have it done they copy it to their git repo and commit it.
I'm trying to move them across to use an IDE more, and in particular, Illuminated Cloud.
I was trying to find an "easy way" to effectively wrap an IntelliJ Idea Illuminated Cloud project over the top of the existing git repo. I basically wanted to create an Illuminated Cloud project in the same directory as the /src folder, pick or set up a connection, but then get it to use the existing /src folder and package xml rather than try to pull the metadata from Salesforce.
I've been trying out the "Create Project from existing sources" and it correctly recognises that the /src folder requires the Illuminated Cloud facet, and picks up on using the src/package.xml ... but then it seems to get lost, doesn't create a module, thinks there is "No SDK" specified, generating the offline symbol table for an SDK seems to freeze up or never complete.
Should it be possible to do it this way? Is there a "correct" way of doing it? Or is this something that needs to be fixed with the Illuminated Cloud plugin?
Comments (7)
-
repo owner -
repo owner - changed status to resolved
I'm going to resolve this for now, but if the described process doesn't work for you, or if you are seeing OST generation freezes when you follow this process (or really at any point), please reopen and attach your
idea.log
using Help>Show Log in Finder/Explorer/Files and I'll need to see why that's happening. -
reporter Hi Scott, thanks, sorry for not getting back to you - we will give it a go and see what happens. Cheers!
-
repo owner Sounds good, Corey. Note that you can do the same thing with a project that's already been pulled from VCS into the local filesystem. Just use File>New>Project from Existing Sources in step 1 above and then it'll pick up again at step 4. Please let me know if that doesn't get you going on existing projects with IC quickly.
-
reporter Yep, the instructions in your first comment worked flawlessly for someone else here ... so I'm happy it works. I don't know what happened locally when I did it earlier (and it didn't work) so I'll give it another go later and see if I can get it to work too.
Great plugin BTW, its been a life-saver when doing Salesforce dev :-)
-
Hello Scott, Corey,
I have a similar issue when working with one of our clients VCS. Managed to clone and follow the steps to connect to a dev org etc. Allows me to retrieve and deploy changes to existing files on the org. However creating a new class does not deploy.
I have added this to my package xml file and set this as the source for the for project contents in illuminated cloud. However this still doesn't deploy to the org.
Any ideas where I am going wrong?
-
repo owner Simon, can you provide a screenshot of the deployment dialog showing the newly-added subscription contents selected for deployment? Also, can you please enable debug logging for metadata deployment as documented here:
http://www.illuminatedcloud.com/support/debuglogging
reproduce the issue, and either attach or email the resulting
idea.log
(Help>Show Log in Explorer/Finder) for review? Thanks! - Log in to comment
Corey, it should be pretty straightforward. Here are the steps to pull a project in from version control as a full-fledged IC project:
It sounds like quite a bit, but it's basically a guided wizard. I just ran through it against an Apex public github repo and the full process took about 2-3 minutes.
Let me know if this doesn't give you what you need.