Titanium JIRA Archive
Alloy (ALOY)

[ALOY-354] 'alloy generate jmk' does not work

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-10-31T15:58:37.000+0000
Affected Version/sAlloy 0.3.1
Fix Version/sAlloy 0.3.1, 2012 Sprint 22
Componentsn/a
Labelsqe-closed-3.3.0
ReporterBenjamin Hatfield
AssigneeTony Lukasavage
Created2012-10-30T22:22:33.000+0000
Updated2014-06-20T06:09:55.000+0000

Description

Previously, from the app directory, I could generate the alloy.jmk file using: alloy generate jmk I get the following error message:
savoytruffle:app bhatfield$ alloy generate jmk

fs.js:338
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^
Error: ENOENT, no such file or directory '/Users/bhatfield/practice/testalloy/app/app/alloy.jmk'
    at Object.fs.openSync (fs.js:338:18)
    at Object.fs.writeFileSync (fs.js:756:15)
    at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/generate/targets/jmk.js:18:5)
    at generate (/usr/local/lib/node_modules/alloy/Alloy/commands/generate/index.js:38:34)
    at Object.<anonymous> (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:81:46)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)
I can get the command to work if I specify the -p option. I can generate the other components (views, widgets, controllers, etc.) fine without specifying the -p option.

Comments

  1. Tony Lukasavage 2012-10-31

    Resolved in latest master. Added unit tests to cover the uses cases mentioned here.
  2. Deepti Pandey 2014-06-20

    Verified FIXED using : Mac :10.9.3 Appcelerator Studio, build: 3.3.0.201406171619 SDK 3.3.0.v20140619164112 acs-1.0.15 alloy@1.4.0-rc npm-1.3.2 titanium@3.3.0-rc titanium-code-processor-1.1.1 Alloy generate jmk command successfully generates alloy.jmk file . Hence closing as FIXED.

JSON Source