1. #1
    Sencha User
    Join Date
    Dec 2013
    Posts
    7
    Vote Rating
    0
    NiceFall is on a distinguished road

      0  

    Default Package build failed for UI extension

    Package build failed for UI extension


    REQUIRED INFORMATION

    Sencha Cmd version(s) tested:
    • Sencha Cmd v4.0.1.45
    Operating System:
    • OSX 10.9
    Framework used:
    • Sencha Architect 3.0.0
    • Sencha Touch 2.3.1
    Description:
    I've made an UI extension for Architect 3.
    I can use the extension inside architect, but I must include the extension package in app.js to build my app with my extension.
    The app doesn't build since I don't build the extension, but building the package give me an error:

    Diagnostic Output:

    Code:
    Sencha Cmd v4.0.1.45
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] init-package-plugin:
    [INF] 
    [INF] package-build:
    [INF] 
    [INF] -before-init-local:
    [INF] 
    [INF] -init-local:
    [INF] 
    [INF] -after-init-local:
    [INF] 
    [INF] init-local:
    [INF] 
    [INF] find-cmd-in-path:
    [INF] 
    [INF] find-cmd-in-environment:
    [INF] 
    [INF] find-cmd-in-shell:
    [INF] 
    [INF] init-cmd:
    [INF]      [echo] Using Sencha Cmd from /Users/davide/bin/Sencha/Cmd/4.0.1.45 for /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build.xml
    [INF] 
    [INF] -before-init:
    [INF] 
    [INF] -init:
    [INF] 
    [INF] apply-version:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [WRN] Specified property file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/.sencha/package/production.properties does not exist
    [INF] 
    [INF] -after-init:
    [INF] 
    [INF] -before-init-defaults:
    [INF] 
    [INF] -init-defaults:
    [INF] 
    [INF] -after-init-defaults:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-build:
    [INF] 
    [INF] js:
    [INF] 
    [INF] -before-js:
    [INF] 
    [INF] -init:
    [INF] 
    [INF] -init-compiler:
    [INF] 
    [INF] -init-compile-js:
    [INF] 
    [INF] -compile-js-debug:
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/touch/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/overrides
    [INF] Concatenating output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/NicePad-debug.js
    [INF] 
    [INF] -compile-js-non-debug:
    [INF] Compressing data with YuiJavascriptCompressor
    [INF] Concatenating output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/NicePad.js
    [INF] 
    [INF] -js:
    [INF] 
    [INF] -after-js:
    [INF] 
    [INF] inherit-resources:
    [INF] 
    [INF] -before-inherit-resources:
    [INF] 
    [INF] -inherit-resources:
    [INF] 
    [INF] -after-inherit-resources:
    [INF] 
    [INF] copy-resources:
    [INF] 
    [INF] -before-copy-resources:
    [INF] 
    [INF] -copy-resources:
    [INF]      [echo] Merging resources from current package /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/resources
    [INF]      [copy] Copying 1 file to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/resources
    [INF] 
    [INF] -after-copy-resources:
    [INF] 
    [INF] sass:
    [INF] 
    [INF] -before-sass:
    [INF] 
    [INF] -init-sass-compiler:
    [INF] 
    [INF] -compile-sass-rtl:
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/touch/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/overrides
    [INF] writing sass content to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/NicePad-all-rtl-debug.scss
    [INF] 
    [INF] -compile-sass-ltr:
    [INF] writing sass content to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/NicePad-all-debug.scss
    [INF] 
    [INF] -compile-sass:
    [INF] 
    [INF] -compass-compile:
    [INF] executing compass using system installed ruby runtime
    identical resources/NicePad-all-debug.css 
    identical resources/NicePad-all-rtl-debug.css 
    [INF] 
    [INF] -compile-css:
    [INF] srcfile: /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/resources/NicePad-all-debug.css (32 bytes)
    [INF] outfile: /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/resources/NicePad-all.css
    [INF] Compressed size 0 bytes. Saved 32 bytes (100 %)
    [INF] srcfile: /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/resources/NicePad-all-rtl-debug.css (32 bytes)
    [INF] outfile: /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/resources/NicePad-all-rtl.css
    [INF] Compressed size 0 bytes. Saved 32 bytes (100 %)
    [INF] 
    [INF] -sass:
    [INF] 
    [INF] -after-sass:
    [INF] 
    [INF] slice:
    [INF] 
    [INF] -before-slice:
    [INF] 
    [INF] -init:
    [INF] 
    [INF] -init-compiler:
    [INF] 
    [INF] -generate-slicer-bootstrap:
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/touch/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/overrides
    [INF] Appending concatenated output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/sass/example/bootstrap.js
    [INF] Appending concatenated output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/sass/example/bootstrap.js
    [INF] Appending concatenated output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/sass/example/bootstrap.js
    [INF] Appending concatenated output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/sass/example/bootstrap.js
    [INF] 
    [INF] -update-slicer-css:
    [INF] 
    [INF] -capture-theme-image:
    [INF]      [echo] Capture theme image to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/build/theme-capture.png
    [INF] Capturing theme image
    [INF] loading page /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/sass/example/theme.html
    == Unhandled Error ==
    ReferenceError: Can'''t find variable: Ext
    
      file:////Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/sass/example/bootstrap.js:7
    
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExProcess: phantomjs process exited with code 2
    [ERR] 
    [ERR] Total time: 25 seconds
    [ERR] The following error occurred while executing this line:
    /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/.sencha/package/build-impl.xml:203: The following error occurred while executing this line:
    /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/NicePad/.sencha/package/slice-impl.xml:81: com.sencha.exceptions.ExProcess: phantomjs process exited with code 2
    Steps to reproduce the problem:

    Code:
    [my_package_dir]$ sencha package build
    HELPFUL INFORMATION

    Also building your example "ext-easy-button" (upgraded to 4.0.1.45) fails:

    Code:
    Sencha Cmd v4.0.1.45
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] init-package-plugin:
    [INF] 
    [INF] package-build:
    [INF] 
    [INF] -before-init-local:
    [INF] 
    [INF] -init-local:
    [INF] 
    [INF] -after-init-local:
    [INF] 
    [INF] init-local:
    [INF] 
    [INF] find-cmd-in-path:
    [INF] 
    [INF] find-cmd-in-environment:
    [INF] 
    [INF] find-cmd-in-shell:
    [INF] 
    [INF] init-cmd:
    [INF]      [echo] Using Sencha Cmd from /Users/davide/bin/Sencha/Cmd/4.0.1.45 for /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/build.xml
    [INF] 
    [INF] -before-init:
    [INF] 
    [INF] -init:
    [INF] 
    [INF] apply-version:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [WRN] Specified property file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/.sencha/package/production.properties does not exist
    [INF] 
    [INF] -after-init:
    [INF] 
    [INF] -before-init-defaults:
    [INF] 
    [INF] -init-defaults:
    [INF] 
    [INF] -after-init-defaults:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-build:
    [INF] 
    [INF] js:
    [INF] 
    [INF] -before-js:
    [INF] 
    [INF] -init:
    [INF] 
    [INF] -init-compiler:
    [INF] 
    [INF] -init-compile-js:
    [INF] 
    [INF] -compile-js-debug:
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-base/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-base/overrides
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neutral/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neutral/overrides
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neptune/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neptune/overrides
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/overrides
    [INF] Concatenating output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/build/ext-easy-button-debug.js
    [INF] 
    [INF] -compile-js-non-debug:
    [INF] Compressing data with YuiJavascriptCompressor
    [INF] Concatenating output to file /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/build/ext-easy-button.js
    [INF] 
    [INF] -js:
    [INF] 
    [INF] -after-js:
    [INF] 
    [INF] inherit-resources:
    [INF] 
    [INF] -before-inherit-resources:
    [INF] 
    [INF] -inherit-resources:
    [INF] 
    [INF] -after-inherit-resources:
    [INF] 
    [INF] copy-resources:
    [INF] 
    [INF] -before-copy-resources:
    [INF] 
    [INF] -copy-resources:
    [INF]      [echo] Merging resources from current package /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/resources
    [INF]      [copy] Copying 2 files to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/build/resources
    [INF] 
    [INF] -after-copy-resources:
    [INF] 
    [INF] sass:
    [INF] 
    [INF] -before-sass:
    [INF] 
    [INF] -init-sass-compiler:
    [INF] 
    [INF] -compile-sass-rtl:
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-base/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-base/overrides
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neutral/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neutral/overrides
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neptune/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/ext/packages/ext-theme-neptune/overrides
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/src
    [INF] Loading classpath entry /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/overrides
    [INF] writing sass content to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/build/ext-easy-button-all-rtl-debug.scss
    [INF] writing sass content to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/build/config.rb
    [INF] 
    [INF] -compile-sass-ltr:
    [INF] writing sass content to /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/build/ext-easy-button-all-debug.scss
    [INF] 
    [INF] -compile-sass:
    [INF] 
    [INF] -compass-compile:
    [INF] executing compass using system installed ruby runtime
       remove .sass-cache/ 
       remove resources/ext-easy-button-all-debug.css 
       remove resources/ext-easy-button-all-rtl-debug.css 
        error ext-easy-button-all-debug.scss (Line 6 of ../sass/var/button/Easy.scss: Undefined variable: "$button-default-background-color".)
       create resources/ext-easy-button-all-debug.css 
        error ext-easy-button-all-rtl-debug.scss (Line 6 of ../sass/var/button/Easy.scss: Undefined variable: "$button-default-background-color".)
       create resources/ext-easy-button-all-rtl-debug.css 
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
    [ERR] 
    [ERR] Total time: 18 seconds
    [ERR] The following error occurred while executing this line:
    /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/.sencha/package/build-impl.xml:184: The following error occurred while executing this line:
    /Users/davide/Documents/Lavori/NiceFall/sencha-workspace/packages/ext-easy-button/.sencha/package/sass-impl.xml:95: com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
    My UI extension is attached

    The package is in the directory:
    [my-workspace]/packages/

    What can I do to build the package? Is there something I've missed in package?
    Thanks
    Attached Files
    Last edited by NiceFall; 13 Dec 2013 at 11:10 AM. Reason: Fixed text and added source code

  2. #2
    Sencha User
    Join Date
    Dec 2013
    Posts
    7
    Vote Rating
    0
    NiceFall is on a distinguished road

      0  

    Default


    I've found in this documentation http://docs.sencha.com/extjs/4.2.1/#...kage_authoring an util answer:
    Code:
    NOTE: In older versions of Sencha Cmd, sencha package build may fail if you have Sass that depends on the theme. To workaround this limitation, you can set the skip.sass and skip.slice properties in ".sencha/package/sencha.cfg". The package will be usable in an application because the theme will be included in sencha app build.
    After a brief search I've added in sencha.cfg the following lines:
    Code:
    skip.sass=true
    skip.slice=true
    After that the package has built.
    It seems that this bug is not only in older version of Sencha Cmd.