Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16851

CLI: force module project creation even if path already exists is not respected inside an app project

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 3.2.3
    • Component/s: CLI
    • Environment:

      Description

      It is not a regression.

      This issue occurs only if a module project is being created inside an app project.

      To reproduce

      1. Create a project, using

      ti create 
      

      Enter all prompted options
      2. Inside the project's directory run

      ti create -t module
      

      Enter all prompted options
      3. Run

      ti create -f -t module
      

      use same id and name

      Actual result

      [ERROR] Failed to run command "create"
      [ERROR] Error: EEXIST, file already exists '/Users/oromero/dream/snow/module'
          at fs.mkdirSync (fs.js:642:18)
          at exports.run (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.v20140415094118/blackberry/cli/commands/_create.js:68:7)
          at ModuleCreator.<anonymous> (/Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.v20140415094118/cli/commands/create.js:373:21)
          at CLI._fireHookCallback (/usr/local/lib/node_modules/titanium/lib/hook.js:245:12)
          at /usr/local/lib/node_modules/titanium/lib/hook.js:224:10
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:142:25
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:17
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:556:34
          at /usr/local/lib/node_modules/titanium/lib/hook.js:215:9
       
      
      

      Note:
      If a module project created outside an app project, force to create option works as expected.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              oromero Olga Romero
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18637
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code