August 6, 2018 at 3:38 pm #595001
Recently I was debugging some Windows specific theme related issue here:
I noticed that when I try to run an Eclipse plugin from IDE, in the new runtime Eclipse window (created by run as -> Eclipse application) no Devstyle theme is present, even though preference for Devstyle plugin is visible.
This issue only happens in Eclipse Photon, works as expected on Eclipse Oxygen.
– Be on a Windows machine with a fresh Eclipse Photon installed with the latest darkest-dark theme and Plugin development environment plugin installed
– Have an Eclipse plugin’s source open in IDE (it can be any plugin, ex. Hello world sample plugin)
– Right click on project -> Run as -> Eclipse application
– Observe that in the new Eclipse window the Devstyle theme is not working and there is no welcome screen
All plugins should be loaded in the new Eclipse window that are present in the main Eclipse window including Devstyle theme.
It may be related to the following exceptions visible in the log:12345678910111213java.net.MalformedURLExceptionat java.net.URL.<init>(Unknown Source)at java.net.URL.<init>(Unknown Source)at java.net.URL.<init>(Unknown Source)at org.eclipse.e4.ui.css.core.impl.engine.AbstractCSSEngine.parseStyleSheet(AbstractCSSEngine.java:210)at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.setTheme(ThemeEngine.java:456)at org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.resetCurrentTheme(ThemeEngine.java:621)at com.genuitec.eclipse.theming.ui.internal.DevStyleThemeActivationTracker.applyCssForTargetTheme(DevStyleThemeActivationTracker.java:678)at com.genuitec.eclipse.theming.ui.internal.DevStyleThemeActivationTracker.handleEvent(DevStyleThemeActivationTracker.java:405)....Caused by: java.lang.NullPointerException
and123456java.lang.NoSuchFieldException: devstylePreferenceFilterat java.lang.Class.getDeclaredField(Unknown Source)at com.genuitec.eclipse.theming.ui.internal.DevStyleThemeActivationTracker.prepareOomphExclusions(DevStyleThemeActivationTracker.java:765)....
This issue makes finding theme related issues more difficult, but most likely not affect other users.
I’m not entirely sure, why it does not work during development but works when it is regularly installed to Photon.
Maybe during debugging plugin something starts with wrong run-level?
Eclipse: Photon 20180619-1200
Windows: 7 and 10
Devstyle: Latest (as of 2018.08.06)
ThanksAugust 7, 2018 at 2:46 am #595045
Thank you for the detailed steps to replicate the problem.
You should set the run level for
com.genuitec.eclipse.patchesin your launch configuration to
2to fix the problem.
Switch to the Plug-ins tab in your launch config window, set the Launch with to ‘plugins selected below only’ to view the plugins list, search for
com.genuitec.eclipse.patchesand set the Start Level to 2. Apply the changes and run it. Attached is the screenshot for your reference.
Hope this helps. Please let us know how it works for you.
Genuitec SupportAugust 7, 2018 at 11:03 am #595062
Thanks Swapna, it is working perfectly.August 8, 2018 at 2:47 am #595261
Glad that it works. Thank you for getting back to us.
Please let us know if you see any other issues.