1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    3
    Answers
    1
    Vote Rating
    1
    PhearZ is on a distinguished road

      0  

    Default Answered: Sencha Build Error

    Answered: Sencha Build Error


    Having a issue after upgrading to the new sencha cmd. The log is as follows

    Sencha Cmd v3.1.2.342
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] cmd-root-plugin.init-properties:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] app-build-impl:
    [INF]
    [INF] -before-init-local:
    [INF]
    [INF] -init-local:
    [INF]
    [INF] -after-init-local:
    [INF]
    [INF] init-local:
    [INF]
    [INF] find-cmd:
    [INF]
    [INF] -before-init:
    [INF]
    [INF] -init:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [INF] [x-load-properties] Loading optional properties file /opt/devworkspace/usave-sencha-mobile-app/.sencha/app/testing.properties
    [INF] [x-load-properties] Loading required properties file /opt/devworkspace/usave-sencha-mobile-app/.sencha/app/build.properties
    [INF]
    [INF] -after-init:
    [INF]
    [INF] -before-init-default:
    [INF]
    [INF] -init-default:
    [INF]
    [INF] -after-init-default:
    [INF]
    [INF] init:
    [INF]
    [INF] -before-build:
    [INF]
    [INF] sass:
    [INF]
    [INF] -before-sass:
    [INF]
    [INF] -sass:
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css
    [INF]
    [INF] -after-sass:
    [INF]
    [INF] page:
    [INF]
    [INF] -before-page:
    [INF]
    [INF] -page:
    [INF] building application
    [INF] Deploying your application to /opt/devworkspace/usave-sencha-mobile-app/build/uSave/testing
    [INF] Copied /opt/devworkspace/usave-sencha-mobile-app/app.js to /opt/devworkspace/usave-sencha-mobile-app/build/uSave/testing/app.js
    [INF] Copied /opt/devworkspace/usave-sencha-mobile-app/resources/css/app.css to /opt/devworkspace/usave-sencha-mobile-app/build/uSave/testing/resources/css/app.css
    [INF] Copied /opt/devworkspace/usave-sencha-mobile-app/lib/fullcalendar/fullcalendar.css to /opt/devworkspace/usave-sencha-mobile-app/build/uSave/testing/lib/fullcalendar/fullcalendar.css
    [INF] Copied /opt/devworkspace/usave-sencha-mobile-app/resources/images
    [INF] Copied /opt/devworkspace/usave-sencha-mobile-app/resources/icons
    [INF] Copied /opt/devworkspace/usave-sencha-mobile-app/resources/startup
    [INF] Resolving your application dependencies (file:////opt/devworkspace/usave-sencha-mobile-app/index.html)
    [INF] Compiling app.js and dependencies
    [INF] Loading classpath entry /opt/devworkspace/usave-sencha-mobile-app/touch/src
    [INF] Loading classpath entry /opt/devworkspace/usave-sencha-mobile-app/app.js
    [INF] Loading classpath entry /opt/devworkspace/usave-sencha-mobile-app/app
    [INF] Loading classpath entry /opt/devworkspace/usave-sencha-mobile-app/lib
    [ERR] def was null
    [ERR] failed to find meta class definition for name widget.store.scheduledItems.AdBannerStore
    [ERR] def was null
    [ERR] failed to find meta class definition for name widget.view.adBanner.adBannerToolbar
    [ERR] def was null
    [ERR] failed to find meta class definition for name widget.view.adBanner.cardSlideShow.CardSlideshow
    [ERR] def was null
    [ERR] failed to find meta class definition for name widget.view.adBanner.cardSlideShow.DefaultImage
    [ERR] def was null
    [ERR] failed to find meta class definition for name widget.view.adBanner.cardSlideShow.Image
    [ERR] C2008: Requirement had no matching files (widget.store.scheduledItems.AdBannerStore) -- unknown-file:-1
    [ERR] The following error occurred while executing this line:
    /opt/devworkspace/usave-sencha-mobile-app/.sencha/app/build-impl.xml:165: The following error occurred while executing this line:
    /opt/devworkspace/usave-sencha-mobile-app/.sencha/app/build-impl.xml:158: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: Failed to find any files for /opt/devworkspace/usave-sencha-mobile-app/app/controller/adBanner/adBannerToolbarCtr.js::MVC::widget.store.scheduledItems.AdBannerStore (x-app-build#290)
    runAppBuild (x-app-build:290)
    [anonymous] (x-app-build:566)
    x_app_build (x-app-build:564)
    <script> (anonymous:1)

  2. Didn't find the reason for the error but removing the views: config from the controller to the app.js file seems to have resolved the issue. Maybe something to do with meta data although I did preform several app refresh's during this debug. Resolving the namespace to widget.* instead of <app name>.*

    Fix-
    1. Move view configs from controllers to app.js
    2. sencha app refresh
    3. sencha app build

  3. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Answers
    132
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    Did you add those file paths to your app.json under the "js"? It looks like it can't find a file in your app directory

  4. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    3
    Answers
    1
    Vote Rating
    1
    PhearZ is on a distinguished road

      0  

    Default No external loaders

    No external loaders


    I'm using the app.js Stores, Controllers, Views options. The build was working fine before the upgrade to sencha cmd 3.1.2

  5. #4
    Sencha User
    Join Date
    Feb 2013
    Posts
    3
    Answers
    1
    Vote Rating
    1
    PhearZ is on a distinguished road

      1  

    Default Fixed

    Fixed


    Didn't find the reason for the error but removing the views: config from the controller to the app.js file seems to have resolved the issue. Maybe something to do with meta data although I did preform several app refresh's during this debug. Resolving the namespace to widget.* instead of <app name>.*

    Fix-
    1. Move view configs from controllers to app.js
    2. sencha app refresh
    3. sencha app build

Thread Participants: 1

Tags for this Thread