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

Windows: Alloy compile errors not visible when ran via `appc run`

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 5.1.2
    • Component/s: CLI, Windows
    • Labels:
      None
    • Environment:

      SDK 4.1.0 beta (4.1.0.v20150626223333)
      Windows 8.1 Enterprise Build 9600
      appc -v 4.0.2

    • Story Points:
      5
    • Sprint:
      2015 Sprint 23 SDK

      Description

      The following example (notice the typo in </Label/>):

      <Alloy>
        <Window>
          <Label>Hello</Label/>
        </Window>
      </Alloy>
      

      shows that the Alloy compile arrow is showing when running appc alloy compile directly:

      C:\Users\Fokke\dev\projects\appc-sample-ti410>cmd /s /c "C:\Users\Fokke\.appcele
      rator\install\4.0.2\package\node_modules\appc-cli-titanium\node_modules\.bin\all
      oy compile C:\Users\Fokke\dev\projects\appc-sample-ti410\app --config platform=w
      indows,version=0,simtype=none,devicefamily=none,deploytype=development,target=wp
      -emulator"
             .__  .__
      _____  |  | |  |   ____ ___.__.
      \__  \ |  | |  |  /  _ <   |  |
       / __ \|  |_|  |_(  <_> )___  |
      (____  /____/____/\____// ____|
           \/                 \/
      Alloy 1.6.2 by Appcelerator. The MVC app framework for Titanium.
       
      [DEBUG] ----- CONFIGURATION -----
      [DEBUG] raw config = "platform=windows,version=0,simtype=none,devicefamily=none,
      deploytype=development,target=wp-emulator"
      [DEBUG] platform = windows
      [DEBUG] version = 0
      [DEBUG] simtype = none
      [DEBUG] devicefamily = none
      [DEBUG] deploytype = development
      [DEBUG] target = wp-emulator
      [DEBUG] project path = C:\Users\Fokke\dev\projects\appc-sample-ti410
      [DEBUG] app path = C:\Users\Fokke\dev\projects\appc-sample-ti410\app
      [DEBUG]
      [DEBUG] ----- CONFIG.JSON -----
      [DEBUG] dependencies = {}
      [INFO]  [config.json] config.json unchanged, using cached config.json...
      [DEBUG] {
        "dependencies": {},
        "brandPrimary": "#CD1625",
        "sourcemap": true,
        "autoStyle": false,
        "adapters": [
          "localStorage",
          "properties",
          "sql"
        ]
      }
      [DEBUG]
      [DEBUG] ----- CLEANING RESOURCES -----
      [DEBUG] Removing orphaned controllers ...
      [DEBUG] Removing orphaned models ...
      [DEBUG] Removing orphaned styles ...
      [DEBUG] Removing orphaned sync adapters...
      [DEBUG] Removing orphaned assets and libs...
      [DEBUG]
      [DEBUG] ----- BASE RUNTIME FILES -----
      [TRACE] SRC_DIR=C:\Users\Fokke\.appcelerator\install\4.0.2\package\node_modules\
      appc-cli-titanium\node_modules\alloy\Alloy\lib
      [TRACE] Copying SRC_DIR\alloy\sync\sql.js --> Resources\windows\alloy\sync\sql.j
      s
      [TRACE] Copying SRC_DIR\alloy\sync\properties.js --> Resources\windows\alloy\syn
      c\properties.js
      [TRACE] Copying SRC_DIR\alloy\sync\localStorage.js --> Resources\windows\alloy\s
      ync\localStorage.js
      [TRACE] Copying SRC_DIR\alloy\controllers\BaseController.js --> Resources\window
      s\alloy\controllers\BaseController.js
      [TRACE] Copying SRC_DIR\alloy\widget.js --> Resources\windows\alloy\widget.js
      [TRACE] Copying SRC_DIR\alloy\underscore.js --> Resources\windows\alloy\undersco
      re.js
      [TRACE] Copying SRC_DIR\alloy.js --> Resources\windows\alloy.js
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\Fokke\.appcelerator\install\4.0.2\package\node_modules\
      appc-cli-titanium\node_modules\alloy\Alloy\common
      [TRACE] Copying SRC_DIR\constants.js --> Resources\windows\alloy\constants.js
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\Fokke\dev\projects\appc-sample-ti410\app\assets
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\Fokke\dev\projects\appc-sample-ti410\app\lib
      [TRACE] Copying SRC_DIR\polyfill.js --> Resources\windows\polyfill.js
      [TRACE] - Processing "builtins" module...
      [TRACE] - Processing "optimizer" module...
      [TRACE] - Processing "compress" module...
      [DEBUG]   map:        "C:\Users\Fokke\dev\projects\appc-sample-ti410\build\map\R
      esources\windows\polyfill.js.map"
      [TRACE]
      [DEBUG]
      [INFO] ----- MVC GENERATION -----
      [INFO] [global style] loading from cache...
      [INFO] [index.xml] view processing...
      [INFO]   style:      "index.tss"
      [INFO]   style:      "windows\index.tss"
      [INFO]   view:       "windows\index.xml"
      [ERROR] Error parsing XML file.
      [ERROR] Unclosed XML tag or attribute
      [ERROR] @#[line:3,col:3]
      

      while it is not when it runs as part of appc run:

      C:\Users\Fokke\dev\projects\appc-sample-ti410>appc run -p windows -C 8-1-1
      Appcelerator Command-Line Interface, version 4.0.2
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      Tue Jun 30 2015 13:30:25 GMT+0200 (W. Europe Daylight Time)
       
      Operating System
        Name                        = Microsoft Windows 8.1 Enterprise Evaluation
        Version                     = 6.3.9600
        Architecture                = 32bit
        # CPUs                      = 2
        Memory                      = 12884426752
       
      Node.js
        Node.js Version             = 0.10.37
        npm Version                 = 1.4.28
       
      Titanium CLI
        CLI Version                 = 4.0.1
       
      Titanium SDK
        SDK Version                 = 4.1.0.v20150626223333
        SDK Path                    = C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v2
      0150626223333
        Target Platform             = windows
       
      Command
        C:\Program Files (x86)\nodejs\node.exe C:\Users\Fokke\.appcelerator\install\4.
      0.2\package\node_modules\appc-cli-titanium\node_modules\titanium\bin\titanium bu
      ild -p windows -C 8-1-1 --plugin-paths C:\Users\Fokke\.appcelerator\install\4.0.
      2\package\node_modules --config-file C:\Users\Fokke\AppData\Local\Temp\build-143
      5663808511.json --log-level info --no-banner
       
      C:\Users\Fokke\AppData\Local\Temp
      [WARN]  ti.windows.publishername is suggested in your tiapp.xml for publishing!
      We will default to a value generated from your tiapp.publisher value.
      For example:
      <property name="ti.windows.publishername" type="string">CN=Appcelerator</propert
      y>
      [INFO]  Found Titanium plugin id=ti.alloy version=1.0
      [INFO]  Found Titanium plugin id=ti.map version=1.0
      [INFO]  Building for Windows Phone emulator: 8-1-1
      [INFO]  Deploy type: development
      [INFO]  Debugging disabled
      [INFO]  Profiler disabled
      [INFO]  Forcing rebuild: C:\Users\Fokke\AppData\Local\Temp\appc-sample-ti410\bui
      ld-manifest.json does not exist
      [INFO]  Found Alloy app in C:\Users\Fokke\dev\projects\appc-sample-ti410\app
      [INFO]  Executing Alloy compile: cmd /s /c C:\Users\Fokke\.appcelerator\install\
      4.0.2\package\node_modules\appc-cli-titanium\node_modules\.bin\alloy compile C:\
      Users\Fokke\dev\projects\appc-sample-ti410\app --config platform=windows,version
      =0,simtype=none,devicefamily=none,deploytype=development,target=wp-emulator
             .__  .__
      _____  |  | |  |   ____ ___.__.
      \__  \ |  | |  |  /  _ <   |  |
       / __ \|  |_|  |_(  <_> )___  |
      (____  /____/____/\____// ____|
           \/                 \/
      Alloy 1.6.2 by Appcelerator. The MVC app framework for Titanium.
       
      [DEBUG] ----- CONFIGURATION -----
      [DEBUG] raw config = "platform=windows,version=0,simtype=none,devicefamily=none,
      deploytype=development,target=wp-emulator"
      [DEBUG] platform = windows
      [DEBUG] version = 0
      [DEBUG] simtype = none
      [DEBUG] devicefamily = none
      [DEBUG] deploytype = development
      [DEBUG] target = wp-emulator
      [DEBUG] project path = C:\Users\Fokke\dev\projects\appc-sample-ti410
      [DEBUG] app path = C:\Users\Fokke\dev\projects\appc-sample-ti410\app
      [DEBUG]
      [DEBUG] ----- CONFIG.JSON -----
      [DEBUG] dependencies = {}
      [INFO]  [config.json] config.json unchanged, using cached config.json...
      [DEBUG] {
        "dependencies": {},
        "brandPrimary": "#CD1625",
        "sourcemap": true,
        "autoStyle": false,
        "adapters": [
          "localStorage",
          "properties",
          "sql"
        ]
      }
      [DEBUG]
      [DEBUG] ----- CLEANING RESOURCES -----
      [DEBUG] Removing orphaned controllers ...
      [DEBUG] Removing orphaned models ...
      [DEBUG] Removing orphaned styles ...
      [DEBUG] Removing orphaned sync adapters...
      [DEBUG] Removing orphaned assets and libs...
      [DEBUG]
      [DEBUG] ----- BASE RUNTIME FILES -----
      [TRACE] SRC_DIR=C:\Users\Fokke\.appcelerator\install\4.0.2\package\node_modules\
      appc-cli-titanium\node_modules\alloy\Alloy\lib
      [TRACE] Copying SRC_DIR\alloy\sync\sql.js --> Resources\windows\alloy\sync\sql.j
      s
      [TRACE] Copying SRC_DIR\alloy\sync\properties.js --> Resources\windows\alloy\syn
      c\properties.js
      [TRACE] Copying SRC_DIR\alloy\sync\localStorage.js --> Resources\windows\alloy\s
      ync\localStorage.js
      [TRACE] Copying SRC_DIR\alloy\controllers\BaseController.js --> Resources\window
      s\alloy\controllers\BaseController.js
      [TRACE] Copying SRC_DIR\alloy\widget.js --> Resources\windows\alloy\widget.js
      [TRACE] Copying SRC_DIR\alloy\underscore.js --> Resources\windows\alloy\undersco
      re.js
      [TRACE] Copying SRC_DIR\alloy.js --> Resources\windows\alloy.js
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\Fokke\.appcelerator\install\4.0.2\package\node_modules\
      appc-cli-titanium\node_modules\alloy\Alloy\common
      [TRACE] Copying SRC_DIR\constants.js --> Resources\windows\alloy\constants.js
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\Fokke\dev\projects\appc-sample-ti410\app\assets
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\Fokke\dev\projects\appc-sample-ti410\app\lib
      [TRACE] Copying SRC_DIR\polyfill.js --> Resources\windows\polyfill.js
      [TRACE] - Processing "builtins" module...
      [TRACE] - Processing "optimizer" module...
      [TRACE] - Processing "compress" module...
      [DEBUG]   map:        "C:\Users\Fokke\dev\projects\appc-sample-ti410\build\map\R
      esources\windows\polyfill.js.map"
      [TRACE]
      [DEBUG]
      [INFO] ----- MVC GENERATION -----
      [INFO] [global style] loading from cache...
      [INFO] [index.xml] view processing...
      [INFO]   style:      "index.tss"
      [INFO]   style:      "windows\index.tss"
      [INFO]   view:       "windows\index.xml"
      [ERROR] Alloy compiler failed
      ERROR  | ti run exited with error code 1
      

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi (Inactive)
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration