[TIMOB-13043] CLI: iOS: INFO and ERROR are logged as TRACE when build and minification fail
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-13T18:49:03.000+0000 |
Affected Version/s | Release 3.0.2, Release 3.1.0 |
Fix Version/s | 2013 Sprint 10 JS, 2013 Sprint 10, Release 3.1.1, Release 3.2.0 |
Components | iOS |
Labels | qe-closed-3.1.1, qe-sdk3.1.0 |
Reporter | Dustin Hyde |
Assignee | Chris Barber |
Created | 2013-03-13T01:15:32.000+0000 |
Updated | 2013-05-29T17:18:08.000+0000 |
Description
iOS: INFO and ERROR are logged as TRACE when build and minification fail.
Steps to Reproduce:
1. Enter code in app.js:
foo bar
2. Run in iOS Simulator.
Actual Result:
INFO and ERROR are logged as TRACE:
[TRACE] [INFO] Build type: test
[TRACE] [INFO] Building for target: simulator
[TRACE] [INFO] Building using iOS SDK: 6.1
[TRACE] [INFO] Building for iOS iPhone Simulator: 6.1
[TRACE] [INFO] Building for device family: iphone
[TRACE] [INFO] Building for iOS 6.1; using 4.3 as minimum iOS version
[TRACE] [INFO] Minimum iOS version: 4.3
[TRACE] [INFO] Debugging disabled
[TRACE] [INFO] Profiler disabled
[TRACE] [INFO] Initiating Xcode pre-compile phase
[TRACE] [INFO] Found Titanium module id=com.crittercism.ti version=latest platform=iphone deploy-type=test
[TRACE] [INFO] Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=test
[TRACE] [INFO] Detected third-party native iOS module: com.crittercism.ti version 1.0
[TRACE] [ERROR] Failed to minify /Users/dhyde/Desktop/tistud/tistud-360-nightly/workspace/MyOldProject/Resources/app.js
[TRACE] [ERROR] Unexpected token: name (vxb) [line 1, column 5]
[TRACE] [ERROR]
[TRACE] [ERROR] fgsn vxb fggadklbmzso;vj[psonv'awbnp'oawnbm;kwdvar crittercism = require("com.crittercism.ti");
[TRACE] [ERROR] -----^
[TRACE] [ERROR]
The nature of the error is not correctly surfaced to the user. This affects Titanium Studio.
Expected Result:
[INFO] Build type: test
[INFO] Building for target: simulator
[INFO] Building using iOS SDK: 6.1
[INFO] Building for iOS iPhone Simulator: 6.1
[INFO] Building for device family: iphone
[INFO] Building for iOS 6.1; using 4.3 as minimum iOS version
[INFO] Minimum iOS version: 4.3
[INFO] Debugging disabled
[INFO] Profiler disabled
[INFO] Initiating Xcode pre-compile phase
[INFO] Found Titanium module id=com.crittercism.ti version=latest platform=iphone deploy-type=test
[INFO] Found Titanium module id=ti.cloud version=latest platform=commonjs deploy-type=test
[INFO] Detected third-party native iOS module: com.crittercism.ti version 1.0
[ERROR] Failed to minify /Users/dhyde/Desktop/tistud/tistud-360-nightly/workspace/MyOldProject/Resources/app.js
[ERROR] Unexpected token: name (vxb) [line 1, column 5]
[ERROR]
[ERROR] fgsn vxb fggadklbmzso;vj[psonv'awbnp'oawnbm;kwdvar crittercism = require("com.crittercism.ti");
[ERROR] -----^
[ERROR]
[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] PhaseScriptExecution Pre-Compile build/MyOldProject.build/Debug-iphonesimulator/MyOldProject.build/Script-241EAF36118E30260081A5BE.sh
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/4257 3.1.x pull request: https://github.com/appcelerator/titanium_mobile/pull/4258
Titanium Command-Line Interface, CLI version 3.1.0, Titanium SDK version 3.1.1.v20130513131554 INFO and ERROR are logged as expected.