Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Copilot Commands not working and showing error

I have installed GitHub Copilot just for the sake of testing. However, none of the commands work.

For example if I try CTRL + Enter I get this error message:

command 'github.copilot.generate' not found

I am trying it with JS file.

I have latest Visual Studio Code and Copilot installed.

like image 553
harunB10 Avatar asked Jul 05 '21 08:07

harunB10


People also ask

Why is GitHub Copilot not working?

Solution: make sure you're signed in to GitHub CoPilot Click the icon, and follow the prompts to sign in, then CoPilot should work. Show activity on this post. 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.

How do I know if GitHub Copilot is working?

Search for GitHub Copilot in the search bar. Install Github Copilot and restart your Visual Studio Code. And at the bottom, you will see that GitHub Copilot has been activated.

Is GitHub Copilot legal?

According to Nat Friedman, GitHub's CEO when Copilot was released in beta, GitHub is legally in the clear because "training ML systems on public data is fair use." But, he also noted, "IP [intellectual property] and AI will be an interesting policy discussion around the world in the coming years." You can say that ...


2 Answers

  1. Click on the bell button on bottom right-corner of the Visual Studio Code Editor
  2. Press 'Agree' button
  3. Thats it!

enter image description here

like image 109
Prashanth Sams Avatar answered Sep 19 '22 15:09

Prashanth Sams


I had already signed up for the Technical preview and also accepted the invite for the same. Even after being signed in to VS Code using the same account, I had this error. This solution worked for me:

  • Sign out of my account from the Accounts section of the left sidebar on VS Code
  • Sign in again using the same account in which invite was received
like image 34
Kshitiz Kamal Avatar answered Sep 18 '22 15:09

Kshitiz Kamal