Uploaded image for project: 'Alloy'
  1. Alloy
  2. ALOY-1262

a directory ending with ".js" causes Alloy compiler error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Alloy 1.6.0
    • Fix Version/s: Alloy 1.7.0
    • Component/s: Runtime
    • Labels:
    • Environment:

      Alloy 1.7.0-dev

    • Story Points:
      5
    • Sprint:
      2015 Sprint 11 Tooling

      Description

      This bug is related to ALOY-920, which introduced a fix for the specific case of should.js.

      When building an Alloy project containg a library directory named with a .js suffix, the compiler fails:

      [INFO]  ----- OPTIMIZING -----
      [INFO]  - iphone/vendor/validator.js
      [ERROR] Error generating AST for "/Users/xavier/titanium/DemoApp/Resources/iphone/vendor/validator.js"
      [ERROR] EISDIR, illegal operation on a directory
      [ERROR] Alloy compiler failed
      

      The getJsFiles() Alloy compiler method filters which files have to be optimized, as in https://github.com/appcelerator/alloy/blob/master/Alloy/commands/compile/index.js#L1017
      This method fails to exclude items which are directories ending with .js, and uglifyjs.parse() then throws an error.

      A pull request has been submitted at https://github.com/appcelerator/alloy/pull/683

        Attachments

          Activity

            People

            • Assignee:
              rtlechuga Radamantis Torres-Lechuga (Inactive)
              Reporter:
              xavier Xavier Lacot
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration