fkorotkov / intellij-thrift

Apache License 2.0
89 stars 77 forks source link

com/intellij/plugins/thrift/jps/ModelSerializerExtension on idea2020.3 #101

Closed Nasller closed 3 years ago

Nasller commented 3 years ago

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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

ekzeb commented 3 years ago

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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

Project Settings/Project SDK/1.8 java version "1.8.0_271"

Nasller commented 3 years ago

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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

Project Settings/Project SDK/1.8 java version "1.8.0_271"

whats mean , using 1.8.0_271 version?

ekzeb commented 3 years ago

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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

Project Settings/Project SDK/1.8 java version "1.8.0_271"

whats mean , using 1.8.0_271 version?

concrete JDKs version used in Project, if you can, not my case, change it to 11 jdk and you'll not see this error

Nasller commented 3 years ago

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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

Project Settings/Project SDK/1.8 java version "1.8.0_271"

whats mean , using 1.8.0_271 version?

concrete JDKs version used in Project, if you can, not my case, change it to 11 jdk and you'll not see this error

i know. but i cant change .thanks

fkorotkov commented 3 years ago

I don't think it's related to your Project JDK. The JPS part should use IDE's JDK. Can you share your About IntelliJ screen? Which JDK your IntelliJ is using. 🤔

Nasller commented 3 years ago

I don't think it's related to your Project JDK. The JPS part should use IDE's JDK. Can you share your About IntelliJ screen? Which JDK your IntelliJ is using. 🤔

i think too. But it actually uses my project jdk.i try to change my project jdk to 11 and thats worked.use jdk11 no error.my intellij jdk used defaults jdk11.

yuemingming commented 3 years ago

I also encountered the same problem

yuemingming commented 3 years ago

Is there any current solution

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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

Nasller commented 3 years ago

Is there any current solution

java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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

disabled the plugin

TKYAngus commented 3 years ago

I got the same issue with my project JDK 8 on IntelliJ IDEA 2020.3. I have to disable the plugin to make it compile.

cny-dixa commented 3 years ago

I also have the issue. The problem is that I cannot change to Java 11 since my company develops in a Scala version which requires Java 8.

Nasller commented 3 years ago

Everys guys, I found a temporary solution. Remove the files in the META-INF.services file directory in thrift-jps.jar, so that you can temporarily use the function of thrift without reporting an build error. I guess it may affect To the function of the thrift compiler, but that function seems useless.Hope the author can fix it.Only applies to me, hope it can help you.

guynaa commented 3 years ago

Everys guys, I found a temporary solution. Remove the files in the META-INF.services file directory in thrift-jps.jar, so that you can temporarily use the function of thrift without reporting an build error. I guess it may affect To the function of the thrift compiler, but that function seems useless.Hope the author can fix it.Only applies to me, hope it can help you.

thanks, workaround is working for me.

binbjz commented 3 years ago

Same issues and I have disabled this plugin. I will re-enable it after author fixes it.

MacOS Big Sur 11.1

Model Name: MacBook Pro
  Model Identifier: MacBookPro15,3
  Processor Name:   8-Core Intel Core i9
  Processor Speed:  2.4 GHz
  Number of Processors: 1
  Total Number of Cores:    8
  L2 Cache (per Core):  256 KB
  L3 Cache: 16 MB
  Hyper-Threading Technology:   Enabled
  Memory:   32 GB
IntelliJ IDEA 2020.3.1 (Ultimate Edition)
Build #IU-203.6682.168, built on December 29, 2020
$ java -version
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
Internal error (java.lang.UnsupportedClassVersionError): com/intellij/plugins/thrift/jps/ModelSerializerExtension 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
java.lang.UnsupportedClassVersionError: com/intellij/plugins/thrift/jps/ModelSerializerExtension 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
fkorotkov commented 3 years ago

Just published 1.5.0 where JPS plugins should be Java 8 compatible. Let's see if it fixes the issue.