Code Monkey home page Code Monkey logo

Comments (12)

weisJ avatar weisJ commented on June 13, 2024 1

Not a stupid question at all. You can find the logs under Help->Show logs

from auto-dark-mode.

weisJ avatar weisJ commented on June 13, 2024 1

This has been fixed in #34. A new version including the fix has been uploaded and should be available in at most 2-3 days.

from auto-dark-mode.

weisJ avatar weisJ commented on June 13, 2024

This certainly isn't supposed to be happening. I will have a look at what might be causing this.

from auto-dark-mode.

swsnr avatar swsnr commented on June 13, 2024

Can I do anything to debug it?

from auto-dark-mode.

weisJ avatar weisJ commented on June 13, 2024

It would be very helpful if you could install this version and provide the logs for when changing the gnome theme.

Edit: The linked version is currently broken. Just use the currently installed version for the log.

from auto-dark-mode.

swsnr avatar swsnr commented on June 13, 2024

Where do I find the logs? Sorry if that's a stupid question, but I have never debugged am Idea plugin before.

from auto-dark-mode.

swsnr avatar swsnr commented on June 13, 2024

There's an idea.log file but it shows no message if I tail -f it and change the theme via gsettings set. The only messages related to this plugin I can see are:

[…] INFO - tform.linux.gnome.GnomeLibrary - Loaded libauto-dark-mode-linux-gnome.so. 
[…] INFO - .platform.AbstractThemeMonitor - Started theme monitoring. 

Haven't noticed any exception 🤷

from auto-dark-mode.

swsnr avatar swsnr commented on June 13, 2024

PS: As an additional data point, the theme updates also if I toggle the "Change editor/IDE theme" check boxes in the settings dialog of this plugin and press "Apply"…

It looks as if it perfectly picks up the current theme, but fails to get an event if the theme's changed.

from auto-dark-mode.

weisJ avatar weisJ commented on June 13, 2024

Yes it seems like the gnome settings hook doesn't fire when the settings change. Strangely enough it seems to be working when using the runIde gradle task. Are you using version 2020.3.1 or 2020.3? There might have been some changes in 2020.3.1 relating to how native libraries are handles in the jetbrains runtime (Which I hope is not the case).

from auto-dark-mode.

swsnr avatar swsnr commented on June 13, 2024

2020.3.1

from auto-dark-mode.

weisJ avatar weisJ commented on June 13, 2024

Indeed the signal, that the theme has been changed, doesn't notify the registered callback.
It seems like this behaviour can't be replicated using the runIde task (there the theme detection works as expected). This makes it very difficult to debug the issue as this probably is related to how the plugin classes/libraries are loaded in the Jetbrains runtime (This is just speculation. The runIde task also used the Jetbrains runtime, so this probably isn't the full picture).
I have submitted a bug report to Jetbrains, to get some clarification.

from auto-dark-mode.

swsnr avatar swsnr commented on June 13, 2024

@weisJ Yeah, indeed 😍 Many many thanks for digging into this and fixing it 🤗

from auto-dark-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.