1. #1
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    39
    Vote Rating
    1
    cassinisolutions is on a distinguished road

      0  

    Default Bug on relative when generating an app

    Bug on relative when generating an app


    Hello,

    I'm using Sencha Cmd v3.1.1.274, on Linux

    I can create a workspace in a directory, but not an app in this same directory.

    Here is the code to test:
    Code:
    mkdir -p Resources/public/js/
    sencha generate workspace --path Resources/public/js/
    sencha -sdk /path/to/touch-2.2.0/ generate app --name ProjectName --path Resources/public/js/
    It returns on last command, the error:
    Code:
    [ERR] The target folder is already configured as a workspace: /home/jerome/projects/cassini/SENCHA/TamMobileTEST/ggg/Resources/public/js
    [ERR] Cannot generate app to existing workspace root.
    The bug, minor, seems to come from normalizing the path given to generate app.
    While generate workspace normalizes it the good way, generate app doesn't

    The workaround for now is to prepend ./ before Resources
    The following command will work:
    Code:
    sencha -sdk /path/to/touch-2.2.0/ generate app --name ProjectName --path ./Resources/public/js/

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    39
    Vote Rating
    1
    cassinisolutions is on a distinguished road

      0  

    Default


    Hum indeed, I've other problems, this command doesn't work either, despite the absolute path used:
    this is really a big problem to me, as a workaround, I have to chdir first to the good place (/absolute/path/), and give to `generate app`a relative path (that must begins with ./, so: ./Resources/public/js)

    Code:
    sencha -sdk /path/to/touch-2.2.0/ generate app --name ProjectName --path /absolute/path/Resources/public/js
    
    [ERR] The target folder is already configured as a workspace: /absolute/path/Resources/public/js
    [ERR] Cannot generate app to existing workspace root.
    I've also this strange problem:
    Code:
    sencha -sdk /path/to/framework/touch-2.2.0/ generate app --name ProjectName  /absolute/path/Resources/public/js
    
    
    Sencha Cmd v3.1.1.274
    [ERR] sencha.generate.app requires these parameters:
        path (The path for the generated application)
    Thanks for your feedback on those problems of params given to SenchaCmd

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2013
    Posts
    39
    Vote Rating
    1
    cassinisolutions is on a distinguished road

      0  

    Default


    Well the generate app, generates first a workspace, so no need to generate a workspace and an app afterwards in the same directory

    As a result, those following commands, which work, should be forbidden I guess (last one should throw an error):

    Code:
    mkdir -p ./Resources/public/js/
    sencha generate workspace --path ./Resources/public/js/
    sencha -sdk /path/to/touch-2.2.0/ generate app --name ProjectName --path ./Resources/public/js/

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