coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.63k stars 5.46k forks source link

[Bug]: Unable to run the copilot even after installation through vsix file in the codeserver #6696

Closed ankitpatra closed 4 months ago

ankitpatra commented 4 months ago

Is there an existing issue for this?

OS/Web Information

Steps to Reproduce

I am using this image: https://hub.docker.com/r/kubeflownotebookswg/codeserver-python (latest tag) for the codeserver and installed the copilot package from here: https://www.vsixhub.com/vsix/63883/

  1. First, I copied this file to the vscode folder in the server
  2. Installed the extension using vsix extension installer
  3. After successful installation, it asked for sign in and I did that successfully

But later it threw some error, which I will show below and copilot want working

Expected

The extension should work as shown here (I followed this): https://www.youtube.com/watch?v=w_-zFFM0N-g&ab_channel=GillyGao

Actual

The error:

2024-02-29 12:32:22.726 [error] Failed to parse URL from /home/jovyan/.local/share/code-server/extensions/github.copilot-1.62.7527/dist/tree-sitter.wasm: TypeError: Failed to parse URL from /home/jovyan/.local/share/code-server/extensions/github.copilot-1.62.7527/dist/tree-sitter.wasm
    at Object.fetch (node:internal/deps/undici/undici:11413:11)
2024-02-29 12:32:24.942 [error] [Extension Host] [ERROR] [promptlib proxy] [2024-02-29T07:02:25.345Z] TypeError: Failed to parse URL from /home/jovyan/.local/share/code-server/extensions/github.copilot-1.62.7527/dist/tree-sitter.wasm
    at Object.fetch (node:internal/deps/undici/undici:11413:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-02-29 12:32:24.942 [error] [Extension Host] [ERROR] [promptlib proxy] [2024-02-29T07:02:25.348Z] Error: Worker thread exited with code 1.
    at Worker.<anonymous> (/home/jovyan/.local/share/code-server/extensions/github.copilot-1.62.7527/dist/extension.js:8:1037128)
    at Worker.emit (node:events:513:28)
    at Worker.[kOnExit] (node:internal/worker:279:10)
    at Worker.<computed>.onexit (node:internal/worker:199:20)

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

Are you accessing code-server over a secure context?

Notes

No response

code-asher commented 4 months ago

I recommend trying to update code-server to the latest, but unfortunately I am not able to debug because Copilot is not licensed to be installed on code-server and it is not open source either.

ksylvan commented 4 months ago

https://github.com/coder/code-server/discussions/5063#discussioncomment-8637702

I was able to install it on the latest code-server and it somewhat works. The Copilot Chat vsix file is not (yet) able to be installed, but I suspect that will fix itself when the vscode for code-server is updated to the latest version.