Closed PyvesB closed 4 years ago
Thanks for reporting this @PyvesB ! This is a bug usability issue and needs to be fixed before the marketplace release.
The yellow must have been left in from months ago when I first started making this theme and was doing a lot of testing, as this existed in the first version of the theme.
Will get this fixed soon.
@PyvesB I quickly tried to reproduced and was unable. Are you using the latest build of Modern Dark?
The new update site (in the README) is:
https://raw.githubusercontent.com/AObuchow/Eclipse-Modern-Dark-Theme/updatesite/updatesite/
This is what the Variables view looks on MacOS (Catalina, Eclipse 2020-06)
Modern Dark Theme: 1.0.7.202006181921
The fix I submitted might be invalid. @PyvesB & @ingomohr please update to the latest build and validate the fix.
Problem number 2 is fixed, i.e. the white area.
However, the yellow problem is still present on my machine with the latest version. Are you sure you've triggered the debug value changed functionality? Try with the following snippet:
import java.util.Random;
public class Main {
public static void main(String[] args) {
printHello();
printHello();
}
private static void printHello() {
int j = new Random().nextInt();
System.out.println("hello");
}
}
You must put the breakpoint on line System.out.println("hello");
, no other line would reproduce the behaviour.
Thanks for the detailed report on reproducing @PyvesB, that helps a lot. Will look into it.
@ingomohr or @PyvesB, would either of you mind posting a screenshot of the variable view (when you have a moment)? It seemed less affected by my last change on GTK than both your systems. I want to verify the colour is correct/exact :)
... with the code provided by @PyvesB and the breakpoint on the System.out.println("hello");
line.
Build. 1.0.7.202006190441
@PyvesB & @ingomohr thank you both that really helps. It's interesting to see the differences between both your screenshots too :P
Some observations:
@ingomohr did you try pressing "Continue"? It's only when the breakpoint is hit for a second time that the "Changed value background color" is set.
How it looks on Linux using a light GTK theme.
Instead of yellow, it's #914d6f
or rgb(145, 77, 111)
This is in accordance with the preference I set here:
'org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND=145,77,111'
@ingomohr did you try pressing "Continue"? It's only when the breakpoint is hit for a second time that the "Changed value background color" is set.
@PyvesB No - but now I did. ;) - (see gif)
@ingomohr's changed color seems to be correct (although I'm going to change the color to something else...)
@PyvesB maybe it's a workspace preference that's overriding the CSS preference? Might be worth trying to make a new test-workspace, enable Modern Dark theme and try reproducing.
Run/Debug seems to be the associated preference page:
Run/Debug seems to be the associated preference page:
The colors look the same on my machine.
Hmmm... Something is definitely not lining up for me. Here's what my preferences page looks like for debug options:
I did try with a new workspace and Oomph disabled, to no avail. "Restore Defaults" does nothing either.
After some further analysis, there is some sort of startup task that puts the following entry in newly created workspaces:
./.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs:8:org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND=255,255,0
Not sure where that comes from yet.
@PyvesB if you're comfortable with it & allowed, feel free to show a screenshot of your installed plugins list (Help > About Eclipse SDK... > Installation details). I'll try to help find the cause.
It does seem that Oomph is doing stuff at startup even though the preference recorder is disabled. I saw this in the startup logs:
Scope Type | User
-- | --
Disabled | false
Predecessors | /instance/org.eclipse.debug.ui/org.eclipse.debug.ui.outColor = 0,0,0 (User - User Preferences - org.eclipse.debug.ui)
Key | /instance/org.eclipse.debug.ui/org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND
Value | 255,255,0
Model Class | org.eclipse.oomph.setup.PreferenceTask
I've disabled this specific entry in Oomph, it now gives me the correct colours on new workspaces. đ
I'm still confused as to why I was not able to easily switch to the value provided by Modern Dark Theme. If I'm not mistaken, resetting default entries in "Colors and Fonts" switches to the values provided by CSS, but this is not the case for the Run/Debug preference window.
I've disabled this specific entry in Oomph, it now gives me the correct colours on new workspaces. +1
Glad to hear you fixed it :)
I'm still confused as to why I was not able to easily switch to the value provided by Modern Dark Theme. If I'm not mistaken, resetting default entries in "Colors and Fonts" switches to the values provided by CSS, but this is not the case for the Run/Debug preference window.
Might be worth making an upstream bug in platform.debug.ui? If you do so, CC me in it :)
I'm going to close this for now as I'm undecided about what the new debug colors should be right now.
If anyone finds the debug variable view colors still unpleasant to use, please reopen the bug and let me know :)
Hello!
Today was a debugging session with a colleague! We noticed that the Variables view suffers from a few problems:
Apart from that, the rest of the debugging session went fine, though I don't think I'll convince my colleague to move away from NetBeans today. đ