Open agatti opened 1 month ago
Hm, I think this could be solved by forking a new JVM (with whatever the project SDK is configured as) to run the directory layout code instead of trying to do it in-process, looking at now.
In the meantime, a temporary workaround is to force IntelliJ to use a runtime based on JDK 21 (see https://www.jetbrains.com/help/idea/switching-boot-jdk.html) - but a solution for this is needed until this plugin stops supporting IntelliJ versions that default to a JDK 17 runtime.
Keep in mind that Ghidra won't build on anything earlier than JDK 21 since mid-April, so starting from the next stable version of Ghidra this plugin won't work at all.
Describe the bug:
The plugin cannot work if Ghidra was compiled with a newer Java version than the one IntelliJ is running on.
Steps to reproduce:
The exception is as follows (kept just the interesting bits):
The exception is caught by IntelliJ itself and won't provide any feedback to the user (ie. you can click as many times as you want on either "Ok" or "Apply" but nothing will really happen).
Expected behavior:
Ideally there should be a better way to figure out Ghidra's directory layout, but if that's not possible then I guess some feedback to the user may help clarifying the situation. This is especially annoying if you have your package manager handle either Ghidra or IntelliJ (or both of them - look at Nix, Arch, etc.), or if you upgrade the default JVM at the wrong moment in time and IntelliJ starts misbehaving when you upgrade your Ghidra installation.