V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
RunPiggy
V2EX  ›  问与答

idea 2024.1 copilot 的问题

  •  
  •   RunPiggy · 69 天前 · 701 次点击
    这是一个创建于 69 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近发现 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 条回复    2025-02-10 09:49:15 +08:00
    RunPiggy
        1
    RunPiggy  
    OP
       69 天前
    Chat 用不了,但是智能提示能用
    donaldturinglee
        2
    donaldturinglee  
       69 天前
    你在 idea 里面配置 proxy 是能正常用的吧?
    RunPiggy
        3
    RunPiggy  
    OP
       65 天前
    @donaldturinglee 不行的,Chat 现在一直用不了。
    glmapper
        4
    glmapper  
       33 天前
    +1 升级到新版本之后各种尝试都不行( chat )
    RunPiggy
        5
    RunPiggy  
    OP
       32 天前
    @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 大概恢复正常了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3935 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:13 · PVG 13:13 · LAX 22:13 · JFK 01:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.