רועי סלע
רועי סלע

Reputation: 61

GitHub Copilot in IntelliJ does not work, becomes red, cannot update it or uninstall it

My GitHub Copilot got messed up: it doesn't work and I cannot update it or uninstall it because I get an error.

When I type even one character in the IDEe the logo becomes red:

when i type even one charcter in the ide the logo becomes red

If I dare to try uninstalling it or update it I get this error:

enter image description here

I would appreciate an advice on how to make it work again. It is so darn convenient.

Upvotes: 5

Views: 15558

Answers (4)

NickSoft
NickSoft

Reputation: 3335

Copilot still doesn't update correctly in 2024. A safe way to update it is to:

  1. Make sure Appearance & Behavior > System Settings > Reopen projects on startup is disabled
  2. close phpstorm (all instances)
  3. start phpstorm
  4. while in open project view click settings (bottom left gear icon) and choose update
  5. on the right side a balloon will appear - click on it choose update

Note that this will not work if you just close all projects since the copilot agent doesn't quit. You need to quit phpstorm and start it again.

Also I don't know if it'll work with Reopen projects on startup is enabled, but you close all projects and restart php storm. you can try.

Upvotes: 1

Krishnendu Ghosh
Krishnendu Ghosh

Reputation: 1

Go to the location folder mentioned. "C:\Users\MyUser\AppData\Roaming\JetBrains\IdeaIC2023.2\plugins"

Before deleting make sure IntelliJ is not opened. I tried deleting the copilot folder while the IntelliJ window was opened, so it was giving me error saying "This application is used by Node.js JavaScript Runtime"

Once you make sure no IntelliJ window is open, delete the folder.

After that restart the IDE and install the plugin again.

Upvotes: 0

רועי סלע
רועי סלע

Reputation: 61

Sorry, though I already wrote the solution, in the end what I have done is

delete it directly from the location mentioned in the error

I was able to delete it after I understood that copilot-agent-win.exe process does not stop automatically and i stopped it via the task manager. Then I downloaded copilot again, and all is well now.

Upvotes: 0

fungoro
fungoro

Reputation: 31

The copilot-agent-win.exe process does not stop automatically. Stop that process manually in Task Manager while the IDE is running. Then uninstall or update the GitHub Copilot. Restart the IDE and you should be able to use Copilot again.

Upvotes: 3

Related Questions