create-application.py --type=mobile namespace problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

create-application.py --type=mobile namespace problem

media
Hi Qooxdoo Team :-)

I have a problem with the "create-application.py" command.
I'm on 4.0.1 Mobile version.

Version 1 : works perfectly!
create-application.py --name=test --out=c:\mobile1 --type=mobile --namespace=test

Version 2 : has a problem with the Theming  
create-application.py --name=test --out=c:\mobile1 --type=mobile --namespace=test.nspace

I get the following message:
Application is unstyled due to missing SCSS to CSS compilation.
Please install Sass (http://sass-lang.com/) and run 'generate.py' in an OS shell.

I have installed Sass 3.3.0
cmd: Sass -v
Sass 3.3.0 (Maptastic Maple)

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: create-application.py --type=mobile namespace problem

Richard Sternagel
Hi media,

thanks, you spotted a bug! :)

When you look into your "config.json" there are two
important global let macro definitions:

"let" :
{
   ...
   "APPLICATION"  : "test.nspace",
   "APPLICATION_PATH" : "test/nspace",
   ...
}

Dots within namespaces are translated into slashes when
file system paths are concerned hence the differentiation.

The "compile-scss" and "watch-scss" jobs unfortunately use
${APPLICATION} instead of ${APPLICATION_PATH} in their local let
macro definitions. So you have to change those from:

"let":
{
   ...
   "APPLICATION_THEME_PATH"    : "source/theme/${APPLICATION}",
   "APPLICATION_RESOURCE_PATH" : "source/resource/${APPLICATION}"
   ...
}

into:

"let":
{
   ...
   "APPLICATION_THEME_PATH"    : "source/theme/${APPLICATION_PATH}",
   "APPLICATION_RESOURCE_PATH" : "source/resource/${APPLICATION_PATH}"
   ...
}

Here is the whole (fixed) file for reference:
https://github.com/qooxdoo/qooxdoo/blob/master/component/skeleton/mobile/config.tmpl.json

This is the commit which fixes the issue:
https://github.com/qooxdoo/qooxdoo/commit/2542f6dc5d5ae258cfbc39624462bbe0e5c5066b

Regards
Richard

------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Reply | Threaded
Open this post in threaded view
|

Re: create-application.py --type=mobile namespace problem

media
Thank you Richard!
That's working perfectly.