IDEA插件'github copilot'无法在GitHub上登录。

14

我的 IDEA 插件,GitHub Copilot,无法登录 GitHub。 它正在等待 GitHub 认证...

enter image description here

但是!我的VSCode可以成功登录。
7个回答

13

同时确保您已经成功注册并提供了付款方式 :) (https://github.com/features/copilot) 直到我在 GitHub 上进行配置后,Intelij idea 才识别我的登录。


3
  1. Update your github-copilot to the latest version (1.1.24.1610) then close IDEA.

  2. Download this version of github-copilot (1.1.20.1417) and Extract it

  3. Navigate to ...\github-copilot-intellij-1.1.20.1417\github-copilot-intellij\lib

  4. Copy the core-1.1.20 file

  5. Navigate to

    • For IntelliJ IDEA
      …\AppData\Roaming\JetBrains\IdeaIC2022.1\plugins\github-copilot-intellij\lib          
      
    • For Android Studio
      …\AppData\Roaming\Google\AndroidStudio2021.2\plugins\github-copilot-intellij\lib      
      
  6. Replace core-1.1.24 with core-1.1.20.


你能分享一下报告问题的链接或解决方案的来源吗?看起来这个问题已经持续了很多个月了。 - Dawid Pura
1
@DawidPura 使用这个新方法 https://github.com/djoxy-code/Github-copilot-Fix - Djoxy
@Djoxy在评论中添加的新方法解决了我的问题! - undefined

1

有时它会这样做,至少在今天的PhpStorm 2023-1 EAP上发生了这种情况。之前它正常工作。我想知道是否我会以同样的方式支付他们,因为它正在工作。


我想尝试添加计费账户,但是我在Android Studio中无法获取签入状态,这是正常的吗? :) - Renetik

1

1
我的问题是一样的。Copilot在VsCode中运行正常,但在IntelliJ中,只有在安装Github Copilot时的第一次登录有效。所有后续的登录操作都失败了。 我的解决方案是打开C:\Users\<你的计算机名>\AppData\Local\github-copilot\hosts.json(将<你的计算机名>替换为你的计算机名),你会看到file hosts.json。 删除此文件中的所有数据,并尝试通过IntelliJ登录Github Copilot。 每次重新打开IDE时,都必须删除此文件中的数据。这是一个手动操作,但这是我最好的解决方案。 希望对你有帮助。

1
在我的情况下,Mac上的登录弹窗不再显示 - 卸载和重新安装应用程序无效 - 我必须在这个文件中将signinNotificationShown的值更改为false
/Users/username/Library/Application Support/JetBrains/WebStorm2023.1/options/github-copilot.xml

0

在Intellij中删除文件夹并重新安装插件

\Users\user_acc\AppData\Roaming\JetBrains\IntelliJIdea2022.3\plugins\github-copilot-intellij

注意:

  • user_acc替换为您的用户帐户
  • IntelliJIdea2022.3替换为您的版本

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接