linuxserver / docker-code-server

GNU General Public License v3.0
1.54k stars 314 forks source link

[BUG] Github Copilot #165

Closed FuckingToasters closed 3 months ago

FuckingToasters commented 7 months ago

Is there an existing issue for this?

Current Behavior

After some investigations, i got copilot installed but i can't use it becasue it seems like code-server is too old.

Expected Behavior

I expected, that i can use copilot without any issue after isntalling from vsix

Steps To Reproduce

  1. Install the vsix file using the command curl -O -J -L https://github.com/coder/code-server/files/8238851/GitHub.copilot-1.7.5250.zip
  2. Unzip the file using unzip GitHub.copilot-1.7.5250.zip
  3. copy the file in the extensions folder inside the code-server container with following command: docker cp GitHub.copilot-1.7.5250.vsix cfcbb1aca6e8:/config/extensions
  4. Inside code-server, visit extensions tab, then select "install from vsix", navigate to /cnfig/extensions and select the vsix file
  5. After a successful sing-in (code verification) with github, see following error: GitHub Copilot requires VS Code 1.57+. Please update your VS Code

Environment

- OS:Debian 11
- How docker service was installed: Docker-compose.yml via Portainer Stack

CPU architecture

x86-64

Docker creation

version: "3.0"
services:
  code-server:
    image: lscr.io/linuxserver/code-server:latest
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - PASSWORD=REDACTED #optional
      #- HASHED_PASSWORD= #optional
      - SUDO_PASSWORD=password #optional
      #- SUDO_PASSWORD_HASH= #optional
      - PROXY_DOMAIN=code.example.com #optional
      - DEFAULT_WORKSPACE=/config/workspace #optional
      - DOCKER_MODS=linuxserver/mods:code-server-python3
    networks:
      webproxy:
        ipv4_address: 172.26.0.17
    volumes:
      - /path/to/appdata/config:/config
    #ports:
      #- 8443:8443
    restart: unless-stopped

networks:
  webproxy:
    external: true

Container logs

Setting up libitm1:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libjs-underscore (1.13.2~dfsg-2) ...
Setting up libtsan0:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up libctf0:amd64 (2.38-4ubuntu2.3) ...
Setting up cpp-11 (11.4.0-1ubuntu1~22.04) ...
Setting up libpython3.10-stdlib:amd64 (3.10.12-1~22.04.3) ...
Setting up libjs-sphinxdoc (4.3.2-1) ...
Setting up libgcc-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up cpp (4:11.2.0-1ubuntu1) ...
Setting up libc6-dev:amd64 (2.35-0ubuntu3.4) ...
Setting up libpython3-stdlib:amd64 (3.10.6-1~22.04) ...
Setting up binutils-x86-64-linux-gnu (2.38-4ubuntu2.3) ...
Setting up libpython3.10:amd64 (3.10.12-1~22.04.3) ...
Setting up python3.10 (3.10.12-1~22.04.3) ...
Setting up python3 (3.10.6-1~22.04) ...
Setting up binutils (2.38-4ubuntu2.3) ...
Setting up dpkg-dev (1.21.1ubuntu2.2) ...
Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
Setting up libstdc++-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up gcc-11 (11.4.0-1ubuntu1~22.04) ...
Setting up python3-lib2to3 (3.10.8-1~22.04) ...
Setting up python3-pkg-resources (59.6.0-1.2ubuntu0.22.04.1) ...
Setting up python3-distutils (3.10.8-1~22.04) ...
Setting up python3.10-venv (3.10.12-1~22.04.3) ...
Setting up python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
Setting up g++-11 (11.4.0-1ubuntu1~22.04) ...
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Setting up gcc (4:11.2.0-1ubuntu1) ...
Setting up python3-venv (3.10.6-1~22.04) ...
Setting up libpython3.10-dev:amd64 (3.10.12-1~22.04.3) ...
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
Setting up python3.10-dev (3.10.12-1~22.04.3) ...
Setting up g++ (4:11.2.0-1ubuntu1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/c++.1.gz because associated file /usr/share/man/man1/g++.1.gz (of link group c++) doesn't exist
Setting up build-essential (12.9ubuntu3) ...
Setting up libpython3-dev:amd64 (3.10.6-1~22.04) ...
Setting up python3-dev (3.10.6-1~22.04) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
[custom-init] No custom files found, skipping...
[2023-12-05T12:31:57.212Z] info  code-server 4.19.1 0c98611e6b43803a9d5dba222d7023b569abfb49
[2023-12-05T12:31:57.218Z] info  Using user-data-dir /config/data
[2023-12-05T12:31:57.250Z] info  Using config file /config/.config/code-server/config.yaml
[2023-12-05T12:31:57.251Z] info  HTTP server listening on http://0.0.0.0:8443/
[2023-12-05T12:31:57.251Z] info    - Authentication is enabled
[2023-12-05T12:31:57.252Z] info      - Using password from $PASSWORD
[2023-12-05T12:31:57.252Z] info    - Not serving HTTPS
[2023-12-05T12:31:57.253Z] info    - Proxying the following domain:
[2023-12-05T12:31:57.254Z] info      - {{port}}.code.vbucksgenerator.zip
[2023-12-05T12:31:57.254Z] info  Using proxy URI in PORTS tab: //{{port}}.code.vbucksgenerator.zip
[2023-12-05T12:31:57.255Z] info  Session server listening on /config/data/code-server-ipc.sock
[ls.io-init] done.
[12:33:10] 
[12:33:10] Extension host agent started.
File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm
[12:33:17] [172.26.0.3][77816eea][ManagementConnection] New connection established.
File not found: /app/code-server/lib/vscode/out/vsda.js
[12:33:19] [172.26.0.3][a7760d23][ExtensionHostConnection] New connection established.
[12:33:20] [172.26.0.3][a7760d23][ExtensionHostConnection] <1772> Launched Extension Host Process.
[12:34:01] [172.26.0.3][77816eea][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[12:34:01] [172.26.0.3][a7760d23][ExtensionHostConnection] <1772> Extension Host Process exited with code: 0, signal: null.
[12:34:35] [172.26.0.3][94cf5f96][ManagementConnection] New connection established.
File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm
[12:34:38] [172.26.0.3][f96dafcf][ExtensionHostConnection] New connection established.
[12:34:38] [172.26.0.3][f96dafcf][ExtensionHostConnection] <2693> Launched Extension Host Process.
[13:21:43] [172.26.0.3][94cf5f96][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[13:21:44] [172.26.0.3][f96dafcf][ExtensionHostConnection] <2693> Extension Host Process exited with code: 0, signal: null.
[13:21:49] [172.26.0.3][5388395a][ManagementConnection] New connection established.
File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm
[13:21:53] [172.26.0.3][daca9f23][ExtensionHostConnection] New connection established.
[13:21:53] [172.26.0.3][daca9f23][ExtensionHostConnection] <13334> Launched Extension Host Process.
[13:33:26] [172.26.0.3][daca9f23][ExtensionHostConnection] The client has reconnected.
[13:35:59] [172.26.0.3][5388395a][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[13:35:59] [172.26.0.3][daca9f23][ExtensionHostConnection] <13334> Extension Host Process exited with code: 0, signal: null.
[13:36:05] [172.26.0.3][17039e42][ManagementConnection] New connection established.
File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm
[13:36:08] [172.26.0.3][31e413d9][ExtensionHostConnection] New connection established.
[13:36:08] [172.26.0.3][31e413d9][ExtensionHostConnection] <16178> Launched Extension Host Process.
[13:38:48] [172.26.0.3][17039e42][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[13:38:48] [172.26.0.3][31e413d9][ExtensionHostConnection] <16178> Extension Host Process exited with code: 0, signal: null.
[13:38:54] [172.26.0.3][75f37c99][ManagementConnection] New connection established.
File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm
[13:38:57] [172.26.0.3][8cc25e47][ExtensionHostConnection] New connection established.
[13:38:57] [172.26.0.3][8cc25e47][ExtensionHostConnection] <16981> Launched Extension Host Process.
[13:41:53] [172.26.0.3][75f37c99][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[13:41:53] [172.26.0.3][8cc25e47][ExtensionHostConnection] <16981> Extension Host Process exited with code: 0, signal: null.
[13:41:58] [172.26.0.3][9959eb66][ManagementConnection] New connection established.
File not found: /app/code-server/lib/vscode/out/vsda_bg.wasm
[13:42:01] [172.26.0.3][7b0b50cd][ExtensionHostConnection] New connection established.
[13:42:01] [172.26.0.3][7b0b50cd][ExtensionHostConnection] <17847> Launched Extension Host Process.
[13:42:12] Installing extension: github.copilot
[13:42:13] Extracted extension to file:///config/extensions/github.copilot-1.7.5250: github.copilot
[13:42:13] Renamed to /config/extensions/github.copilot-1.7.5250
[13:42:13] Extracting extension completed. github.copilot
[13:42:13] Extension installed successfully: github.copilot
aptalca commented 7 months ago

Latest code-server reports:

code-server: v4.19.1
Code: 1.84.2
Roxedus commented 7 months ago

try downloading it from the ms vsix source https://marketplace.visualstudio.com/items?itemName=GitHub.copilot

FuckingToasters commented 7 months ago

try downloading it from the ms vsix source https://marketplace.visualstudio.com/items?itemName=GitHub.copilot

i tried that before i tried the one mentioned in the issue, this seem to have downloaded a corrupt vsix file

Roxedus commented 7 months ago

It worked for me.

LinuxServer-CI commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

yllekz commented 5 months ago

When I run a fresh instance of this container and attempt to search for the GitHub CoPilot extension, it doesn't appear in the results in Code in the container. Why does this happen?

LinuxServer-CI commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

FuckingToasters commented 4 months ago

When I run a fresh instance of this container and attempt to search for the GitHub CoPilot extension, it doesn't appear in the results in Code in the container. Why does this happen?

I assume that (like in vscodium) it look for the extensions in another marketplace which only contain open-source extensions, copilot is not open-source so in order to install it, you need to download the vsix file, rename it to .tar.gz, extract it, rename the extracted one back to .vsix, move it inside the container and load it from the extension file.