{ "id": "163169", "key": "TIMOB-23899", "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": "19381", "name": "Hyperloop 2.1.1", "archived": false, "released": true, "releaseDate": "2017-06-02" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-03T07:28:18.000+0000", "created": "2016-09-12T14:01:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "hyperloop", "ios", "metabase", "swift" ], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-05-31T16:22:21.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When adding this swift file ([https://github.com/Ramotion/folding-cell]) in the src directory and referencing it in appc.js metabase fails to generate with the following error:\r\n\r\n{noformat}\r\n2016-09-12T13:56:50.382Z | ERROR | An uncaught exception was thrown!\r\nCannot read property '1' of null\r\n2016-09-12T13:56:50.383Z | ERROR | Cannot read property '1' of null\r\n{noformat}\r\n", "attachment": [], "flagged": false, "summary": "Hyperloop: iOS - Swift metabase parser can't handle open access level keyword", "creator": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 4.4.7\r\n npm Version = 2.15.8\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.4.0.GA\r\n\r\n", "closedSprints": [ { "id": 883, "state": "closed", "name": "2017 Sprint 09 SDK", "startDate": "2017-04-23T21:46:54.309Z", "endDate": "2017-05-07T21:46:00.000Z", "completeDate": "2017-05-08T00:25:44.276Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "396014", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Can you attach the swift-file? I can only find the demo-files around it. And please also attach the (zipped) generated metabase and a full trace-log. Thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-13T14:56:06.000+0000", "updated": "2016-09-13T14:56:06.000+0000" }, { "id": "396017", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "of course! here you have : [https://mega.nz/#!udMQzJgQ]", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-13T15:05:54.000+0000", "updated": "2016-09-13T15:05:54.000+0000" }, { "id": "401556", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think [~jvennemann] is currently working on this, together with other Swift-related tickets. Moving it to the upcoming sprint.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-18T19:58:49.000+0000", "updated": "2016-11-18T19:58:49.000+0000" }, { "id": "401619", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Investigated a little and this is caused by the the new {{open}} access level keyword introduced in Swift 3. Our swift metabase parser currently only checks for declarations with {{public}} access level.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-21T14:23:31.000+0000", "updated": "2016-11-21T14:23:31.000+0000" }, { "id": "418108", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/hyperloop.next/pull/163\r\nPR (2_1_X): https://github.com/appcelerator/hyperloop.next/pull/164\r\n\r\n[~hansknoechel], see the above PRs for a fix to support the {{open}} access level keyword. However, the Swift metabase parser has some more issues with the mentioned Swift file regarding proper type resolution. I don't think we should invest more time to solve this for the current Swift metabase parser and rather focus on the rewrite in TIMOB-24632.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-04-26T15:05:42.000+0000", "updated": "2017-04-26T15:05:42.000+0000" }, { "id": "420491", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "*Steps for FR*\r\n1. Edit the {{src/MySwift.swift}} file from the [hyperloop-examples|https://github.com/appcelerator/hyperloop-examples] project and replace the {{public}} keyword with {{open}}\r\n2. Run the app and open the Custom Class view.\r\n\r\n*Expected behavior*\r\nThe build should succeed and the view inside the app should show the Swift logo.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-26T11:26:47.000+0000", "updated": "2017-05-26T11:26:47.000+0000" }, { "id": "420691", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Node Version: 6.10.1\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.2\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.1.0.GA\r\nAppcelerator Studio, build: 4.9.0.201705251638\r\nXcode 8.3.2\r\nHyperloop 2.1.1\r\n\r\nI followed the steps in the description using the above environment, and confirmed that I get the expected behavior.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-31T16:21:57.000+0000", "updated": "2017-05-31T16:21:57.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }