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

LiveView: Alloy compile error not shown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: None
    • Component/s: LiveView
    • Labels:
      None
    • Environment:

      appc -v -o json

      {"NPM":"4.2.1","CLI":"5.1.0-38"}

      Description

      When I use LiveView to run an Alloy project with:

      <Alloy>
      	<Window>
      		<Label>Hello, world!</Label>
      	</Window>
      </Alloy>
      

      And then remove </Label> and save I don't get the Alloy parse error I'd expect:

      ...
      -- Start simulator log -------------------------------------------------------
      [INFO]  Application started
      [INFO]  test-alloy/1.0 (5.2.0.0add7c0)
       [LiveView]  Client connected
       [LiveView]  Alloy recompile initiated for ios
       [LiveView]  Reload Triggered
         REASON:  File Changed
         FILE:  /Users/fokkezb/dev/tests/test-alloy/app/views/index.xml
       [LiveView]  Client disconnected
       [LiveView]  Client connected
      [INFO]  [LiveView] Reloading App
      [INFO]  UI SHUTDOWN COMPLETE. TRYING TO RESUME RESTART
      [INFO]  test-alloy/1.0 (5.2.0.0add7c0)
      [INFO]  [LiveView] Error Evaluating alloy.js @ Line: 36
      [ERROR] ReferenceError: Can't find variable: OS_MOBILEWEB
      [ERROR] File: alloy.js
      [ERROR] Line: 36
      [ERROR] SourceId: <null>
      [ERROR] Backtrace:
      [ERROR]  undefined
      [INFO]  [LiveView] Error Evaluating app.js @ Line: 3
      [ERROR] TypeError: undefined is not a function (evaluating 'Alloy.createController("index")')
      [ERROR] File: app.js
      [ERROR] Line: 3
      [ERROR] SourceId: <null>
      [ERROR] Backtrace:
      [ERROR]  undefined
      

      While as I then do appc run (without LiveView) directly after I do get what I expected:

      ...
      [INFO]  Executing Alloy compile: /usr/local/bin/node /Users/fokkezb/.appcelerator/install/5.1.0-38/package/node_modules/appc-cli-titanium/node_modules/alloy/bin/alloy compile /Users/fokkezb/dev/tests/test-alloy/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator
      [INFO]   [config.json] regenerating CFG.js from config.json...
      [INFO]  ----- MVC GENERATION -----
      [INFO]  [app.tss] global style processing...
      [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] Unclosed XML tag or attribute
      [ERROR] @#[line:3,col:3]
      [ERROR] Alloy compiler failed
      ERROR  | ti run exited with error code 1
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              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-20608
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration