github / github/CopilotForXcode

Copilot loses connection with Xcode

Đang mở
#13 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Swift
Star
6.3k
Fork
2k
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
2

Mô tả

**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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.