CodenameOne icon indicating copy to clipboard operation
CodenameOne copied to clipboard

Hot reload not working in netbeans 8.2 or 15 using java 1.8.92 or jdk-11.0.16.1_1

Open DurankGts opened this issue 3 years ago • 6 comments

When I press Edit from the simulator the Uiid doesn't update in the theme.res. Why? the hot reload just work using css ?

image

any support please?

DurankGts avatar Sep 21 '22 14:09 DurankGts

Can someone provide any support about this issue please?

DurankGts avatar Sep 27 '22 14:09 DurankGts

Since this is happening with Ant and our focus is on CSS I'm not sure if this will get much of a priority.

shai-almog avatar Sep 29 '22 11:09 shai-almog

this means that this option just work using css?

could you tell me what the means this using maven project OpenJDK 11 and netbeans 15?

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ forcesos-javase --- [INFO] Building jar: F:\data_kdp\programs\CodenameOne\ws_codenameone\ForceSOS_mvn _central\javase\target\forcesos-javase-1.0-SNAPSHOT.jar [INFO] [INFO] <<< codenameone-maven-plugin:7.0.82:build (build-desktop-macosx) < package @ forcesos-javase <<< [INFO] [INFO] [INFO] --- codenameone-maven-plugin:7.0.82:build (build-desktop-macosx) @ forcesos-javase --- [INFO] [INFO] --- exec-maven-plugin:3.0.0:exec (run-in-simulator) @ forcesos-javase --- Adding CEF to classpath Retina Scale: 1.0 Hotswap Agent not detected. To enable enhanced live class reloading feature, run with DCEVM JDK and add -XX:HotswapAgent=core to the VM options

the option hot reload don't appear in Simulator

image

but using netbeans 8.2 the hot reload is enable using jdk 1.8.192

could you tell me the cause?

DurankGts avatar Sep 29 '22 13:09 DurankGts

The "Hot reload" feature is actually different than the theme reloading feature. "Hot reload" is used to reload the app when changes are made to the Java or Kotlin source code.

The theme editor changes should be applied automatically after you click "OK" in the "Edit" dialog window, and the window closes. If they do not get applied, then it is likely that the component has some styles added to it explicitly, using getStyle().setXXX() which override the styles you set on the theme UIID. One way to verify that this is the case is to restart the simulator and see if your changes are applied then. if your changes are not applied even then, then it is probably this case - the particular style is overridden on the component. If your changes are applied on restart, then it could be a different problem.

shannah avatar Oct 15 '22 15:10 shannah

I always have restarted the simulator to apply my changes in the theme.res. Editting directly from the simulator an pressing ok button doesn't work properly

DurankGts avatar Oct 17 '22 14:10 DurankGts

my question is. Ant structure project support this feature in simulator?

DurankGts avatar Oct 17 '22 14:10 DurankGts