[GUIDE] How to run Copilot in VSCodium (without VSCode) #1487
Replies: 43 comments 67 replies
-
Why do we have to use that specific client_id? I found it a big sketchy, but it did work! |
Beta Was this translation helpful? Give feedback.
-
I needed to use Git Bash on Windows for |
Beta Was this translation helpful? Give feedback.
-
Works like a charm on Powershell v7 without any hassle. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Heck yeah! Thanks for that dude 🔥 |
Beta Was this translation helpful? Give feedback.
-
Flatpak usersStill working for me as of 2024-08-01I installed VSCodium on
Thanks, @ustas-eth ! |
Beta Was this translation helpful? Give feedback.
-
I'm having trouble activating Github Copilot Labs with this trick. Can it be done? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
How do we find out where |
Beta Was this translation helpful? Give feedback.
-
This worked on my Linux laptop, much love. I was just wondering why on the Windows Binary for VSCodium the "official" login for GitHub Copilot works on my end? Is there some f*ckery because it is a Windows machine and Windows authenticates me anyway like that? |
Beta Was this translation helpful? Give feedback.
-
as of Jun 22 this still works thank you so much |
Beta Was this translation helpful? Give feedback.
-
This is just amazing. Thanks a lot. The only issue I have right now is that I have to keep logging in to GitHub on VSCodium each time I open it. Any way to fix this problem? |
Beta Was this translation helpful? Give feedback.
-
Umm, Where should i paste my access token ? (Step 7) |
Beta Was this translation helpful? Give feedback.
-
On Manjaro Linux (so should work for Arch as well) I found $ sudo pacman -Ql vscodium | grep product.json
vscodium-bin /opt/vscodium-bin/resources/app/product.json |
Beta Was this translation helpful? Give feedback.
-
Works on Linux Mint, using VSCodium installed from the Ubuntu repository. Thanks @ustas-eth ! SnapIn case anyone installed VSCodium using Snap, you'll need to use a workaround like described here, to edit Rather than doing that I just reinstalled from the VSCodium Ubuntu repository instead. Possible edits to original post@ustas-eth perhaps to clarify step 6 a bit further, As below:
|
Beta Was this translation helpful? Give feedback.
-
If you already installed copilot and want to use this wonderful trick, you will first have to sign out from Github using the Sign out option on the bottom left corner (the person button below the setting button). |
Beta Was this translation helpful? Give feedback.
-
Hi, I have run the following: flatpak --user install -y flathub com.vscodium.codium
flatpak --user override --socket=wayland com.vscodium.codium
flatpak run com.vscodium.codium --install-extension ~/Downloads/GitHub.copilot-1.95.246.vsix
cd ~/.local/share/flatpak/app/com.vscodium.codium/current/active/files/share/codium/resources/app
sed -e 's|"GitHub.copilot":.*|"GitHub.copilot": ["inlineCompletions","inlineCompletionsNew","inlineCompletionsAdditions","textDocumentNotebook","interactive","terminalDataWriteEvent"],|' \
-i.bak product.json I had to copy the following libraries in order for the "Sign in with Github to use Github Copilot" to appear:
in If I click on "Sign in with Github to use Github Copilot", I can generate the PAT, copy it to but I get the following error in the Developer console: workbench.desktop.main.js:97 [Extension Host] [ERROR] [default] [2023-07-09T14:39:57.595Z] GitHub Copilot could not connect to server. Extension activation failed: "Cancelled"
I @ workbench.desktop.main.js:97
$logExtensionHostMessage @ workbench.desktop.main.js:1541
_doInvokeHandler @ workbench.desktop.main.js:1541
_invokeHandler @ workbench.desktop.main.js:1541
_receiveRequest @ workbench.desktop.main.js:1541
_receiveOneMessage @ workbench.desktop.main.js:1541
(anonymous) @ workbench.desktop.main.js:1541
invoke @ workbench.desktop.main.js:93
deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:564
ee.onmessage @ workbench.desktop.main.js:1642
workbench.desktop.main.js:759 Writing login information to the keychain failed with error 'GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable'.
onDidChangeNotification @ workbench.desktop.main.js:759
(anonymous) @ workbench.desktop.main.js:759
invoke @ workbench.desktop.main.js:93
deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
addNotification @ workbench.desktop.main.js:759
notify @ workbench.desktop.main.js:1644
prompt @ workbench.desktop.main.js:1644
(anonymous) @ workbench.desktop.main.js:2526
emit @ VM4 sandbox_bundle:2
onMessage @ VM4 sandbox_bundle:2
workbench.desktop.main.js:97 [Extension Host] rejected promise not handled within 1 second: Error: User not authorized
I @ workbench.desktop.main.js:97
$logExtensionHostMessage @ workbench.desktop.main.js:1541
_doInvokeHandler @ workbench.desktop.main.js:1541
_invokeHandler @ workbench.desktop.main.js:1541
_receiveRequest @ workbench.desktop.main.js:1541
_receiveOneMessage @ workbench.desktop.main.js:1541
(anonymous) @ workbench.desktop.main.js:1541
invoke @ workbench.desktop.main.js:93
deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:564
ee.onmessage @ workbench.desktop.main.js:1642
workbench.desktop.main.js:97 [Extension Host] stack trace: Error: User not authorized
at /home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/auth.ts:52:15
at process.copilotToken (node:internal/process/task_queues:96:5)
at forceNormal [as getCopilotToken] (/home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/auth.ts:92:18)
at event (/home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/session.ts:53:28)
at /home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/extension.ts:162:46
I @ workbench.desktop.main.js:97
$logExtensionHostMessage @ workbench.desktop.main.js:1541
_doInvokeHandler @ workbench.desktop.main.js:1541
_invokeHandler @ workbench.desktop.main.js:1541
_receiveRequest @ workbench.desktop.main.js:1541
_receiveOneMessage @ workbench.desktop.main.js:1541
(anonymous) @ workbench.desktop.main.js:1541
invoke @ workbench.desktop.main.js:93
deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:564
ee.onmessage @ workbench.desktop.main.js:1642
workbench.desktop.main.js:1978 [GitHub.copilot]User not authorized
$onExtensionRuntimeError @ workbench.desktop.main.js:1978
_doInvokeHandler @ workbench.desktop.main.js:1541
_invokeHandler @ workbench.desktop.main.js:1541
_receiveRequest @ workbench.desktop.main.js:1541
_receiveOneMessage @ workbench.desktop.main.js:1541
(anonymous) @ workbench.desktop.main.js:1541
invoke @ workbench.desktop.main.js:93
deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:564
ee.onmessage @ workbench.desktop.main.js:1642
workbench.desktop.main.js:1978 Error: User not authorized
at /home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/auth.ts:52:15
at process.copilotToken (node:internal/process/task_queues:96:5)
at forceNormal [as getCopilotToken] (/home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/auth.ts:92:18)
at event (/home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/session.ts:53:28)
at /home/user/.var/app/com.vscodium.codium/data/codium/extensions/github.copilot-1.95.246/extension/src/extension.ts:162:46
$onExtensionRuntimeError @ workbench.desktop.main.js:1978
_doInvokeHandler @ workbench.desktop.main.js:1541
_invokeHandler @ workbench.desktop.main.js:1541
_receiveRequest @ workbench.desktop.main.js:1541
_receiveOneMessage @ workbench.desktop.main.js:1541
(anonymous) @ workbench.desktop.main.js:1541
invoke @ workbench.desktop.main.js:93
deliver @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:93
fire @ workbench.desktop.main.js:564
ee.onmessage @ workbench.desktop.main.js:1642 Is an older version required? Thanks |
Beta Was this translation helpful? Give feedback.
-
Anybody managed to install GitHub Copilot Chat: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat? |
Beta Was this translation helpful? Give feedback.
-
can you make the same for github codespaces? |
Beta Was this translation helpful? Give feedback.
-
I started to get "Your vscodium installation appears to be corrupt" message. Like this one #723 Anyone else having this issue? |
Beta Was this translation helpful? Give feedback.
-
It seems that this doesn't work anymore, It worked in the bast by my VSCodium seemed to be corrupt and I updated, now, I am trying to make it work. Copilot doesn't work at all now. Update: Just checked, and in fact, it actually doesn't work anymore with the latest Update. We need to find a new fix. |
Beta Was this translation helpful? Give feedback.
-
GitHub Copilot and VSCodium no longer works! |
Beta Was this translation helpful? Give feedback.
-
I followed the instructions 1., 2. and enabled KDE Wallet (for KDE environments) and it worked afterwards... |
Beta Was this translation helpful? Give feedback.
-
Worked on a fresh install of debian only doing step 1 and 2. |
Beta Was this translation helpful? Give feedback.
-
Ok, I'm going to sound totally noob, but after reading the whole thread I cannot find where is supposed to be that |
Beta Was this translation helpful? Give feedback.
-
It seems doesn't work for me. I downloaded the newest version of Github Copilot. Any tried it succcesfully? |
Beta Was this translation helpful? Give feedback.
-
It worked for me just installing the extension manually from the binary; no need for other tweaks. Ubuntu 24.04. |
Beta Was this translation helpful? Give feedback.
-
The only thing not working for me, is git commit generating messages. It seems to worked before. Anyone got a solution? |
Beta Was this translation helpful? Give feedback.
-
To install copilot go to the extension's page in the vscode marketplace, then go to the Version History tab, and download the latest version (or any other if you prefer). You're gonna get a
or click on the 3 dots in the Extensions section, and choose Then just follow the instructions to log into Github as you'd do normally. |
Beta Was this translation helpful? Give feedback.
-
I got the extension to install and auth'd my github account on my Mac, running VSCodium Version: 1.92.1 but still dont have the chat extension to allow me to actually use CoPilot. |
Beta Was this translation helpful? Give feedback.
-
Works great for anyone on Arch |
Beta Was this translation helpful? Give feedback.
-
Where is this folder with the product.json ? I could not find it in my home dir and dont assume it would be anywhere else? Fedora, RPM from repo |
Beta Was this translation helpful? Give feedback.
-
The instruction
VSCODIUM_FOLDER/resources/app/product.json
. Find theGitHub.copilot
and insert the following permission:Optional
If the steps above didn't help (probably because it's time to update your VSCodium), do the following in addition:
device_code
anduser_code
in the responseuser_code
YOUR_DEVICE_CODE
with thedevice_code
you got in step 2):access_token
in the response (gho_...
). Paste it in VSCodium when the Copilot extension requires authorization.Possible paths for the
product.json
:/opt/vscodium-bin/resources/app/product.json
/usr/share/codium/resources/app/product.json
/Applications/VSCodium.app/Contents/Resources/app/
/snap/codium/current/usr/share/codium/resources/app/product.json
Beta Was this translation helpful? Give feedback.
All reactions