IDEA插件'github copilot'无法登录github

问题描述 投票:0回答:8

我的IDEA插件,GitHub副驾驶,无法登录GitHub。 正在等待 GitHub 身份验证...

但是!我的 VSCode 可以成功登录。

authentication intellij-plugin github-copilot
8个回答
13
投票

还要确保您已成功注册并提供付款方式:) (https://github.com/features/copilot)Intelij idea 忽略了我的登录,直到我在 GH 端配置了它。


3
投票
  1. 将您的 github-copilot 更新到最新版本(1.1.24.1610),然后关闭 IDEA。

  2. 下载此版本的 github-copilot (1.1.20.1417) 并解压它

  3. 导航至

    ...\github-copilot-intellij-1.1.20.1417\github-copilot-intellij\lib

  4. 复制

    core-1.1.20
    文件

  5. 导航至

    • 对于 IntelliJ IDEA
      …\AppData\Roaming\JetBrains\IdeaIC2022.1\plugins\github-copilot-intellij\lib          
      
    • 适用于Android Studio
      …\AppData\Roaming\Google\AndroidStudio2021.2\plugins\github-copilot-intellij\lib      
      
  6. core-1.1.24
    替换为
    core-1.1.20


1
投票

有时会出现这种情况,至少今天在 PhpStorm 2023-1 EAP 上发生过这种情况。之前还可以正常使用。我想知道我是否会像现在一样付钱给他们。


1
投票

我的 JetBrains 产品也遇到同样的问题。 访问这个网站并为我的帐户激活 Github copilet,它起作用了。 https://github.com/github-copilot/free_signup


1
投票

就我而言,登录弹出窗口不再在 mac 上显示 - 卸载并重新安装应用程序不起作用 - 我必须在此文件中将值

signinNotificationShown
更改为 false

/Users/username/Library/Application Support/JetBrains/WebStorm2023.1/options/github-copilot.xml

1
投票

我的问题是一样的。 Copilot 在 VsCode 中工作正常,但在 IntelliJ 中,只有当我安装 Github Copilot 时第一次登录才能工作。以下所有登录操作均失败。 我的解决方案是打开

C:\Users\<your computer name>\AppData\Local\github-copilot\hosts.json
(替换为你的计算机名称),你会看到file hosts.json 删除该文件中的所有数据,然后尝试通过 IntelliJ 登录 Github Copilot。 每次重新打开 IDE 时都必须删除此文件数据。这是手动的,但这是我最好的解决方案。 希望对你有帮助


0
投票

在 intellij 中删除文件夹并重新安装插件 \Users\user_acc\AppData\Roaming\JetBrains\IntelliJIdea2022.3\plugins\github-copilot-intellij

注:

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

0
投票

就我而言,是由证书问题引起的。

如何知道您有同样的问题?

  • 取消等待的github认证,再次点击登录按钮。
  • 您将收到 SSL 错误弹出窗口。

修复:

  • 下载github auth页面的根证书。
  • 在 Windows 中设置环境变量:NODE_EXTRA_CA_CERTS = 证书路径
© www.soinside.com 2019 - 2024. All rights reserved.