[Bug] UI Freeze when starting Eclipse IDE

Offen
#413 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java
Bereich
desktop, performance

Rechercherichtung

Beginnen Sie damit, com.microsoft.copilot.eclipse.ui.preferences.LanguageServerSettingManager.updateMcpToolsStatus() und com.microsoft.copilot.eclipse.core.utils.WorkspaceUtils.listTopLevelProjects() nachzuverfolgen, und konzentrieren Sie sich darauf, ob die Workspace-Traversierung im UI-Thread ausgeführt wird. Reproduzieren Sie das Problem, indem Sie Eclipse mit den gemeldeten Plugin-Versionen öffnen, und bestätigen Sie, dass der Start ohne das beobachtete Einfrieren reaktionsfähig bleibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

Environment

  • OS: Windows 11
  • Eclipse Version: 4.40
  • Plugin Version: 0.20.0.202607100822 and also 0.21.0.202608060743

Describe the bug
UI Freeze when starting the Eclipse IDE.

My assumption is that the method com.microsoft.copilot.eclipse.ui.preferences.LanguageServerSettingManager.updateMcpToolsStatus () goes through all the projects in the workspace and it does so in the UI thread.

Image

Pay attention to the Hits column on the right: the actual numbers are not real but the fact that there is a steep increase from 1 to 40+ shows that there is a for-loop somewhere that creates this issue. My bet is on the method com.microsoft.copilot.eclipse.core.utils.WorkspaceUtils.listTopLevelProjects ().

To Reproduce
Open the Eclipse IDE

Expected behavior
The UI shouldn't freeze, it should remain responsive

Additional context
We downgraded to version 0.19.0.202606240339 and we hope that this version doesn't have the issue. I will report back in this issue if 0.19.x also has this problem.

Vorherrschende Sprache
Java
Sterne
129
Forks
70
Ø Merge
2 T. 11 Std.
Gemergte PRs (30 T.)
15

Entwicklungsumgebung

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 microsoft/copilot-for-eclipse

Alle Issues in microsoft/copilot-for-eclipse

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

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