Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DurankGts opened this issue Sep 21, 2022 · 6 comments

Comments

@DurankGts
Copy link
Contributor

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
Copy link
Contributor Author

Can someone provide any support about this issue please?

@shai-almog
Copy link
Collaborator

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

@DurankGts
Copy link
Contributor Author

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?

@shannah
Copy link
Collaborator

shannah commented Oct 15, 2022

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.

@DurankGts
Copy link
Contributor Author

DurankGts commented Oct 17, 2022

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants