[AC-1982] TypeError during command line build
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-19T07:53:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator CLI, Studio |
Labels | android, studio3 |
Reporter | Eric Herrmann |
Assignee | Shak Hossain |
Created | 2013-02-01T21:34:20.000+0000 |
Updated | 2016-03-08T07:40:55.000+0000 |
Description
[INFO] Compiling javascript: modules/SceneManager.js
[DEBUG] java -jar "/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/android/lib/closure-compiler.jar" --js /Projects/yyyy/build/android/bin/assets/Resources/modules/SceneManager.js --js_output_file /Projects/yyyy/build/android/bin/assets/Resources/modules/SceneManager.js-compiled --jscomp_off=internetExplorerChecks --accept_const_keyword
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/android/builder.py", line 2402, in
[ERROR] builder.build_and_run(True, None, key, password, alias, output_dir)
[ERROR] File "/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/android/builder.py", line 2101, in build_and_run
[ERROR] compiler.compile(compile_bytecode=self.compile_js, external_modules=self.modules)
[ERROR] File "/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/android/compiler.py", line 296, in compile
[ERROR] self.compile_into_bytecode(self.js_files)
[ERROR] File "/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/android/compiler.py", line 211, in compile_into_bytecode
[ERROR] self.compile_javascript(fullpath)
[ERROR] File "/Users/eherrman/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA/android/compiler.py", line 201, in compile_javascript
[ERROR] sys.stderr.write("[ERROR] unrecognized error encountered: " % se)
[ERROR] TypeError: not all arguments converted during string formatting
I believe this error might be caused by a bug in the old version of the closure-compiler that's included in titanium-mobile, and I've filed a pull-request to update closure-compiler. See #TC-2812 .
This is a duplicate bug and waiting for the proposed fix be approved.