Skip to content

CSS Live Update not working anymore #3356

@ThomasH99

Description

@ThomasH99

As discussed in the comments (Jan/Feb 2021) here: https://www.codenameone.com/blog/live-css-update.html#comment-24398.

The live update stopped working some time ago, but works for a HelloWorld project. The css file is read correctly when I compile the app, here's the compile log:

JavaFX is loaded
Retina Scale: 2.0
Updating merge file /Users/user/NetBeansProjects/myapp/css/theme.css.merged
Input: /Users/user/NetBeansProjects/myapp/css/theme.css
Output: /Users/user/NetBeansProjects/myapp/src/theme.res
Acquiring lock on CSS checksums file /Users/user/NetBeansProjects/myapp/.cn1_css_checksums...
Lock obtained
File has not changed since last compile.
Releasing lock
CSS file successfully compiled.  /Users/user/NetBeansProjects/myapp/src/theme.res

When I modify and save the css file while the simulator is running, there is nothing at all displayed in the log.

Here's the codenameone_settings.properties as asked by Steve (I've deleted all info related to certificates and passwords):

android.playService.ads=true
codename1.android.keystoreAlias=myapp
codename1.arg.android.debug=false
codename1.arg.android.multidex=true
codename1.arg.android.release=true
codename1.arg.desktop.theme=iOS7Theme
codename1.arg.ios.application_exits=false
codename1.arg.ios.background_modes=fetch
codename1.arg.ios.enableBadgeClear=false
codename1.arg.ios.includePush=true
codename1.arg.ios.interface_orientation=UIInterfaceOrientationPortrait\:UIInterfaceOrientationPortraitUpsideDown\:UIInterfaceOrientationLandscapeLeft\:UIInterfaceOrientationLandscapeRight
codename1.arg.ios.multitasking=true
codename1.arg.ios.newStorageLocation=true
codename1.arg.ios.project_type=ios
codename1.arg.ios.statusbar_hidden=false
codename1.arg.ios.testFlight=true
codename1.arg.java.version=8
codename1.cssTheme=true
codename1.displayName=myapp
codename1.icon=icon.png
codename1.mainName=myapp
codename1.packageName=com.myapp.myapp
codename1.vendor=myapp
codename1.version=0.10
csswatcher.enabled=true
libVersion=201

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions