github / github/CopilotForXcode

Copilot loses connection with Xcode

Abierto
#13 4 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Swift
Estrellas
6.3k
Forks
2k
Merge medio
2 min
PR fusionados (30 d)
2

Descripción

**Describe the bug**
Hi there!

I'm using Xcode the following way: screens split in 2 within the same Xcode window, using the "add editor on right" button.
For example, on the left, I have the unit tests file, and on the right, I have the file I'm testing.
When I switch the right side to the unit tests file, I'll likely lose copilot, it will stop suggesting things.
BTW, I'm losing connection from time to time, but other than this, I don't have real steps to help reproduce.

Being transparent here, this is an issue I had a lot with [intitni](https://github.com/intitni).

The best way to fix it with the non official extension was to hit a button ["Reactivate observations to Xcode"](https://github.com/intitni/CopilotForXcode/blob/35a955f766f180ba94db73c585649e0a0eb79079/Tool/Sources/XcodeInspector/XcodeInspector.swift#L258)
Before this feature, I had to relaunch the app and sometimes Xcode, so this shortcut saves some time.
It's a bug, but also a feature request :)

**Versions**
- Copilot for Xcode: 0.27.0
- Xcode: 15.4
- macOS: 14.7 (23H124)

**Steps to reproduce**
See description

**Logs**
In the following logs
- Copilot was not suggesting things to Xcode
- Cleared the logs
- Tried to type some code to trigger copilot (fails)
- Went to the menu icon (hit disable completions + the same for swift then hit enable)
- Tried to type some code to trigger copilot (fails)
- Quit Xcode
- Relaunched Xcode
- Tried to type some code to trigger copilot (Success)

[github-copilot-for-xcode.log](https://github.com/user-attachments/files/17586202/github-copilot-for-xcode.log)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.