Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Support IntelliJ 2022.1 #131

Merged
merged 1 commit into from
May 26, 2022
Merged

Conversation

luozhenyu
Copy link
Contributor

@luozhenyu luozhenyu commented Apr 13, 2022

Preview Download

thrift.zip

How to install plugin from disk?

Features

  • Support IntelliJ 2022.1

  • Upgrade to Gradle 7.4.2

  • Upgrade intellij plugin to 1.5.3

  • Remove all usages of deprecated API

  • README: Java 11 is required to build from source

  • Backwards compatibility since 2021.2

@luozhenyu luozhenyu force-pushed the idea-2022-1 branch 4 times, most recently from 6c0ce6a to 8a415f7 Compare April 14, 2022 07:17
@fkorotkov
Copy link
Owner

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

@uri200
Copy link

uri200 commented Apr 15, 2022

Not working for 2021.3.1
:(

@luozhenyu luozhenyu force-pushed the idea-2022-1 branch 2 times, most recently from 13fbc9d to ff7640e Compare April 15, 2022 08:12
@luozhenyu
Copy link
Contributor Author

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
Copy link
Contributor Author

Not working for 2021.3.1 :(

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

ideaVersion=2022.1
ideaSinceVersion=212.4746.92

@uri200
Copy link

uri200 commented Apr 15, 2022

@luozhenyu that was quick. Thanks!

@guynaa
Copy link

guynaa commented Apr 17, 2022

@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)

* Support IntelliJ 2022.1

* Upgrade to Gradle 7.4.2

* Upgrade intellij plugin to 1.5.3

* Remove all usages of deprecated API

* README: Java 11 is required to build from source

* Backwards compatibility since 2021.2
@luozhenyu
Copy link
Contributor Author

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
Copy link

guynaa commented Apr 17, 2022

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
Copy link
Contributor Author

luozhenyu commented Apr 17, 2022

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
Copy link

guynaa commented Apr 18, 2022

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
Copy link

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

@xuechengwei
Copy link

谢谢老板,很好用

@gaydenko
Copy link

gaydenko commented May 4, 2022

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

@Crysmart
Copy link

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

@gaydenko
Copy link

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

@oxyuan
Copy link

oxyuan commented May 24, 2022

谢谢大佬!

@patkujawa-wf
Copy link

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

@fkorotkov fkorotkov merged commit 4fbd271 into fkorotkov:master May 26, 2022
@fkorotkov
Copy link
Owner

@patkujawa-wf thank you for pinging!

@DUKEofBARRY
Copy link

DUKEofBARRY commented Aug 11, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants