krawaller / kranium

Brains for Titanium
http://www.kraniumjs.com
Other
103 stars 13 forks source link

Stylus not applied upon startup #21

Closed kenhkan closed 12 years ago

kenhkan commented 12 years ago

Stylus files seem not be autoloaded (even app.styl) when I run titanium.py run --platform=iphone on the command line. Saving the files would trigger an update, however. I know Kranium doesn't work with 1.8.0.1 at this point, so I wrote a bash script for people who need a solution right now. Note: it's time-based rather than triggered. It's just a patch for now.

Just discovered Kranium. Great job! I'll try to fix this at its root when I feel more comfortable with Kranium internals.

Titanium 1.8.0.1 Kranium commit 5d13cf9db834cdc25314cdb49696b4e1688ae3c7

kenhkan commented 12 years ago

Huh, apparently it's the same on Titanium 1.7.6. I'm not sure what's with this... but even with the auto-touching script, I still need to touch the Stylus file again to force a change on some styles within the same stylesheet (i.e. only some styles are applied at startup).

kenhkan commented 12 years ago

I thought it was specific to Stylus but apparently it's bug #4. I'm using the latest checkout 5d13cf9db834cdc25314cdb49696b4e1688ae3c7 but the bug is still there. Investigating but I'm going to close this issue since it's really #4.