posit-dev / positron

Positron, a next-generation data science IDE
Other
2.31k stars 68 forks source link

GitHub Co-Pilot Support #476

Open petetronic opened 1 year ago

petetronic commented 1 year ago

Investigate how we can support GitHub Co-Pilot

jmcphers commented 7 months ago

Notes: Microsoft's Copilot extension is currently only licensed for use in Visual Studio Code (the Microsoft commercial version, not the open source core or forks like VS Codium).

e-kotov commented 2 months ago

Can you share installation instructions? I installed manually the latest Copilot, but after inputing auth code on GitHub and authorising the app, I am getting "User not authorized" all the time.

2024-06-28 00:50:07.838 [info] [auth] Invalid copilot token: missing token: 404 
2024-06-28 00:50:08.329 [error] [auth] Extension activation failed: "User not authorized"
2024-06-28 00:50:11.064 [error] [auth] Retrying auth
2024-06-28 00:50:25.900 [info] [auth] Invalid copilot token: missing token: 404 
2024-06-28 00:50:25.909 [info] [auth] Invalid copilot token: missing token: 404 
2024-06-28 00:50:25.910 [error] [auth] Extension activation failed: "User not authorized"
2024-06-28 00:50:25.924 [info] [auth] Invalid copilot token: missing token: 404 
Screenshot 2024-06-28 at 00 50 29
jmcphers commented 2 months ago

The Copilot extension is only formally supported (and licensed to run) inside Visual Studio Code, so it will not authenticate in Positron. We're well aware that lots of folks want to use Copilot in Positron and are working on a solution.

jzadra commented 2 months ago

Notes:

It'd be really nice to be able to use Microsoft's Copilot extension (with their blessing). It is already possible to do this if you are willing to download the extension yourself. See our wiki writeup: https://connect.posit.it/positron-wiki/using-copilot.html

Note however that Copilot Chat does not work. #2010

This link appears to be limit to posit staff only. Can you make it available to all?

I was able to install the Github Copilot extension by downloading the .visx and installing it manually, but it doesn't seem to be working despite signing in successfully.

jmcphers commented 2 months ago

Sorry, that comment is outdated and I've removed it. It is no longer possible to do this with Positron, unfortunately. We'll let you know as soon as we have more information.