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

Windows: Alloy compiler does not show error details

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Alloy
    • Environment:

      Windows 8.1
      TiSDk 3.3.0.v20140703093313
      Appcelerator Studio 3.3.0.201406271159
      CLI 3.3.0-rc4
      Alloy 1.4.0-rc4

    • Story Points:
      5

      Description

      Problem description

      Appcelerator Studio doesn't display errors correctly when running an Alloy project on Windows.

      Steps to reproduce

      1. Create a new Alloy project
      2. Use the following code for index.xml

      <Alloy>
          <Window class="container">
            <!-- <View>
              <TextField/> -->
            </View>
            
          </Window>
      </Alloy>
      

      3. Build/run

      Result: Build fails as expected but the errors are displayed incorrectly and there is no information regarding the file name or line number

      [DEBUG] :  Classname: Test2
             .__  .__                
      _____  |  | |  |   ____ ___.__.
      \__  \ |  | |  |  /  _ <   |  |
       / __ \|  |_|  |_(  <_> )___  |
      (____  /____/____/\____// ____|
           \/                 \/
      [ERROR] Error parsing XML file.
      [ERROR] :  Alloy compiler failed
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      4. Build/run from CLI
      Result: Errors are displayed correctly:

      [TRACE] Copying SRC_DIR\alloy\sync\sql.js --> Resources\android\alloy\sync\sql.js
      [TRACE] Copying SRC_DIR\alloy\sync\properties.js --> Resources\android\alloy\sync\properties.js
      [TRACE] Copying SRC_DIR\alloy\sync\localStorage.js --> Resources\android\alloy\sync\localStorage.js
      [TRACE] Copying SRC_DIR\alloy\controllers\BaseController.js --> Resources\android\alloy\controllers\BaseController.js
      [TRACE] Copying SRC_DIR\alloy\widget.js --> Resources\android\alloy\widget.js
      [TRACE] Copying SRC_DIR\alloy\underscore.js --> Resources\android\alloy\underscore.js
      [TRACE] Copying SRC_DIR\alloy\backbone.js --> Resources\android\alloy\backbone.js
      [TRACE] Copying SRC_DIR\alloy.js --> Resources\android\alloy.js
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\tester\AppData\Roaming\npm\node_modules\alloy\Alloy\common
      [TRACE] Copying SRC_DIR\constants.js --> Resources\android\alloy\constants.js
      [TRACE]
      [TRACE] SRC_DIR=C:\Users\tester\Documents\Appcelerator_Studio_Workspace\test2\app\assets
      [TRACE] Copying SRC_DIR\android\appicon.png --> Resources\android\appicon.png
      [TRACE] Copying SRC_DIR\android\default.png --> Resources\android\default.png
      [TRACE] Copying SRC_DIR\android\MarketplaceArtwork.png --> Resources\android\MarketplaceArtwork.png
      [TRACE] Copying SRC_DIR\android\images\res-long-land-hdpi\default.png --> Resources\android\images\res-long-land-hdpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-long-land-ldpi\default.png --> Resources\android\images\res-long-land-ldpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-long-port-hdpi\default.png --> Resources\android\images\res-long-port-hdpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-long-port-ldpi\default.png --> Resources\android\images\res-long-port-ldpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-notlong-land-hdpi\default.png --> Resources\android\images\res-notlong-land-hdpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-notlong-land-ldpi\default.png --> Resources\android\images\res-notlong-land-ldpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-notlong-land-mdpi\default.png --> Resources\android\images\res-notlong-land-mdpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-notlong-port-hdpi\default.png --> Resources\android\images\res-notlong-port-hdpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-notlong-port-ldpi\default.png --> Resources\android\images\res-notlong-port-ldpi\default.png
      [TRACE] Copying SRC_DIR\android\images\res-notlong-port-mdpi\default.png --> Resources\android\images\res-notlong-port-mdpi\default.png
      [TRACE]
      [DEBUG]
      [INFO] ----- MVC GENERATION -----
      [INFO] [global style] writing to cache...
      [INFO] [index.xml] view processing...
      [INFO]   style:      "index.tss"
      [INFO]   view:       "index.xml"
      [ERROR] Error parsing XML file.
      [ERROR] end tag name: View is not match the current start tagName:Window
      [ERROR] @#[line:4,col:25]
      [ERROR] Alloy compiler failed
       
      C:\Users\tester\Documents\Appcelerator_Studio_Workspace\test2>
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkolipaka Kondal Kolipaka (Inactive)
                Reporter:
                fcasali Federico Casali
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: