Results 1 to 3 of 3

Thread: Fashion compil error

  1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    305
    Answers
    4
    Vote Rating
    2
      0  

    Default Answered: Fashion compil error

    Hello,

    When i start Sencha Architect and select an app, or when i restart A p p w a t c h, i'm facing this error :

    Code:
    [LOG] Fashion build starting for path\to\my\app\build\temp\development\My_app\sass\My_app-all.scss
    
    [LOG] Build error for path\to\my\app\build\temp\development\My_app\sass\My_app-all.scss
    
    [LOG] Fashion Error : extjs_text_field_ui__mix is not defined :
    
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExBuild: Fashion build exited with code : 1
    
    [ERR] at org.apache.tools.ant.dispatch.Disp
    [ERR] atchUtils.execute(DispatchUtils.java:106)
    
    [ERR]
    
    [ERR] Total time: 13 seconds
    
    Exception in thread "Thread-38" com.sencha.exceptions.BasicException: com.sencha.exceptions.ExAnt:
    
    ...
    I don't find anywhere this "extjs_text_field_ui__mix".

    Any idea ?




    (need to put space between letters for A p p w a t c h, otherwise there is this error message when posting : Post denied. New posts are limited by number of URLs it may contain and checked if it doesn't contain forbidden words.)

  2. Ok, i've found the mistake.

    I have a form with number field.
    I want to apply a custom style to this field.
    In my app in Sencha Architect :

    1. I put this config to the number field
    Code:
    fieldCls : x-form-field my_custom_cls
    2. I add a css Resources : packages/local/theme-triton-my_app/sass/src/Custom.scss
    Code:
    .my_custom_cls{
        color: #000000;
        text-align: left;
        font-weight: bold;
        font-size: 25px;
        padding: 0px 0px 0px 5px;
        background-color: #EBDEC1;
    }
    3. When saving and/or compiling my app, this file is created : packages/local/theme-triton-my_app/sass/var/form/field/Number.scss
    Code:
    @include extjs-text-field-ui (
        $ui: 'my_custom_cls',
        $ui-font-size: 25px,
        $ui-font-weight: bold,
        $ui-color: #000000,
        $ui-padding: 0px 0px 0px 5px,
        $ui-background-color: #EBDEC1
    );
    4. When I come back to this config for the number field
    Code:
    fieldCls : x-form-field
    all is OK


    Link with this post : impossible to apply custom css to number field : https://www.sencha.com/forum/showthread.php?454133

  3. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    305
    Answers
    4
    Vote Rating
    2
      0  

    Default

    Ok, i've found the mistake.

    I have a form with number field.
    I want to apply a custom style to this field.
    In my app in Sencha Architect :

    1. I put this config to the number field
    Code:
    fieldCls : x-form-field my_custom_cls
    2. I add a css Resources : packages/local/theme-triton-my_app/sass/src/Custom.scss
    Code:
    .my_custom_cls{
        color: #000000;
        text-align: left;
        font-weight: bold;
        font-size: 25px;
        padding: 0px 0px 0px 5px;
        background-color: #EBDEC1;
    }
    3. When saving and/or compiling my app, this file is created : packages/local/theme-triton-my_app/sass/var/form/field/Number.scss
    Code:
    @include extjs-text-field-ui (
        $ui: 'my_custom_cls',
        $ui-font-size: 25px,
        $ui-font-weight: bold,
        $ui-color: #000000,
        $ui-padding: 0px 0px 0px 5px,
        $ui-background-color: #EBDEC1
    );
    4. When I come back to this config for the number field
    Code:
    fieldCls : x-form-field
    all is OK


    Link with this post : impossible to apply custom css to number field : https://www.sencha.com/forum/showthread.php?454133

  4. #3
    Sencha User
    Join Date
    Dec 2008
    Location
    France
    Posts
    305
    Answers
    4
    Vote Rating
    2
      0  

    Default

    Very strange....

    This morning, i open again my app with sencha Architect.
    And you know what ?
    My custom css for number field is appearing well !?!?!?

    So, here is how it works :
    the numberfield config "fieldCls" is set to "my_custom_cls".

Similar Threads

  1. Replies: 4
    Last Post: 7 Jul 2017, 8:58 AM
  2. [FIXED] Bug after Upgrade (6.1.2.15) : fashion
    By Psychokrameur in forum Sencha Cmd
    Replies: 8
    Last Post: 31 May 2016, 8:12 AM
  3. Replies: 1
    Last Post: 22 May 2016, 4:30 AM
  4. Fashion not possible when JEE app with web.xml
    By tjstuart in forum Sencha Cmd
    Replies: 5
    Last Post: 8 Dec 2015, 6:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •