wudeyong/GitLabProjects

Configured GitLab servers do not appear.

YKdvd opened this issue · 3 comments

YKdvd commented

I've installed GitLabProjects 2.0.4 to PyCharm 2020.3.3 on Windows. I've configured both "gitlab.com" and our locally managed GitLab instance as servers, but they don't show up when choosing Git->Clone..., or the "Get from VCS" to try and check out a repo to create a new project. The equivalent server from the GitHub plugin does show up. As far as I can tell, there's nothing else I should have to configure to have this appear? Is there a recent breakage of this plugin, or something else that would prevent this from working?

image

Click git -> VCS Options, and you can found it from the popup modal

According to JetBrains employee here (from Feb 2020), the gitRepositoryHostingService extension point is outdated since 2019.3.
I assume this API was removed or is ignored in newer versions (2021+).

He states that the new API openapi.vcs.ui.cloneDialog.VcsCloneDialogExtension should be used for this kind of feature.

This is what JB does for GitHUB integration:
https://github.com/JetBrains/intellij-community/tree/master/plugins/github/src/org/jetbrains/plugins/github/ui/cloneDialog
They add "GitHub" and "GitHub Enterprise" as separate options in "Get from Version Control" (which you can also see in screenshot above)
plugin.xml: https://github.com/JetBrains/intellij-community/blob/49623250e163fe71355a7d3b125499966c5fb39e/plugins/github/resources/META-INF/plugin.xml#L56

Also follow this:
https://youtrack.jetbrains.com/issue/IDEA-109294

JetBrains is working on GitLab integration (not sure if it includes the "Get from VCS" dialog yet...)