fkorotkov / intellij-thrift

Apache License 2.0
89 stars 76 forks source link

Support IntelliJ 2022.1 #131

Closed luozhenyu closed 2 years ago

luozhenyu commented 2 years ago

Preview Download

thrift.zip

How to install plugin from disk?

Features

fkorotkov commented 2 years ago

Thank you, @luozhenyu! I'll try to look into the icons issue this weekend.

uri200 commented 2 years ago

Not working for 2021.3.1 :(

luozhenyu commented 2 years ago

Thank you, @luozhenyu! I'll try to look into the icons issue this weekend.

@fkorotkov I made a mistake. The icon works normally in fact. I tested it on IDEA 2021.3 and 2022.1

luozhenyu commented 2 years ago

Not working for 2021.3.1 :(

@uri200 I solved this problem. The plugin works well from 2021.2 to 2022.1 now.

https://github.com/fkorotkov/intellij-thrift/blob/ff7640eb294e7564d53f8e307ee885ead528d976/gradle.properties#L1-L2

uri200 commented 2 years ago

@luozhenyu that was quick. Thanks!

guynaa commented 2 years ago

@luozhenyu i am getting this error trying with a java 1.8 project:

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 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:370) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) at java.util.ServiceLoader$1.next(ServiceLoader.java:480) at com.intellij.util.containers.ContainerUtil.newArrayList(ContainerUtil.java:126) at org.jetbrains.jps.service.impl.JpsServiceManagerImpl$SingleClassLoaderPluginManager.loadExtensions(JpsServiceManagerImpl.java:113) at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.loadExtensions(JpsServiceManagerImpl.java:105) at org.jetbrains.jps.service.impl.JpsServiceManagerImpl.getExtensions(JpsServiceManagerImpl.java:58) at org.jetbrains.jps.model.serialization.JpsModelSerializerExtension.getExtensions(JpsModelSerializerExtension.java:47) at org.jetbrains.jps.model.serialization.library.JpsLibraryTableSerializer.getLibraryPropertiesSerializer(JpsLibraryTableSerializer.java:117) at org.jetbrains.jps.model.serialization.library.JpsLibraryTableSerializer.loadLibrary(JpsLibraryTableSerializer.java:58) at org.jetbrains.jps.model.serialization.library.JpsLibraryTableSerializer.loadLibrary(JpsLibraryTableSerializer.java:53) at org.jetbrains.jps.model.serialization.library.JpsLibraryTableSerializer.loadLibraries(JpsLibraryTableSerializer.java:48) at org.jetbrains.jps.model.serialization.JpsGlobalLoader$GlobalLibrariesSerializer.loadExtension(JpsGlobalLoader.java:106) at org.jetbrains.jps.model.serialization.JpsGlobalLoader$GlobalLibrariesSerializer.loadExtension(JpsGlobalLoader.java:99) at org.jetbrains.jps.model.serialization.JpsLoaderBase.loadComponents(JpsLoaderBase.java:45) at org.jetbrains.jps.model.serialization.JpsGlobalLoader.loadGlobalComponents(JpsGlobalLoader.java:73) at org.jetbrains.jps.model.serialization.JpsGlobalLoader.load(JpsGlobalLoader.java:63) at org.jetbrains.jps.model.serialization.JpsGlobalLoader.loadGlobalSettings(JpsGlobalLoader.java:45) at org.jetbrains.jps.model.serialization.impl.JpsSerializationManagerImpl.loadModel(JpsSerializationManagerImpl.java:21) at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:34) at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:68) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:324) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:175) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:218) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)

luozhenyu commented 2 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

@guynaa I changes back to JDK 1.8. Does this build work? thrift.zip

guynaa commented 2 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

@guynaa I changes back to JDK 1.8. Does this build work? thrift.zip

yes, this one works

luozhenyu commented 2 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

@guynaa I changes back to JDK 1.8. Does this build work? thrift.zip

yes, this one works

Could you provide your version information of both IDE and OS? I am looking into this case. Jetbrains says IntelliJ project migrates to Java 11, so the IDEs should have a built-in JRE 11 runtime.

guynaa commented 2 years ago

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 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

macOS 12.3.1

gaydenko commented 2 years ago

Hi! Can anybody, please, clarify the situation - are we waiting for something permitting 2022.1 support? Are there stoppers?

xuechengwei commented 2 years ago

谢谢老板,很好用

gaydenko commented 2 years ago

Have built under Linux - it does work for me, thanks!

Crysmart commented 2 years ago

It doesn't work for 2022.1.1.How to correct build?

gaydenko commented 2 years ago

@Crysmart It does work for me after upgrading to 2022.1.1. Invalidate cache? I do it on every upgrade.

oxyuan commented 2 years ago

谢谢大佬!

patkujawa-wf commented 2 years ago

@fkorotkov any plans to merge to the main fork/plugin? 🙏🏻

fkorotkov commented 2 years ago

@patkujawa-wf thank you for pinging!

DUKEofBARRY commented 2 years ago

Do u have any plan to support new version ? And does this thrift plugins is compatible with Other JetBrains IDE like Pycharm or Golan 飞书20220811-220434 d