Copilot doesn't work well after manually edit code.

Offen
#559 5 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
swift

Rechercherichtung

Die Sequenz in Xcode 26.0.1 mit Copilot for Xcode 0.43.140 reproduzieren: eine Änderung anfordern, manuell bearbeiten und dann eine weitere Änderung anfordern oder einen neuen Tab öffnen. Die relevanten Logs unter ~/Library/Logs/GitHubCopilot/ untersuchen; als erledigt gilt es, wenn nachfolgende Anfragen die manuelle Bearbeitung beibehalten, ohne dass ein Neustart erforderlich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Describe the bug

Copilot always revert my edited code to previous code.

Versions

  • Copilot for Xcode: 0.43.140
  • Xcode: 26.0.1
  • macOS: 26.0.1

Steps to reproduce

  1. Ask Copilot to change some code.
  2. Manually change some code.
  3. Ask Copilot to change some other code.

Copilot will do the task I ask, but always revert what I changed. Create new tab will be the same. Only quit and reopen will work.

It reason is because copilot always read it cache instead of the file in Xcode. Copilot knows it and it doesn't follow my instruction to read from Xcode. It answers but still using the cache.

Screenshots

Logs

Additional context

Vorherrschende Sprache
Swift
Sterne
6.3k
Forks
2k
Ø Merge
3 T. 21 Std.
Gemergte PRs (30 T.)
2

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/CopilotForXcode

Alle Issues in github/CopilotForXcode

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.