Hey all,
Is it possible to import a set of Salesforce metadata from Git and convert it into an Illuminated Cloud project within IntelliJ? The repository is basic, just a src/ and package.xml.
So far I've:
- Cloned the repository and loaded it as a project in IntelliJ
- Added the Illuminated Cloud Facet to the project
- Added and tested my connection string
From here retrieving data seems to work, but I could not push data. Also, I could not generate the offline symbol table.
When I then did was add the following line to my connection string in .idea/illuminatedCloud.xml:
<option name="defaultModuleName" value="MyModule" />
I did this because when I attempted to generate symbol tables, it gave me a warning saying it could not as there was no module associated with my connection. I examined other working IC settings and saw this difference.
Doing this did not do what I expected. On restart IntelliJ complained that my project was out-dated and prompted to update it. When I did this, I was then prompted with an error that the module 'MyModule' had invalid configuration. Upon clicking 'Resolve' it turned my src/ folder into a source directory, and immediately began generating the offline sources table.
Once that was complete I was able to push data!
So... that leads me back to my original question. And although I got it working, it seems like the major hangup was in the disconnect between the Facet I added for IC and the existing module. Where did I go astray? Was it in not originally marking src/ as a source directory?
I'm sure I'm hugely misguided, so set me straight! I am currently documenting an onboarding process for new developers and want to offer them the chance to use IntelliJ + IC if they desire so any and all help is extremely appreciated.
Thanks,
Joe Bleau