Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-2405

Node.ACS: Run > Local Node.ACS Server fails, unable to locate package.json

    Details

      Description

      If a titanium project with node.acs service enabled is run as local server, it fails with error:

      [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.<anonymous> (/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)
      

      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.

        Attachments

        1. console.txt
          0.9 kB
        2. log.txt
          4 kB
        3. run acs service.png
          run acs service.png
          79 kB

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              dhyde Dustin Hyde
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: