为什么我的github copilot 突然不工作了?

发布于 2025-01-20 07:29:29 字数 1433 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(18

白鸥掠海 2025-01-27 07:29:30

2024年2月,

  • 转到副副总线扩展程序,在卸载按钮上有下拉键。
  • 单击安装另一个版本。
  • 切换到较旧版本。
  • 单击重新加载。完毕 !

Feb 2024

  • Go to the copilot extension, on uninstall button there is drop down.
  • Click on install another version.
  • Switch to older version.
  • Click reload. Done !
骑趴 2025-01-27 07:29:30

如屏幕的左下角所示,检查您的VS代码是否处于限制模式。单击限制模式并信任您的文件夹&工作区,以便将启用扩展名。

在一个受信任的窗口中

您信任当前文件的作者
窗户。启用了所有功能:

  • 允许任务运行
  • 启用调试
  • 所有已启用的扩展都已激活

。 ://i.sstatic.net/ol3rcpe1.png“ alt =”在此处输入图像说明”>

Check if your VS Code is in Restricted Mode, as indicated on the lower left corner of the screen. Click on Restricted Mode and Trust your Folders & Workspaces so your extensions will be enabled.

In a Trusted Window

You trust the authors of the files in the current
window. All features are enabled:

  • Tasks are allowed to run
  • Debugging is enabled
  • All enabled extensions are activated

enter image description here

太傻旳人生 2025-01-27 07:29:30

我知道我参加聚会迟到了,但是遇到了一个问题,试图在Copilot中登录(身份验证)。我有活跃的许可证,但是Copilot不会让我登录。

当我打开设置时,我从另一个帐户中看到了用户名。切换到正确的一个时,Copilot再次工作。

I know I am late to the party, but had an issue trying to sign in (authenticate) within Copilot. I have an active license, but Copilot would not let me sign in.

When I openend the settings, I saw the username from a different account. When switching to the correct one, Copilot worked again.

enter image description here

一杯敬自由 2025-01-27 07:29:30

我已经完成了免费试用,但已经支付了费用,但它并没有立即对我起作用。

但是,以下步骤解决了这个问题:

  1. 在 VSCode 上卸载 GitHub Copilot Chat 和 Github Copilot 在
  2. VSCode 上注销我的 Github 帐户
  3. 在 VSCode 上重新登录我的 Github 帐户

I had gotten to the end of the free trial, but had paid the sub, but it didn't work for me immediately.

However, the following steps got round that:

  1. Uninstalled GitHub Copilot Chat and Github Copilot on VSCode
  2. Signed out of my Github account on VSCode
  3. Signed back in to my Github account on VSCode
南风几经秋 2025-01-27 07:29:30

另一件要尝试的事情是:打开 CoPilot 扩展程序并确保其启用而不是禁用

Another thing to try: open the CoPilot extension and make sure it's Enabled and not Disabled.

单身情人 2025-01-27 07:29:30

我也有同样的症状。在 VS Code 中注销后,我无法登录。根本原因是 Github API 的速率限制。

I had the same symptoms. After logging out in VS Code I could not log in. The root cause was rate limit of Github API.

悲欢浪云 2025-01-27 07:29:30
  1. 检查您的设置:
    转到文件>;首选项>设置
    并搜索“副驾驶”
  2. 找到 Copilot:Enable 属性并将值从 * 设置为 true
  1. Check your settings:
    Go to File > Preferences > Settings
    and search for "copilot".
  2. Find the Copilot:Enable property and set the value from * to true
笑叹一世浮沉 2025-01-27 07:29:30

在Mac上?

确保VS代码在应用程序目录中。

我的错误是加载错误的版本:

”在此处输入图像说明”

On a mac?

Make sure VS Code is in the Applications directory.

My mistake was loading the wrong version:

enter image description here

彩虹直至黑白 2025-01-27 07:29:30

鉴于 GitHub Copilot 如此新鲜且广受欢迎,因此经常进行更新。遇到此类问题时,我建议彻底清除并重新安装。

在 Visual Studio Code 中安装 GitHub Copilot

该文档列出了 Visual Studio Code、Visual Studio、Neovim 和 JetBrains 套件的扩展,作为 GitHub Copilot 支持的 IDE。

安装包括三个主要步骤:

  1. 创建一个 GitHub 帐户(如果您还没有帐户)。
  2. 转至 GitHub Copilot 并点击“开始我的免费试用”。按照注册步骤操作,并确保在 60 天免费试用期结束之前取消(如果您不想继续使用该工具)。
  3. 通过在扩展选项卡上搜索“GitHub Copilot”来安装 VSCode 扩展。系统会要求您登录 GitHub,授权扩展程序,然后将设置 Copilot。

如果您想要更全面的解释,我的同事 Rafael 根据他使用 Copilot 和 VSCode 的时间写了一篇很棒的文章:https://www.scalablepath.com/full-stack/ai-pair-programming-github-copilot-review

Given that GitHub Copilot is so fresh and well-liked, updates are made often. When encountering this kind of problem, I would advise entirely purging and reinstalling.

Installation of GitHub Copilot in Visual Studio Code

The documentation lists extensions for Visual Studio Code, Visual Studio, Neovim, and the JetBrains suite as IDEs that GitHub Copilot supports.

The installation consists of three main steps:

  1. Create a GitHub account (if you don’t have one already).
  2. Go to GitHub Copilot and click on “Start my free trial”. Follow the sign-up steps and make sure to cancel before your 60-day free trial is up (if you don’t want to continue using the tool).
  3. Install the VSCode extension by searching for “GitHub Copilot” on the extensions tab. You’ll be asked to sign in to GitHub, authorize the extension, and then Copilot will be set up.

If you would like a more thorough explanation, my colleague Rafael wrote a great article based on his time with Copilot and VSCode: https://www.scalablepath.com/full-stack/ai-pair-programming-github-copilot-review

扛刀软妹 2025-01-27 07:29:29

三个常见原因:

  1. 一个过时的IDE。 请确保您的IDE是最新的
  2. 解决方案:如果您未正确签名到GitHub Copilot, 。解决方案:请确保您已签名到GitHub Copilot

例如在Vscode中的左下角,如果看到此信息,您可能不会签署:

​,然后按照提示登录,然后副驾驶工作。

  1. 尝试关闭并重新打开您的IDE(例如VSCODE),这也可能会有所帮助。

Three common causes:

  1. An out of date IDE. Solution: make sure your IDE is up to date
  2. If you're not properly signed in to GitHub CoPilot. Solution: make sure you're signed in to GitHub CoPilot

E.g. In VSCode look on the bottom left, if you see this, you might not be signed in:

enter image description here

Click the icon, and follow the prompts to sign in, then CoPilot should work.

  1. Try closing and reopening your IDE (e.g. vscode), that may also help.
橘和柠 2025-01-27 07:29:29

我知道它有点晚了。但是我今天遇到了这个问题。如果禁用和重新启动无济于事,则可以尝试:

  1. 在卸载处,选择安装另一个版本,然后在最新版本之前选择该版本:
    “在卸载处,选择安装另一个版本,然后在最新版本“

    ”之前选择该版本

  2. Reload vscode:
    “

执行此操作后,我的副驾驶员再次开始工作。

I know its a bit late. But I encountered this problem today. If disabling and restarting doesn't help, you could try:

  1. At uninstall, select Install another version, and select the version before the latest:
    At uninstall, select Install another version, and select the version before the latest

  2. Reload VSCode:
    Reload vscode

After doing this, my copilot started working again.

凡间太子 2025-01-27 07:29:29

您应该检查两件事:

1=>更新VSCode到最新版本

2=>将 GitHub Copilot 更新到最新版本(从扩展部分启用)

更新后,可能需要您重新加载/重新启动 VSCode。

从菜单栏中,转到 View ->输出
从左侧的下拉列表中选择 GitHub Copilot 以查看后台发生的情况的日志。

看看我的下拉菜单 imgur.com/VVHfqwv

Two things you should check:

1=> Update VSCode to the latest version

2=> Update GitHub Copilot to the latest version (Enable it from the extension section)

After the update, it MAY require that you Reload/Restart VSCode.

From the Menubar, go to View -> Output;
Choose GitHub Copilot from the pulldown on the left to see the log of what is going on in the background.

Look at my pulldown here imgur.com/VVHfqwv

柠檬色的秋千 2025-01-27 07:29:29

去了Copilot扩展设置并更改

    "github.copilot.enable": {

        "*": true,
        "plaintext": false,
        "markdown": false,
        "scminput": false
    }

    "github.copilot.enable": {

        "*": true,
        "typescript": true,
        "plaintext": false,
        "markdown": false,
        "scminput": false
    }

,然后突然开始工作。我可能选择将其禁用为typeScript在每天或两次前的GUI中 - 如果这样,这将表明状态比settings.json文件(?)中所看到的要多。

Went to copilot extension settings and changed

    "github.copilot.enable": {

        "*": true,
        "plaintext": false,
        "markdown": false,
        "scminput": false
    }

to

    "github.copilot.enable": {

        "*": true,
        "typescript": true,
        "plaintext": false,
        "markdown": false,
        "scminput": false
    }

and it suddenly started working. I may have opted to disable it for typescript in a GUI a day or two ago - if so that would indicate more state than what is seen in the settings.json file (?).

止于盛夏 2025-01-27 07:29:29

转到您的 Github 帐户并检查您是否已支付账单,就我而言,这就是问题所在。

Go to your Github account and check if you have paid the bill, In my case that was the problem.

小…楫夜泊 2025-01-27 07:29:29

重新启动VSCODE就是这样,它对我有用。重新启动。

Restart vscode thats it, it works for me post a restart.

演出会有结束 2025-01-27 07:29:29

对我来说,从“扩展”菜单中简单地“重新启动扩展”(Mac 上的 CMD+SHIFT+X,Windows 上的 CTRL+SHIFT+X)就可以解决问题。

For me, a simple "Restart extensions" from the Extensions menu (CMD+SHIFT+X on Mac, CTRL+SHIFT+X on Windows) did the trick.

呆头 2025-01-27 07:29:29

以上所有解决方案对我不起作用。

对我有用的是打开VS代码作为“管理员”。然后,GitHub Copilot才开始工作✅

这是我找到该解决方案的地方:
https://github.com/orgs/community/discussions/6785#discussioncomment- 1561804

All the above solutions didn't work for me.

What worked for me was opening VS Code as an "administrator". Then Github Copilot just started working ✅

Here's where I found that solution:
https://github.com/orgs/community/discussions/6785#discussioncomment-1561804

依 靠 2025-01-27 07:29:29

在 Visual Studio 中,如果您是禁用了 Copilot 的人,则可以通过以下方式启用。

要么搜索“副驾驶”。
或者转到“工具”>>“选项”>>“GitHub”>>“Copilot”

转到“全局启用”并将 false 更改为 True。

输入图片此处描述

In Visual Studio, if you are the one that disabled the Copilot before you can enable the following way.

Either search for "Copilot".
Or go to Tools>>Options>>GitHub>>Copilot

Go to Enable Globally and change from false to True.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文