1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    39
    Vote Rating
    4
    jattardi is on a distinguished road

      0  

    Default Unanswered: Sencha Cmd does not work when .svn directories are present

    Unanswered: Sencha Cmd does not work when .svn directories are present


    Due to restrictions on our build server beyond my control, I've been forced to check the Sencha Cmd Linux distribution into our SVN repository for use on build machines. We have to do this with several tools, and they are under a 'third-party' directory in SVN tree.

    I'm running into a baffling problem, though. When try to run the sencha command from my project's directory, I get this error:

    Exception in thread "main" java.lang.NullPointerException
    at com.sencha.util.Version.<init>(Version.java:23)
    at com.sencha.util.VersionRange.<init>(VersionRange.java:16)
    at com.sencha.command.ConfigOverrideLoader.getOverride(ConfigOverrideLoader.java:72)
    at com.sencha.command.SenchaConfigManager.checkForOverride(SenchaConfigManager.java:173)
    at com.sencha.command.SenchaConfigManager.getConfig(SenchaConfigManager.java:166)
    at com.sencha.command.SenchaConfigManager.getConfig(SenchaConfigManager.java:57)
    at com.sencha.command.Sencha.<init>(Sencha.java:40)
    at com.sencha.command.Sencha.main(Sencha.java:55)

    If I recursively go through and delete the .svn directories in the senchacmd directory, it runs fine.

    Since the source isn't available, I couldn't check what is causing the exception.

    Any ideas what might be causing this behavior?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,684
    Vote Rating
    435
    Answers
    3111
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    There should be a config set in app.json that says what to ignore.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

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

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

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

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    39
    Vote Rating
    4
    jattardi is on a distinguished road

      0  

    Default


    I already have .svn set to be ignored:

    Code:
    "ignore": [
      ".svn"
    ],
    Anyway, the problem isn't .svn directories in my project directory. The problem is .svn directories in the sencha cmd's directory.

    So for example, I have added the sencha cmd package to my svn repository and I check it out to /home/joe/tools/senchacmd. Since I checked it out from svn, there are .svn directories present at all levels, so for example

    /home/joe/tools/senchacmd/.svn
    /home/joe/tools/senchacmd/lib/.svn
    /home/joe/tools/senchacmd/templates/.svn

    etc.

    When these directories are present, I get the exception mentioned in the original post. If I simply remove the directories, i.e.

    find . -name .svn -exec rm -rf {} \;

    Then Sencha Cmd runs fine. So I do have a workaround, but I thought it seemed like a bug.

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    8
    Vote Rating
    0
    Samuel Horwitz is on a distinguished road

      0  

    Default


    Try
    PHP Code:
    "ignore":["\.svn$"
    or, to be truly JSON compliant

    PHP Code:
    "ignore":["\\.svn$"