{ "id": "163549", "key": "TIMOB-23967", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-28T15:03:20.000+0000", "created": "2016-09-29T15:12:12.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "54556", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "166576", "key": "TIMOB-24480", "fields": { "summary": "Android: appc run based module builds fail due to double-namespaced classes in KrollGeneratedBindings.gperf", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T15:17:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "I know we'd like to make the full cut over to using the node-based module builds, but all of our existing modules are still built using ant and I just tried to use {{appc run}} to build the hyperloop module on a 6.0.0 SDK. It failed with:\r\n\r\n{code}\r\n[INFO] Producing [ModuleName]Bootstrap files using /Users/cwilliams/repos/hyperloop.next/android/build/generated/json/org/appcelerator/titanium/bindings/hyperloop-android.json\r\nGenerating BootstrapJS.cpp from bootstrap.js\r\n[INFO] Running the Android NDK ndk-build\r\n[ERROR] Failed to run ndk-build\r\n[ERROR] \r\n[ERROR] jni/Android.mk:35: warning: overriding commands for target `/Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.cpp'\r\n[ERROR] jni/Android.mk:35: warning: ignoring old commands for target `/Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.cpp'\r\n[ERROR] In file included from jni/../HyperloopBootstrap.cpp:19:0:\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:18:28: warning: declaration 'struct titanium::bindings::BindEntry' does not declare anything\r\n[ERROR] struct titanium::bindings::BindEntry;\r\n[ERROR] ^\r\n[ERROR] In file included from jni/../HyperloopBootstrap.cpp:19:0:\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf: In static member function 'static titanium::bindings::BindEntry* HyperloopBindings::lookupGeneratedInit(const char*, unsigned int)':\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:20:43: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.BaseProxy,::hyperloop::hyperloop::BaseProxy::bindProxy,::hyperloop::hyperloop::BaseProxy::dispose\r\n[ERROR] ^\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:20:88: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.BaseProxy,::hyperloop::hyperloop::BaseProxy::bindProxy,::hyperloop::hyperloop::BaseProxy::dispose\r\n[ERROR] ^\r\n[ERROR] In file included from jni/../HyperloopBootstrap.cpp:19:0:\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:21:44: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.ClassProxy,::hyperloop::hyperloop::ClassProxy::bindProxy,::hyperloop::hyperloop::ClassProxy::dispose\r\n[ERROR] ^\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:21:90: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.ClassProxy,::hyperloop::hyperloop::ClassProxy::bindProxy,::hyperloop::hyperloop::ClassProxy::dispose\r\n[ERROR] ^\r\n[ERROR] In file included from jni/../HyperloopBootstrap.cpp:19:0:\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:24:47: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.InstanceProxy,::hyperloop::hyperloop::InstanceProxy::bindProxy,::hyperloop::hyperloop::InstanceProxy::dispose\r\n[ERROR] ^\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:24:96: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.InstanceProxy,::hyperloop::hyperloop::InstanceProxy::bindProxy,::hyperloop::hyperloop::InstanceProxy::dispose\r\n[ERROR] ^\r\n[ERROR] In file included from jni/../HyperloopBootstrap.cpp:19:0:\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:23:54: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.DynamicSubclassProxy,::hyperloop::hyperloop::DynamicSubclassProxy::bindProxy,::hyperloop::hyperloop::DynamicSubclassProxy::dispose\r\n[ERROR] ^\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:23:110: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.DynamicSubclassProxy,::hyperloop::hyperloop::DynamicSubclassProxy::bindProxy,::hyperloop::hyperloop::DynamicSubclassProxy::dispose\r\n[ERROR] ^\r\n[ERROR] In file included from jni/../HyperloopBootstrap.cpp:19:0:\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:22:56: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.InterfaceSubclassProxy,::hyperloop::hyperloop::InterfaceSubclassProxy::bindProxy,::hyperloop::hyperloop::InterfaceSubclassProxy::dispose\r\n[ERROR] ^\r\n[ERROR] /Users/cwilliams/repos/hyperloop.next/android/build/generated/KrollGeneratedBindings.gperf:22:114: error: 'hyperloop::hyperloop' has not been declared\r\n[ERROR] hyperloop.InterfaceSubclassProxy,::hyperloop::hyperloop::InterfaceSubclassProxy::bindProxy,::hyperloop::hyperloop::InterfaceSubclassProxy::dispose\r\n[ERROR] ^\r\n[ERROR] make: *** [/Users/cwilliams/repos/hyperloop.next/android/build/generated/obj/local/armeabi-v7a/objs/hyperloop/__/HyperloopBootstrap.o] Error 1\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: appc run based module builds fail due to double-namespaced classes in KrollGeneratedBindings.gperf", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 741, "state": "closed", "name": "2016 Sprint 22 SDK", "startDate": "2016-10-22T00:02:29.945Z", "endDate": "2016-11-05T00:02:00.000Z", "completeDate": "2016-11-07T04:38:58.335Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "397640", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "The error looks like ti stems from https://github.com/appcelerator/titanium_mobile/blob/master/android/cli/commands/_buildModule.js#L728\r\n\r\nIt appears to be adding the module id/name into the namespaces array twice, causing the double-namespaced items?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-09-29T15:14:06.000+0000", "updated": "2016-09-29T15:14:06.000+0000" }, { "id": "405533", "author": { "name": "awaldman", "key": "awaldman", "displayName": "Andy Waldman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Friday 27th January 2017 \r\nENV: \r\nMacOS:10.12.1 \r\nXCODE: 8.2.1 GM (golden master) \r\nAPPC CLI Core: 6.1.0 \r\nAPPC CLI NPM: 4.2.8 \r\nSDK: 6.1.0.v20170126175503\r\nStudio build: 4.8.1.201612050850 \r\nNPM: 2.15.9 \r\nNode: 4.5.0 \r\n\r\nStep 1) build new classic app and allow services\r\nStep 2) allow hyperloop module\r\nStep 3) update to latest 6.1.0 SDK\r\nStep 4) build in command line by being in the app directory and using appc run\r\nStep 5) monitor logs and check for the original error\r\nStep 6) verify that the error no longer exists\r\n\r\nClosing ticket due to verification ", "updateAuthor": { "name": "awaldman", "key": "awaldman", "displayName": "Andy Waldman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-27T20:52:19.000+0000", "updated": "2017-01-27T20:52:19.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }