Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19882] LiveView: Alloy compile error not shown

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2020-05-19T15:49:03.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sn/a
ComponentsLiveView
Labelsn/a
ReporterFokke Zandbergen
AssigneeUnknown
Created2015-11-05T15:54:44.000+0000
Updated2020-05-19T15:49:03.000+0000

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

Comments

  1. Ewan Harris 2020-05-19

    The alloy error now makes it through to the appc cli so closing

JSON Source