Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23250] Creating a mobile project will throw a "Error: ENOENT: no such file or directory, stat"

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2016-04-20T18:54:13.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sn/a
ComponentsCore
Labelsqe-5.3.0, regression
ReporterWilson Luu
AssigneeChee Kiat Ng
Created2016-04-20T18:18:44.000+0000
Updated2016-04-20T18:54:13.000+0000

Description

*Details:* Creating a mobile project will throw Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'. *This is a regression from 5.2.2.GA.* *Steps to reproduce:*

Create a mobile project with appc new and go through the prompts

*Actual:* You will not be able to create a mobile project:
2016-04-20T18:11:05.756Z | TRACE  | alloy returned error= { [Error: Command failed: /bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force
fs.js:844
  return binding.stat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
    at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
    at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3
]
  killed: false,
  code: 1,
  signal: null,
  cmd: '/bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force' } stdout= [INFO] Deployed ti.alloy plugin to plugins/ti.alloy/plugin.py
[INFO] Deployed ti.alloy hook to plugins/ti.alloy/hooks/alloy.js
[INFO] Deployed ti.alloy cleanhook to plugins/ti.alloy/hooks/deepclean.js
[INFO] Installed "ti.alloy" plugin to tiapp.xml
 stderr= fs.js:844
  return binding.stat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
    at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
    at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

2016-04-20T18:11:05.758Z | TRACE  | [INFO] Deployed ti.alloy plugin to plugins/ti.alloy/plugin.py
[INFO] Deployed ti.alloy hook to plugins/ti.alloy/hooks/alloy.js
[INFO] Deployed ti.alloy cleanhook to plugins/ti.alloy/hooks/deepclean.js
[INFO] Installed "ti.alloy" plugin to tiapp.xml

2016-04-20T18:11:05.758Z | ERROR  | fs.js:844
  return binding.stat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
    at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
    at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

2016-04-20T18:11:05.759Z | TRACE  | done with plugin { [Error: Command failed: /bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force
fs.js:844
  return binding.stat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
    at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
    at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3
]
  killed: false,
  code: 1,
  signal: null,
  cmd: '/bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force' }
2016-04-20T18:11:05.776Z | ERROR  | Error: Command failed: /bin/sh -c "/usr/local/bin/node" "/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy" new --force
fs.js:844
  return binding.stat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, stat '/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/platforms/windows/project'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at Object.exports.copyDirSyncRecursive (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/node_modules/wrench/lib/wrench.js:175:23)
    at /Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:95:10
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
    at module.exports (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/commands/new/index.js:94:4)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/Alloy/alloy.js:113:46)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/wluu/.appcelerator/install/5.3.0-22/package/node_modules/alloy/bin/alloy:3:1)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

    at ChildProcess.exithandler (child_process.js:213:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:827:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:475:12)
2016-04-20T18:11:05.778Z | TRACE  | Sending exit signal to titanium process:  30367
*Expected:* Should be able to create a mobile project.

Comments

  1. Christopher Williams 2016-04-20

    This may have been caused by the fix for TIMOB-23223 ? Fern removed the override image assets for windows to resolve that. From my testing, removing those files was fine, but I still had the folder around in my repo. I think because git doesn't hold "folders", and just files - because all the files inside were removed, the folder is also gone. A quick fix may be to simple add a dummy placeholder file in that folder tree (though that would get packaged into windows apps, so ideally it'd at least just be an empty file).

JSON Source