How assosiate module with connection
I opened project from another editor in IDEA, create new connection and would like to associate connection with my module, but there is no this option in settings.
Comments (21)
-
reporter -
repo owner Yeah, this is not the most intuitive part of the configuration because of concessions to development of multiple managed packages in a single dev org. I've been wanting to revisit it for the common/simple use case. In the connection configuration screen you'll see a grid labeled Development Packages. In that grid you'll likely see a single row with Name <default>. The right-most column is labeled Module. Your module should be available in that drop-down. Once that's selected, you can commit the connection. Let me know if that doesn't get you there.
-
repo owner - changed status to resolved
Let me know if these instructions didn't resolve this issue for you.
-
reporter - changed status to open
Ctrl + S don't work in this case.
-
reporter Error related with sourceFolder tag in .iml
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
It don't generated after associate project with connection.
-
repo owner Sergey, I'm not entirely sure I understand. Can you provide me with more details on your project and its modules? It would particularly help if you could send me the .idea/modules.xml, each of the *.iml files, and .idea/illuminatedCloud.xml. If you'd prefer not to attach them to the ticket (understandable), you can also email the to me at SCOTT AT ILLUMINATEDCLOUD DOT COM.
-
reporter When you open existing project in IDEA and associate it with the connection. Save file to server (Ctrl + S) don't works, but Retrieve All Metadata works properly. I found problem in IDEA project file (.iml) where sourceFolder don't specified.
-
repo owner So are you saying that you had an existing project with existing modules that covered Force.com source code? If so, the module type of those existing modules won't be correct because Illuminated Cloud provides its own custom module type, and certain operations are only performed for content from modules of that type. You'd need to create a new IC module to cover the same source roots. Or if you're comfortable hand-editing .iml files, you could try to update the .iml file in-place by comparing it to an existing IC .iml file, but of course the opportunity for errors there is higher if something important is omitted.
-
reporter I have project, that contains only src folder. I open that project in IDEA, create connection to my Org, generate IC module, but source folder path don't generated by IC.
-
repo owner Ah, okay. So yeah...the module root must be a child of the project root. The source directories can't be directly under the project itself. One level of indirection is required. So basically this is fine:
/path/to/myProject /myModule /src /classes ...
but this is not:
/path/to/myProject - also configured as the module root /src /classes ...
I've looked at a few ways to enforce this during module creation but the hooks to do that type of validation aren't present in IDEA's plugin SDK (or I haven't found them), so I put up a warning at that point and have included this in the FAQ (see The module content root directory is not a sub-directory of the project root directory):
www.illuminatedcloud.com/support/faq
The main reasons for this is that the OST library gets added directly under the project and there can't be an intersection between the library root and the module roots or things won't resolve properly using IDEA's search scope mechanisms.
Does that help?
-
reporter Could you please provide a right way how I can import my existing project from VCS to IC?
-
repo owner I just updated my previous comment which wasn't formatted properly. I helped another user with this issue yesterday (if it's the same issue that's impacting you, which it may not be). What that user did was create a subdirectory under the project root for the module root, e.g., /path/to/myProject/default, and then move the src directory to /path/to/myProject/default/src. The module was then recreated (as an Illuminated Cloud module) to have its root at /path/to/myProject/default and its source root at /path/to/myProject/default/src.
-
reporter I understand the idea about files and folder structure, but in this case source root don't specify in .iml and go to class (ctrl+N) not working.
-
reporter You can reproduce this issue if create following folder structure - /project/module/src/classes and try to open 'project' in IDEA and generate IC module for this project.
-
repo owner Okay. Let me tell you what I'm going to try in detail so you can verify that it's the correct set of steps to reproduce the issue.
- Copy one of my existing projects with a Force.com src directory and a directory structure of the form /path/to/project/module/src/classes.
- Delete the .idea directory, .iml file, and OST so that it's for all practical purposes just the Force.com as if I'd pulled it out of some SCM that had never used IDEA or Illuminated Cloud.
- Create a new project in IDEA rooted at /path/to/project. I'll use File>New>Project..., not File>New>Project from Existing Sources... for this.
- Create a new Illuminated Cloud module in that project rooted at /path/to/project/module. This will require me to configure a Force.com connection as well. This will all happen as part of the new project wizard.
- Generate the OST for the connection. I can either do this by checking the box during the new project wizard or afterward.
- Use navigation features such as CTRL+N which in your experience will not work properly at this point.
Does that sound right? If not, please let me know the differences with sufficient details so that I can hopefully reproduce this. Thanks!
-
repo owner Okay, I followed the exact steps detailed above and verified that CTRL+N, CTRL+S, etc., all work properly. Please let me know if following these same steps doesn't help you get your existing source going with the plugin.
-
reporter Thanks, your way works fine. My steps: 1. File > Open 2. Select the module -> Go to Settings -> Associate module with new connection 3. Generate OST
-
repo owner Gotcha. Yeah, if I understand what you were doing correctly, you were associating an existing non-IC module with the project and then trying to use IC features with it. It's important that the module be created as an IC module. Sounds like I can resolve this issue at this point. Please reopen if for some reason you're not good to go now!
-
repo owner - changed status to resolved
-
reporter you were associating an existing non-IC module with the project and then trying to use IC features with it.
You are right.
-
repo owner - changed component to Metadata Deployment/Retrieval/Removal
- Log in to comment
I get following error when I click Generate Offline Symbol Table