zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
603 stars 71 forks source link

[BUG] Configuration cannot be opened after uninstalling GitExtender #518

Closed zielu closed 6 months ago

zielu commented 6 months ago

Describe the bug When GitExtender is uninstalled config page cannot be opened

To Reproduce Steps to reproduce the behavior:

  1. Install GitExtender
  2. Select related Update Project action in General settings tab
  3. Uninstall GitExtender
  4. Try opening config page

Expected behavior Config page should be opened

Plugin version 500.1.0+222 but buggy code is there since May 2021

IDE version 2023.3

Screenshots

2023-12-10 22:22:31,275 [  15920] SEVERE - #c.i.o.o.e.ConfigurableCardPanel - cannot create configurable component
java.util.NoSuchElementException: Collection contains no element matching the predicate.
    at zielu.gittoolbox.m.d.c.a(SourceFile:29)
    at zielu.gittoolbox.G.o.e.a(SourceFile:15)
    at zielu.gittoolbox.G.h.d.a.au.a(SourceFile:225)
    at zielu.gittoolbox.G.h.d.a.au.invoke(SourceFile:189)
    at zielu.gittoolbox.G.h.d.e.s.<init>(SourceFile:12)
    at zielu.gittoolbox.G.h.d.a.ar.a(SourceFile:223)
    at zielu.gittoolbox.G.h.d.a.ar.a(SourceFile:35)
    at zielu.gittoolbox.G.h.d.a.aW.a(SourceFile:181)
    at zielu.gittoolbox.G.h.d.a.aW.invoke(SourceFile:180)
    at zielu.gittoolbox.G.h.d.c.a.a(SourceFile:36)
    at zielu.gittoolbox.G.h.d.a.ar.a(SourceFile:180)
    at zielu.gittoolbox.G.h.d.a.ar.a(SourceFile:35)
    at zielu.a.l.a.a(SourceFile:20)
    at zielu.gittoolbox.G.h.d.a.m.a(SourceFile:57)
    at zielu.gittoolbox.G.h.d.a.n.a(SourceFile:26)
    at zielu.gittoolbox.G.h.d.a.n.a(SourceFile:11)
    at zielu.a.l.c.c(SourceFile:71)
    at zielu.a.l.c.createComponent(SourceFile:65)
    at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:181)

git_toolbox_2.xml:

<application>
  <component name="GitToolBoxAppSettings2">
    ...
    <option name="updateProjectActionId" value="gitextender.update.project.action" />
  </component>
</application>
zielu commented 6 months ago

Done in 500.1.1+222