Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1982] TypeError during command line build

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2014-01-19T07:53:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI, Studio
Labelsandroid, studio3
ReporterEric Herrmann
AssigneeShak Hossain
Created2013-02-01T21:34:20.000+0000
Updated2016-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

Comments

  1. Tijs Zwinkels 2013-08-26

    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 .
  2. Shak Hossain 2013-12-07

    This is a duplicate bug and waiting for the proposed fix be approved.

JSON Source