Clone from VCS - can't assign connection
Hi, an example of the flow to reproduce the issue:
- Clone a repo using git to one of my projects.
- Open module settings for the new created folder.
- Trying to assign an existing connection using the picklist --> connection shows selected.
- Click OK button.
- No connection has been assigned.
Note I'm on a windows machine.
Workaround: edit the iml file manually to add the connection.
Comments (7)
-
repo owner -
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.
-
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 namedsrc
,force-app
, or whatever. Is that not the case for you? -
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.
-
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. -
repo owner - changed status to resolved
Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.
-
repo owner - removed component
Removing component: IntelliJ IDEA (automated comment)
- Log in to comment
Niv, are there any errors in your
idea.log
when this happens?