RunPiggy
V2EX  ›  问与答

idea 2024.1 copilot 的问题

  •  
  •   RunPiggy · Jan 3, 2025 · 2155 views
    This topic created in 676 days ago, the information mentioned may be changed or developed.
    最近发现 Idea 2024.1 下 Copilot Chat 用不了,提示我已登录但需要授权,点击授权就提示 retrieving github device code copilot ,过会儿就报错:Sign in failed. Reason: Could not log in with device flow on github.com: Request timed out from lsp server, request id: 1024, error code: 1001

    试了网上好多方法都没解决:
    ·修改 idea 代理为 127.0.0.1 啊
    ·梯子改全局模式啊
    ·改 hosts 啊
    ·重装 copilot 插件啊、旧版本插件啊
    都不行。

    但是用 VS 就没问题。
    5 replies  •  2025-02-10 09:49:15 +08:00
    RunPiggy
    RunPiggy
    OP
    Jan 3, 2025
    1
    Chat 用不了,但是智能提示能用
    donaldturinglee
    donaldturinglee
    Jan 3, 2025
    2
    你在 idea 里面配置 proxy 是能正常用的吧?
    RunPiggy
    RunPiggy
    OP
    Jan 8, 2025
    3
    @donaldturinglee 不行的,Chat 现在一直用不了。
    glmapper
    glmapper
    Feb 8, 2025
    4
    +1 升级到新版本之后各种尝试都不行( chat )
    RunPiggy
    RunPiggy
    OP
    Feb 10, 2025
    5
    @glmapper 我的已经好了,你可以尝试下:
    1·下载一个 PyCharm 并确保 Copilot 能正常使用

    2·在 IDEA 中将 GitHub Copilot 网络设置为 Native
    转到文件 > 设置 > GitHub Copilot > 网络并将其设置为“Native”。

    3·清除 IDEA 缓存


    4·在 IDEA 中再次登录 copilot
    如果看:
    “Waiting for GitHub authentication... Enter the authentication code on the GitHub website to proceed”,则说明 copilot 大概恢复正常了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1161 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:50 · PVG 01:50 · LAX 09:50 · JFK 12:50
    ♥ Do have faith in what you're doing.