Results 1 to 2 of 2

Thread: Sencha CMD generate theme error

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    23
    Answers
    2

    Default Answered: Sencha CMD generate theme error

    Hi, I am trying to generate custom theme (http://docs.sencha.com/extjs/5.1/cor...s/theming.html) by doing the following:


    sencha -sdk D:\ext-6.0.0 generate app ThemeDemoApp theme-demo-app
    cd theme-demo-app
    sencha generate theme my-custom-theme

    Then I get the following error:

    Code:
    Sencha Cmd v6.0.0.92
    [DBG] Loading configuration from D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app
    [DBG] Scanning for extensions in C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions
    [DBG] Loaded extension: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\cmd-packager
    [DBG] Loaded extension: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-compass
    [DBG] Loaded extension: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-fashion
    [DBG] Loaded extension: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-licenses
    [DBG] Loaded extension: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-service
    [DBG] creating workspace for D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app
    [DBG] Framework dependency detected
    [DBG] Loading framework ext from D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] attempting to load framework from D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] creating package environment for package ext : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] Detecting framework plugin
    [DBG] Resolving framework config overrides for 'ext'
    [DBG] Detected framework version 6.0.0.227
    [DBG] Detected framework override at 'C:\SenchaCMD\Sencha\Cmd\6.0.0.92\plugins\ext\current'
    [DBG] using framework plugin located at 'C:\SenchaCMD\Sencha\Cmd\6.0.0.92\plugins\ext\current'
    [DBG] Loaded framework from D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] Loading CommandProviders
    [DBG] Scanning extensions directory C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\cmd-packager for extensions
    [DBG] Scanning extensions directory C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-compass for extensions
    [DBG] Located C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-compass\sencha-compass.jar
    [DBG] loading manifest for jar C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-compass\sencha-compass.jar
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/SenchaCMD/Sencha/Cmd/6.0.0.92/extensions/sencha-compass/sencha-compass.jar!/
    [DBG] Scanning extensions directory C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-fashion for extensions
    [DBG] Located C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-fashion\sencha-fashion.jar
    [DBG] loading manifest for jar C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-fashion\sencha-fashion.jar
    [DBG] Add extension classpath entry 'sencha-fashion' : jar:file:/C:/SenchaCMD/Sencha/Cmd/6.0.0.92/extensions/sencha-fashion/sencha-fashion.jar!/
    [DBG] Scanning extensions directory C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-licenses for extensions
    [DBG] Scanning extensions directory C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-service for extensions
    [DBG] Located C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-service\sencha-service.jar
    [DBG] loading manifest for jar C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-service\sencha-service.jar
    [DBG] Add extension classpath entry 'sencha-service' : jar:file:/C:/SenchaCMD/Sencha/Cmd/6.0.0.92/extensions/sencha-service/sencha-service.jar!/
    [DBG] adding service server extension commands for sencha
    [DBG] extending 'sencha' with command 'com.sencha.command.rpc.SerivceCommands'
    [DBG] Scanning for plugins in folder: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\cmd-packager
    [DBG] Loading plugin: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\cmd-packager\cmd-packager.plugin.xml
    [DBG] Scanning for plugins in folder: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-compass
    [DBG] Scanning for plugins in folder: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-fashion
    [DBG] Loading plugin: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-fashion\fashion.plugin.xml
    [DBG] Scanning for plugins in folder: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-licenses
    [DBG] Loading plugin: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-licenses\sencha-licenses.plugin.xml
    [DBG] Scanning for plugins in folder: C:\SenchaCMD\Sencha\Cmd\6.0.0.92\extensions\sencha-service
    [DBG] adding service server extension commands for sencha.generate
    [DBG] checking arg my-custom-theme for framework match ext
    [DBG] checking arg my-custom-theme for framework match touch
    [DBG] checking arg my-custom-theme for toolkit match classic
    [DBG] checking arg my-custom-theme for toolkit match modern
    [DBG] BaseNamePathCommand => args.path : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app
    [DBG] creating workspace for D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app
    [DBG] Framework dependency detected
    [DBG] Loading framework ext from D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] attempting to load framework from D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] creating package environment for package ext : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] Detecting framework plugin
    [DBG] Resolving framework config overrides for 'ext'
    [DBG] Detected framework version 6.0.0.227
    [DBG] Detected framework override at 'C:\SenchaCMD\Sencha\Cmd\6.0.0.92\plugins\ext\current'
    [DBG] using framework plugin located at 'C:\SenchaCMD\Sencha\Cmd\6.0.0.92\plugins\ext\current'
    [DBG] Loaded framework from D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] invoking generate-theme on AppEnvironment => D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app
    [DBG] scanning directory D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app/ext for packages
    [DBG] Found workspace package [email protected]
    [DBG] extract path : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext
    [DBG] scanning directory D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext/packages/ for packages
    [DBG] Found workspace package [email protected]
    [DBG] extract path : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext\packages\amf
    [DBG] Found workspace package [email protected]
    [DBG] extract path : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext\packages\charts
    [DBG] Found workspace package [email protected]
    [DBG] extract path : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext\packages\core
    [DBG] Found workspace package [email protected]
    [DBG] extract path : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext\packages\soap
    [DBG] Found workspace package [email protected]
    [DBG] extract path : D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app\ext\packages\ux
    [DBG] scanning directory D:\sandbox\GitHub\ExtJSCustomTheme\theme-demo-app/packages for packages
    [DBG] initializing remote directory C:\SenchaCMD\Sencha\Cmd\repo\.sencha\repo\remotes\sencha
    [DBG] initializing remote directory C:\SenchaCMD\Sencha\Cmd\repo\.sencha\repo\remotes\sencha-beta
    [DBG] Loading plugin: C:\SenchaCMD\Sencha\Cmd\repo\.sencha\repo\plugin.xml
    [WRN] Failed to resolve package theme-neptune
    [DBG] Including framework package ext for build
    [ERR] Theme "theme-neptune" not found
    [ERR] Required package "theme-neptune" not found
         at com.sencha.command.environment.AppOrPackageEnvironment.getRequires(AppOrPackageEnvironment.java:247)
         at com.sencha.command.environment.AppOrPackageEnvironment.getRequires(AppOrPackageEnvironment.java:105)
         at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackages(AppOrPackageEnvironment.java:260)
         at com.sencha.command.environment.AppOrPackageEnvironment.getRequiredPackages(AppOrPackageEnvironment.java:254)
         at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:659)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:96)
         at com.sencha.command.generator.GeneratorCommands$ThemeCommand.execute(GeneratorCommands.java:924)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
         at com.sencha.cli.Command.dispatch(Command.java:43)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.dispatch(BasePluginCommands.java:188)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:64)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:143)
    Can anyone point out where am I doing it wrong? thanks.

  2. Fixed it by following suggestion from this post

    https://www.sencha.com/forum/showthr...=1#post1095857

    By Adding

    Code:
    "toolkit": "classic", // or modern
    to the app.json file manually

  3. #2
    Sencha User
    Join Date
    Oct 2010
    Posts
    23
    Answers
    2

    Default

    Fixed it by following suggestion from this post

    https://www.sencha.com/forum/showthr...=1#post1095857

    By Adding

    Code:
    "toolkit": "classic", // or modern
    to the app.json file manually
    Last edited by andersonv1; 13 Apr 2015 at 1:36 PM. Reason: fix URL

Similar Threads

  1. Error when using sencha generate form
    By serendipitic in forum Ext 5: Q&A
    Replies: 1
    Last Post: 25 Jun 2014, 7:36 AM
  2. Sencha Cmd generate app error
    By ernst96 in forum Sencha Cmd
    Replies: 21
    Last Post: 28 Oct 2013, 11:35 AM
  3. sencha generate theme, how to ?!?
    By koblass in forum Sencha Cmd
    Replies: 4
    Last Post: 20 Feb 2013, 3:09 AM
  4. Replies: 2
    Last Post: 6 Nov 2012, 3:03 AM
  5. Replies: 4
    Last Post: 8 Oct 2012, 5:38 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
  •