Clone from VCS - can't assign connection

Issue #1128 resolved
nivgo created an issue

Hi, an example of the flow to reproduce the issue:

  1. Clone a repo using git to one of my projects.
  2. Open module settings for the new created folder.
  3. Trying to assign an existing connection using the picklist --> connection shows selected.
  4. Click OK button.
  5. No connection has been assigned.

Note I'm on a windows machine.

Workaround: edit the iml file manually to add the connection.

Comments (7)

  1. nivgo reporter

    Hi Scott, sorry for the really long late reply...things were really busy at this time :)

    I found out that if the source in the repo is not inside a "src" folder IC don't recognize it properly, if you add a "src" folder everything seems good.

    Thanks.

  2. Scott Wells repo owner

    Niv, I'll have to look to be sure, but I'm pretty certain that IC no longer requires the parent folder to be named src. It does, however, require that the metadata reside under a configured source root, whether that's named src, force-app, or whatever. Is that not the case for you?

  3. nivgo reporter

    There wasn't any source root for that repo, so I assume this was the issue. It wasn't my repo, but I have seen few people sharing source without any root folder, so maybe it's worth considering this use case.

  4. Scott Wells repo owner

    Niv, can you create a simple standalone project that reproduces this issue and attach it here? I just created a project where there's no top-level source directory and the metadata dirs (e.g., classes, objects, etc.) are immediately under the project root directory, and things behaved properly. I'm curious to see one that doesn't work so that I can fix it.

  5. Scott Wells repo owner

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

  6. Log in to comment