Project: appceleratorstudio
Issue TISTUD-2405: Node.ACS: Run > Local Node.ACS Server fails, unable to locate package.json
If a titanium project with node.acs service enabled is run as local server, it fails with error: {code} [ERROR] received on caught exception = Error: ENOENT, no such file or directory '/Users/dhyde/Desktop/TISTUD-NIGHTLY/titanium_studio_workspace/MyProject/package.json' [ERROR] Error: ENOENT, no such file or directory '/Users/dhyde/Desktop/TISTUD-NIGHTLY/titanium_studio_workspace/MyProject/package.json' at Object.fs.openSync [as openSync] (fs.js:338:18) at Object.fs.readFileSync [as readFileSync] (fs.js:182:15) at main (/usr/local/lib/node_modules/acs/lib/nettle.js:219:39) at Object. (/usr/local/lib/node_modules/acs/lib/nettle.js:302:1) at Module.Module._compile [as _compile] (module.js:449:26) at Object.Module._extensions..js [as .js] (module.js:467:10) at Module.Module.load [as load] (module.js:356:32) at Function.Module._load [as _load] (module.js:312:12) at Module.Module.require [as require] (module.js:362:17) at require (module.js:378:17) {code} Note, when project was created, error was generated: TISTUD-2397 Steps to Reproduce: 1. Create titanium project. 2. Enable node.acs service, project right-click > new > node.acs service. 3. Select Run > Local Node.ACS Server. Actual Result: Fail. Expected Result: Success, proper error message, or a way of preventing the menu item from working if it is known that it will fail when run.
Story points: 5