問題
IntelliJ IDEA Community Edition 2023.3(社區版)在使用GitLab連接時,使用個人訪問令牌出現報錯,代碼:
GraphQL error:[No such type ProjectMember,so it can't be a fraggment condition,Field 'id' doesn't exist on type 'User',Field 'projectMemberships' doesn't exist on type 'User',Fragment pageInfo was defined,but no used,Fragment project was defined,but not used]
?原因分析
?IDEA是在2023.02版本時引入的GitLab的插件,在官方中已經說明該插件支持的版本不低于15.10
GitLab | IntelliJ?IDEA Documentation
查看了自己使用的GitLab版本僅僅是12.**的
解決問題
?只需要在IDEA的插件中禁用掉GitLab就可以了。Settings -> Plugins -> Installed -> GitLab 取消勾選
?然后就可以輸入賬號密碼使用了!!!