jgrasl / intellij-final-modifier-plugin

Intellij IDEA plugin - Insert final modifier automatically based on Code style issues inspection
2 stars 1 forks source link

The plugin does not work for IntelliJ IDEA 2022.2.3 #2

Open Haixing-Hu opened 2 years ago

Haixing-Hu commented 2 years ago

Plugin Version

v1.1

IDE Version

IntelliJ IDEA 2022.2.3 Buid #IU-222.4345.14, built on October 5, 2022

System

Ununtu Linux 22.04.1 LTS

Problem

The "Insert final modifier" menu item is still exist in the context menu, but it does not work.

The Log

❯ tail -f ~/.cache/JetBrains/IntelliJIdea2022.2/log/idea.log
2022-10-24 16:51:07,726 [5033540]   INFO - #o.i.i.c.StaticScanner - Scanning current file(s).
2022-10-24 16:51:11,634 [5037448]   INFO - #o.i.i.c.StaticScanner - Scanning current file(s).
2022-10-24 16:51:19,961 [5045775]   INFO - #c.i.c.ComponentStoreImpl - Saving Project(name=njzhyl, containerState=COMPONENT_CREATED, componentStore=/home/starfish/working/idea/njzhyl)RemoteRepositoriesConfiguration took 22 ms
2022-10-24 16:52:32,362 [5118176]   INFO - #c.i.c.ComponentStoreImpl - Saving appAndroidFoldingSettings took 17 ms
2022-10-24 16:52:58,834 [5144648]   WARN - #c.i.o.o.e.ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting
2022-10-24 16:53:28,519 [5174333]   WARN - #c.i.o.o.e.ConfigurableExtensionPointUtil - ignore deprecated groupId: language for id: preferences.language.Kotlin.scripting
2022-10-24 16:54:03,531 [5209345]   INFO - #c.i.c.ComponentStoreImpl - Saving appAndroidFoldingSettings took 11 ms
2022-10-24 16:54:43,987 [5249801]   INFO - #c.i.c.ComponentStoreImpl - Saving appAndroidFoldingSettings took 11 ms
2022-10-24 16:54:45,942 [5251756]   INFO - #c.i.o.a.i.PopupMenuPreloader - 9224 ms since showing to preload popup menu 'Editor Popup Menu' at 'EditorPopup' in 81 ms
2022-10-24 16:54:45,942 [5251756]   INFO - #c.i.o.a.i.PopupMenuPreloader - 9210 ms since showing to preload popup menu 'Editor Popup Menu' at 'EditorPopup' in 82 ms
2022-10-24 17:03:50,948 [5796762]   INFO - #c.i.c.ComponentStoreImpl - Saving appAndroidFoldingSettings took 20 ms
jgrasl commented 2 years ago

Thanks for letting me now. Just tested with the latest 2022.1 version where it works but in 2022.2 it's not anymore. I took a quick look and as I see the PSI handling changed completely and unfortunately I don't have the time at the moment to rework the plugin. I've changed the plugin page to show that it's not compatible with the latest version. Sorry for the inconvinience.

Haixing-Hu commented 2 years ago

OK. Thank you for the information.

Haixing-Hu commented 2 years ago

@jgrasl Hi, I tried the plugin with IDEA 2022.1, but it still did not work. Could you please tell me the version information of your platform?

IntelliJ IDEA 2022.1 (Ultimate Edition)
Build #IU-221.5080.210, built on April 12, 2022
Runtime version: 11.0.14.1+1-b2043.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-52-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 6
Non-Bundled Plugins:
    org.jetbrains.plugins.spotbugs (1.2.5)
    me.lotabout.codegenerator (1.5.2)
    Insert Final Modifier (1.1)
    CheckStyle-IDEA (5.71.1)

Kotlin: 221-1.6.20-release-285-IJ5080.210
Current Desktop: ubuntu:GNOME