Closed NekoCaffeine closed 3 years ago
I am fairly confident that the issue is due to you using
VM: OpenJDK 64-Bit Server VM by AdoptOpenJDK
As the runtime used by the IDE. For whatever reason the HTML rendering stuff acts weird in any runtime that isn't the bundled one provided by JetBrains.
I'll try to find some time later this week to investigate the issue.
Yes, I also think it's a JRE version issue.
It may be that some of the javassist methods don't support that environment, but I need to know the details of the exception.
Is there a better way than build DLCC myself?
As my use case is rather extreme, I can accept a unilateral transform of bytecode in my environment to support DDLC's bytecode transformer after identifying the cause.
By the way, this issue does not exist in IDEA-IC 212.3724.25 and the latest DDLCs supported by this version.
It may be that some of the javassist methods don't support that environment, but I need to know the details of the exception.
Fairly confident that the issue does not have anything to do failed javassist message. Though, when I get the chance, I will test to see if not running them fixes the issue.
What you are saying is that the sticker does not show up, but there is a invisible pane that is still intercepting click events. Think that has something to with how the sticker pane is behaving. I'll have some time later this to try some things out.
By the way, this issue does not exist in IDEA-IC 212.3724.25 and the latest DDLCs supported by this version.
So I assume that the sticker shows up in IC-212.5080.55
if you switch to the bundled runtime?
Previous versions will call this (https://github.com/JetBrains/intellij-community/blob/3131c76023b8fc8baaf5d93108fc36ac22d85d82/platform/platform-impl/src/com/intellij/ui/jcef/HwFacadeHelper.java#L254) when jcef is not supported as a fallback.
But in an update (https://github.com/JetBrains/intellij-community/blob/3131c76023b8fc8baaf5d93108fc36ac22d85d82/platform/platform-impl/src/com/intellij/ui/jcef/HwFacadeHelper.java#L86-L107) this month, breaks this behaviour.
When I insert fallback into the realization of current inaction, the behaviour is normal.
When I insert fallback into the realization of current inaction, the behaviour is normal.
So I take it amadeus.maho (212.5080.55)
allows you to do crazy things like overriding methods, such that you can provide your own implementation as a work around?
If so, do still want a fix? (Thanks for doing most of the investigation by the way!)
So I take it
amadeus.maho (212.5080.55)
allows you to do crazy things like overriding methods, such that you can provide your own implementation as a work around?
Yes, my library can do a lot of black magic.
If so, do still want a fix? (Thanks for doing most of the investigation by the way!)
It doesn't seem to matter at the moment, and in any case I'm free from this problem for the time being. This should count as an IntelliJ issue.
You change the parent class from HwFacadeJPanel
to JPanel
if you wish to be OpenJDK compatible.
Also should I care about HackComponent
's failure?
Yes, my library can do a lot of black magic.
You change the parent class from HwFacadeJPanel to JPanel if you wish to be OpenJDK compatible.
I'll probably do something along the lines of that later, so will leave this open for the time being.
Also should I care about HackComponent's failure?
No, most of were created to change things like hard coded colors and stuff. I should probably go back and clean some of those up later in the future.
By the way, if you have any doubts about Chinese, you can ask me.
谢谢!我欢迎帮助,最近忙死了。现在我有事,以后可能会翻译。(写中文还是很难)
Aight, I tried to plugin the java 16 open jdk into my intellij community, and it got very angry.
I'll assume that you got it to work by great feats of hacking. With that being the case, I'll close this issue, but if it comes back up in a future runtime upgrade, I'll keep this in mind.
Thanks for taking the time to share!
@Unthrottled Yes, if you are interested, I would be happy to share the specific implementation and binary build with you. At present, I use a javaagent to make IntelliJ work normally on OpenJDK17.
And I also fixed two JDK bugs that caused IntelliJ to not run on JDK14 and higher. https://bugs-stage.openjdk.java.net/browse/JDK-8254975 https://bugs-stage.openjdk.java.net/browse/JDK-8270056
At present, I use a javaagent to make IntelliJ work normally on OpenJDK17.
@NekoCaffeine That's some next level black magic. While I am impressed, I currently do not have the need use anything other than the bundled jetbrains runtime. If that changes, I imagine you'd share some 1337h4x :joy:
I found that the UI element of the sticker intercepts click events and the drag and drop function works fine, but the whole element is completely transparent.
I see the following in the output at startup: