Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9148

iOS: commonjs external module compilation broken (build.py -> compile.py in module projects)

    Details

      Description

      Broken by commit f9a4f3815ee0

      Reproduce:

      a) Create an iOS module project: titanium create --type=module --name=testmod --id=ti.testmod --platform=iphone --dir=.

      (I'm assuming there that `titanium` is aliased to the master branch version of titanium.py – adjust accordingly if needed.)

      b) Create a file therein: assets/ti.testmod.js and some code:

      exports.hello = function() { return "hello world"; };
      

      c) Run ./build.py.

      You will see:

      Traceback (most recent call last):
        File "./build.py", line 216, in <module>
          compile_js(manifest,config)
        File "./build.py", line 81, in compile_js
          metadata = compiler.make_function_from_file(path,js_file)
      AttributeError: 'Compiler' object has no attribute 'make_function_from_file'
      

        Attachments

          Activity

            People

            • Assignee:
              mstepanov Max Stepanov
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-13364
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration