Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12446] Android: Distribution fails with false syntax errors

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2016-08-19T04:43:12.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, distribute
ReporterEsben Maaløe
AssigneeEric Merriman
Created2012-08-14T05:22:08.000+0000
Updated2017-03-23T21:32:36.000+0000

Description

Problem Description

When distributing to app store (google play), compilation fails with several false syntax errors. the project runs without errors on normal emulator/install to device runs Attached: The console output from the build, and the file 'm.js' that triggers the errors Here is some sample errors:
Error:
[ERROR] /home/esm/Documents/Dropbox/Titanium Studio Workspace/BuddyShop/build/android/bin/assets/Resources/m/m.js:161: ERROR - Parse error. missing name after . operator
	M.long = function(flt) {
It's a straight forward function declaration that looks like this:
	M.long = function(flt) {
		return M.screen.getLong(flt)
	}
There are other types. All of them are marked as syntax errors, none of them really are This prevents me from publishing, and that's very serious - so I marked this ticket 'critical'

Attachments

FileDateSize
distribute_build_errors.txt2012-08-14T05:22:08.000+000042920
m.js2012-08-14T05:22:08.000+00008104

Comments

  1. Esben Maaløe 2012-08-20

    It might be worth noting that 'long' and 'short' are reserved words - these are the two first errors. But there should not be such a huge difference between valid code during development and valid code for packaging.
  2. Chris Barber 2016-08-19

    This ticket is very old, doesn't include a reproducible test case, and most likely isn't an issue with Titanium. Resolving as invalid. Feel free to reopen if there's a real issue.
  3. Lee Morris 2017-03-23

    Closing ticket as invalid with reference to the previous comments.

JSON Source