1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    1
    Vote Rating
    0
    grachit is on a distinguished road

      0  

    Default Sencha Cmd v4.0.1.45 - Application name must be in the format of a valid JS variable

    Sencha Cmd v4.0.1.45 - Application name must be in the format of a valid JS variable


    I am using sencha CMD 4.0.1.45 to create sencha touch 2.3.1 app. I ran following commands to create app workspace:

    F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\sencha.exe generate app myapp ../myapp

    But getting following error:
    [ERR] Application name must be in the format of a valid javascript variable name
    [ERR] Invalid application name : myapp

    debug stack trace:

    F:\sencha_touch\Sencha\Sencha\touch-2.3.1>F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\sencha.exe --debug generate app myapp.js ..\myapp
    Sencha Cmd v4.0.1.45
    [DBG] Loading CommandProviders
    [DBG] Scanning extensions directory F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\cmd-cordova-packager for extensions
    [DBG] Scanning extensions directory F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\cmd-phonegap-packager for extensions
    [DBG] Scanning extensions directory F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\sencha-compass for extensions
    [DBG] Located F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\sencha-compass\sencha-compass.jar
    [DBG] loading manifest for jar F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\sencha-compass\sencha-compass.jar
    [DBG] get value lib/slf4j-api-1.6.6.jar lib/ant-1.8.4.jar lib/ant-launcher-1.8.4.jar for manifest class path
    [DBG] loading manifest for jar F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\sencha-compass\lib\slf4j-api-1.6.6.jar
    [DBG] loading manifest for jar F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\sencha-compass\lib\ant-1.8.4.jar
    [DBG] loading manifest for jar F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\sencha-compass\lib\ant-launcher-1.8.4.jar
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/sencha_touch/Sencha/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/sencha-compass.jar!/
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/sencha_touch/Sencha/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/lib/slf4j-api-1.6.6.jar!/
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/sencha_touch/Sencha/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/lib/ant-1.8.4.jar!/
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/sencha_touch/Sencha/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/lib/ant-launcher-1.8.4.jar!/
    [DBG] Scanning for plugins in folder: F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\cmd-cordova-packager
    [DBG] Loading plugin: F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\cmd-cordova-packager\cmd-cordova-packager.plugin.xml
    [DBG] Scanning for plugins in folder: F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\cmd-phonegap-packager
    [DBG] Loading plugin: F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\cmd-phonegap-packager\cmd-phonegap-packager.plugin.xml
    [DBG] Scanning for plugins in folder: F:\sencha_touch\Sencha\Sencha\Cmd\4.0.1.45\extensions\sencha-compass
    [ERR] Application name must be in the format of a valid javascript variable name
    [ERR] Invalid application name : myapp.js
    at com.sencha.command.generator.GeneratorCommands$AppCommand.validateAppName(GeneratorCommands.java:311)
    at com.sencha.command.generator.GeneratorCommands$AppCommand.execute(GeneratorCommands.java:232)
    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:42)
    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:80)
    at com.sencha.command.Sencha.main(Sencha.java:148)

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,882
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    Drop the .exe and try
    Code:
    sencha -sdk /path/to/sdk generate app myapp ../myapp
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    4
    Vote Rating
    0
    MacZed will become famous soon enough

      0  

    Exclamation Application name must be in the format of a valis JS variable

    Application name must be in the format of a valis JS variable


    Sencha Cmd 4.0.2.67
    Sencha Sdk 4.2.1.883

    S.O. Mac OsX 10.8.5

    Running:
    sencha -s /Users/me/Development/ext-4.2.1.883 generate app Tryme /Users/me/trysenchacmd

    Result:

    Sencha Cmd v4.0.2.67
    [ERR] Application name must be in the format of a valid javascript variable name
    [ERR] Invalid application name : Tryme

  4. #4
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,882
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    Sounds like this issue: http://www.sencha.com/forum/showthread.php?280376
    Try installing the latest version of jdk and rhino.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar