axaluss / power-mode-intellij-plugin

Power Mode II Intellij plugin
https://plugins.jetbrains.com/plugin/8251
Apache License 2.0
311 stars 37 forks source link

config page error with java compile version #55

Closed tomasWade closed 4 years ago

tomasWade commented 4 years ago

I get error when open the config page

com.intellij.diagnostic.PluginException: 
While loading class de.ax.powermode.power.ui.PowerModeConfigurableUI:
de/ax/powermode/power/ui/PowerModeConfigurableUI 
has been compiled by a more recent version of the Java Runtime (class file version 55.0),
this version of the Java Runtime only recognizes class file versions up to 52.0 [Plugin: de.ax.powermode]

I find https://github.com/axaluss/power-mode-intellij-plugin/issues/48 has same error, so try to down load latest jar from https://github.com/axaluss/power-mode-intellij-plugin/releases/tag/99.99

unluckly.. , It's not work. I extract the power-mode jar and check the real compile version :

[abc@abc-bladepro ui]$ javap -v PowerModeConfigurableUI|head
 ...............
  Last modified 2020-2-16; size 25186 bytes
  MD5 checksum 806a817a70fc27d7905f0df4d93156c6
  Compiled from "PowerModeConfigurableUI.java"
public class de.ax.powermode.power.ui.PowerModeConfigurableUI extends java.lang.Object implements com.intellij.openapi.options.ConfigurableUi<de.ax.powermode.PowerMode>
  minor version: 0
  major version: 55
  flags: ACC_PUBLIC, ACC_SUPER

It's still 55, java 8 just support 52 for top. I am not very familiar with scala so can you compile it again?

axaluss commented 4 years ago

see #53