-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin is incompatible with Flatpak distribution of IntelliJ #20
Comments
Do you have
Is this a separate issue or do you just mean you are using IntelliJ Ultimate? |
@IncPlusPlus could it be that the installed libraries simply don’t match the versions we are compiling against? It might be worthwhile to figure out the minimal versions of the libraries we are needing to link against. |
As far as I can see Concerning intellij ultimate what I meant is that I just installed the plugin in intellij ultimate and get the same exceptions. |
Just to be sure could you try to manually install them
|
So I have |
Could you try to reinstall them? Also do you have the 32bit or 64Bit versions installed? |
I reinstalled them but without any difference. They are all the 64bit version. |
Do you have any duplicate versions of the libraries installed? |
I agree. @Agraphie, could you provide the version numbers of those three packages given with |
I believe I might also be running into this same error. I thought it was because I hadn't updated the plugin yet but I actually have the latest version. I'll give it a look. |
I was able to build the plugin without any problems via
|
Ah. Yeah I think |
Just running The way I installed the plugin is over the jetbrains repository. Maybe there is something wrong with what's uploaded there? Also when I build the plugin with
Probably not. It's a pretty new Pop!OS installation and I haven't really installed that much. |
As it turns out, this actually runs fine for me. I'm running Auto Dark Mode 1.5.0-2020.2. |
For Android studio you will need to checkout the 2019.3 branch as AndroidStudio is based on the 2019.3 version of the IntelliJ Platform. |
Ah. I missed the fact that the error was from Android Studio. They're going to be a little bit behind on their IntelliJ base version unfortunately. |
So the error "Plugin 'Auto Dark Mode' is incompatible with this installation" is from Android Studio when installing manually, yes. But the original stacktrace occurs in Android Studio AND Intellij Ultimate. I cannot even run Intellij anymore as I get the errors (same as above)
|
It seems to be an issue with the flatpak installation. I downloaded Intellij Ultimate from the jetbrains website and installed the plugin. That worked. I'm not sure what causes the issue. So I guess this can be kinda closed? |
I'm not familiar with how flatpak bundling works but if I had to guess, it could be that the flatpak for IntelliJ that you used doesn't contain some necessary runtime library. If that's the case, I'm curious what this might be. This would mean that this plugin actually has a runtime dependency which we should list in the README. |
There might be a difference in what library search paths are registered for the individual JREs. If this is the case we could add the paths manually ourself. Sandboxing of flatpak might be an issue too. Edit: Form doing some research the sand boxing of flatpak definitely is an issue. The IntelliJ package is hosted here: |
I have spiked an issue to offer provide specialised distributions with the Gnome runtime. This would probably solve this issue. |
Awesome, thanks. I subscribed to the issue and will test again if there's a new flatpack distribution or so. |
Unfortunately, this still is an issue (IntelliJ 2022.2.4).
Edit: to remove the plugin for now, just delete it: Edit2: as a workaround, I currently use the quick theme switcher. |
This isn't something I am able to fix. The flatpak distribution isn't an official one and there doesn't seem to be much interest in fixing it on the distribution side of things. See flathub/com.jetbrains.IntelliJ-IDEA-Ultimate#58 |
Hi,
I'm trying your plugin on Pop!OS and Gnome with Android Studio, but I get the following exceptions. It also doesn't work for Intellij Ultimate for me. Any ideas?
The text was updated successfully, but these errors were encountered: