vscode-copilot-release icon indicating copy to clipboard operation
vscode-copilot-release copied to clipboard

Copilot completions now return non-working gibberish code

Open jasoninch opened this issue 1 year ago • 2 comments

Steps to reproduce: Open any file on my system that previously did code completions successfully, go to an area where a next line code completion would be obvious, attempt to tab and get gibberish results

Background: I have been using Github Copilot (Pro subscription) for several months on several different repo, primarily for tabbed code completions, and it's worked excellently, but since April 25 (or earlier, I was not coding for a few weeks) my code completions are appearing as incorrect or gibberish code, sometimes using words taken from the codebase but mixed in a completely wrong syntax. Attached is a screenshot showing an example of my code line 9263 (count += 1) and thereafter attempts to add code by suggestion / tab fails miserably. It's non-sensical code. Finally it starts writing 'exist exist exist exist'

What I've tried: Turning code completions off then on again Uninstalling copilot and copilot chat extension (chat, by the way, seems to work fine still, just completions are way off) Turning on remote indexing (previously I guess I used local index but this appears to be a new feature added) Closing / restarting VSCode Edited a larger codebase repo I'm on (50k lines across 15 python files) and a smaller repo (5k lines / 6 python files) results in similar errors / bad completions but gibberish comes from the different repo's codebase respectively Copying a single file from one of the codebases into a new window and editing as a new file without creating a github repo - still gibberish mostly taken from that file Logged out of VScode / Github copilot, all extensions Tried a different workstation where I have also used copilot successfully before, same problems seen

Other things I have observed: If I start a new file in a new window and fresh file with 0 lines and guide it with comments code completion appears to work as before, so the issue might be context windows In the model selection, I only get chatgpt 4o Copilot, don't see any other models listed

Here's a partial log output of the copilot log after a fresh restart and attempt to do some code completions, lots of stuff in there I don't understand fully but wouldn't expect to see, "unknown language python", solution 0 returned, expired cerficates?:

2025-04-26 18:54:25.345 [info] [certificates] Removed 10 expired certificates 2025-04-26 18:55:16.120 [info] [fetcher] Using Helix fetcher. 2025-04-26 18:55:16.120 [info] [code-referencing] Public code references are enabled. 2025-04-26 18:55:17.007 [info] [fetcher] Using Helix fetcher. 2025-04-26 18:55:32.214 [info] [fetcher] Using Helix fetcher. 2025-04-26 18:55:32.214 [info] [code-referencing] Public code references are enabled. 2025-04-26 18:55:32.248 [info] [fetcher] Using Helix fetcher. 2025-04-26 18:56:03.213 [warning] [relatedFiles] unknown language python 2025-04-26 18:56:04.837 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 1520.7035000000033 ms 2025-04-26 18:56:05.504 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:05.505 [info] [streamChoices] request done: headerRequestId: [8ace36ba-3a75-48a1-a8fd-76ac22b230d4] model deployment ID: [] 2025-04-26 18:56:06.177 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 426.21710000000894 ms 2025-04-26 18:56:06.178 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:06.179 [info] [streamChoices] request done: headerRequestId: [102e3078-f24d-46c0-b537-af7d7dd90750] model deployment ID: [] 2025-04-26 18:56:06.735 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 471.77649999999267 ms 2025-04-26 18:56:06.736 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:06.736 [info] [streamChoices] request done: headerRequestId: [8aae076b-8134-4c97-986e-f59ca5afb313] model deployment ID: [] 2025-04-26 18:56:08.135 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 545.5715000000055 ms 2025-04-26 18:56:08.136 [info] [streamChoices] request done: headerRequestId: [cc3dbab0-4f84-4733-a4f5-c2dab76e2bed] model deployment ID: [] 2025-04-26 18:56:08.374 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 476.7811999999976 ms 2025-04-26 18:56:08.374 [info] [streamChoices] request done: headerRequestId: [1e06c0d9-4aa6-4a9a-aeb1-763beab28c0d] model deployment ID: [] 2025-04-26 18:56:08.847 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 479.5228999999963 ms 2025-04-26 18:56:08.848 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:08.849 [info] [streamChoices] request done: headerRequestId: [54dec098-34e5-42f0-b5c5-143d6b534145] model deployment ID: [] 2025-04-26 18:56:09.531 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 450.8377999999939 ms 2025-04-26 18:56:09.532 [info] [streamChoices] request done: headerRequestId: [cc09ce3a-e48a-42b5-9a62-ab4d352d3799] model deployment ID: [] 2025-04-26 18:56:09.775 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 485.34839999998803 ms 2025-04-26 18:56:09.775 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:09.776 [info] [streamChoices] request done: headerRequestId: [399336d7-7886-4d2b-bc7f-615a2ae643fb] model deployment ID: [] 2025-04-26 18:56:10.840 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 432.3996999999945 ms 2025-04-26 18:56:10.841 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:10.842 [info] [streamChoices] request done: headerRequestId: [cb5c81db-3f69-4f14-8fc7-c25748a6958c] model deployment ID: [] 2025-04-26 18:56:13.237 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 468.8735000000015 ms 2025-04-26 18:56:13.238 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:13.239 [info] [streamChoices] request done: headerRequestId: [50d1a922-ec0c-4e57-b4ed-3484cb636553] model deployment ID: [] 2025-04-26 18:56:15.023 [info] [fetchCompletions] request.response: [https://proxy.individual.githubcopilot.com/v1/engines/gpt-4o-copilot/completions] took 449.67459999999846 ms 2025-04-26 18:56:15.024 [info] [streamChoices] solution 0 returned. finish reason: [stop] 2025-04-26 18:56:15.024 [info] [streamChoices] request done: headerRequestId: [a4685f67-01b7-4764-8784-e49b7cebc5b1] model deployment ID: []

  • GitHub Copilot Extension Version: 1.309.0
  • VS Code Version: 1.99.3
  • OS Version: Windows 11 Pro 10.0.26100
  • Logs: Diagnostics log:

Copilot

  • Version: 1.309.0
  • Build: prod
  • Editor: vscode/1.99.3

Environment

  • http_proxy: n/a
  • https_proxy: n/a
  • no_proxy: n/a
  • SSL_CERT_FILE: n/a
  • SSL_CERT_DIR: n/a
  • OPENSSL_CONF: n/a

Feature Flags

  • Send Restricted Telemetry: disabled
  • Chat: enabled
  • Content exclusion: unavailable

Node setup

  • Number of root certificates: 152
  • Operating system: Windows_NT
  • Operating system version: 10.0.26100
  • Operating system architecture: x64
  • NODE_OPTIONS: n/a
  • NODE_EXTRA_CA_CERTS: n/a
  • NODE_TLS_REJECT_UNAUTHORIZED: n/a
  • tls default min version: TLSv1.2
  • tls default max version: TLSv1.3

Network Configuration

  • Proxy host: n/a
  • Proxy port: n/a
  • Kerberos SPN: n/a
  • Reject unauthorized: disabled
  • Fetcher: HelixFetcher

Reachability

  • github.com: HTTP 200
  • api.github.com: HTTP 200
  • proxy.individual.githubcopilot.com: HTTP 200
  • api.individual.githubcopilot.com: HTTP 200
  • telemetry.individual.githubcopilot.com: HTTP 200

VS Code Configuration

  • HTTP proxy:
  • HTTP proxy authentication: n/a
  • Proxy Strict SSL: true
  • Extension HTTP proxy support: override

Extensions

  • Is win-ca installed?: false
  • Is mac-ca installed?: false

Authentication

  • GitHub username: jasoninch

settings.json: { "github.copilot.enable": { "*": false, "plaintext": false, "markdown": false, "scminput": false, "python": true } }

Image

Image

jasoninch avatar Apr 26 '25 11:04 jasoninch

I'm having the issue starting yesterday, tried switching different versions but still getting the same nonsense.

Good to confirm that I'm not the only one.

madcpt avatar Apr 26 '25 13:04 madcpt

сб, 26 апр. 2025 г., 16:34 madcpt @.***>:

madcpt left a comment (microsoft/vscode-copilot-release#8624) https://github.com/microsoft/vscode-copilot-release/issues/8624#issuecomment-2832202105

I'm having the issue starting yesterday, tried switching different versions but still getting the same nonsense.

Good to confirm that I'm not the only one.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-copilot-release/issues/8624#issuecomment-2832202105, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WNRPXY4OJAF3N2KNUCUVT23ODORAVCNFSM6AAAAAB35JIG72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZSGIYDEMJQGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Drtgbg avatar Apr 26 '25 13:04 Drtgbg

Hello, we have pushed a new Copilot extension version 1.311.0 that we believe will fix the issues you're seeing. Please let us know if you are still experiencing the issue after updating and restarting.

devm33 avatar Apr 29 '25 08:04 devm33

We have identified and fixed an issue in one of our data center. Everything is back to normal. Sorry for the inconvenience and thanks for all the reports and help on this.

hstaudacher avatar Apr 30 '25 09:04 hstaudacher

We have identified and fixed an issue in one of our data center. Everything is back to normal. Sorry for the inconvenience and thanks for all the reports and help on this.

You're welcome. Hope it helped. And yes, @devm33 is all working again, before updating to 1.311.0, and after updating is still working.

jasoninch avatar Apr 30 '25 14:04 jasoninch