[ALOY-354] 'alloy generate jmk' does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-31T15:58:37.000+0000 |
Affected Version/s | Alloy 0.3.1 |
Fix Version/s | Alloy 0.3.1, 2012 Sprint 22 |
Components | n/a |
Labels | qe-closed-3.3.0 |
Reporter | Benjamin Hatfield |
Assignee | Tony Lukasavage |
Created | 2012-10-30T22:22:33.000+0000 |
Updated | 2014-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.
Resolved in latest master. Added unit tests to cover the uses cases mentioned here.
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.