codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.

Home Page:https://www.codenameone.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

DurankGts opened this issue · 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?

Can someone provide any support about this issue please?

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

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?

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.

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

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