{ "id": "159706", "key": "TIMOB-23241", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" }, { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-26T13:52:28.000+0000", "created": "2016-04-19T22:51:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "issuelinks": [ { "id": "51462", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159713", "key": "TIMOB-23260", "fields": { "summary": "Windows: Logs don't appear from background/async threads", "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 } } } }, { "id": "51418", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "138521", "key": "TIMOB-17911", "fields": { "summary": "Windows: Implement Native module support", "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": "High", "id": "2" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } }, { "id": "51494", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "149156", "key": "TIMOB-19077", "fields": { "summary": "Windows: Logging does not seem to work when using device", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51419", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "159530", "key": "TIMOB-23205", "fields": { "summary": "Windows: Background service extension by native module (C++/CX).", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-30T11:34:52.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "The C++ macros for logging ({{TITANIUM_LOG_DEBUG}} etc) shows nothing when you launch the app from Titanium CLI. That's because {{TITANIUM_LOG_DEBUG}} prints out to standard out but Titanium CLI uses different protocol (log relay: listening sockets and relays it to CLI).\r\n", "attachment": [], "flagged": false, "summary": "Windows: logging from native module doesn't work", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 624, "state": "closed", "name": "2016 Sprint 09 SDK", "startDate": "2016-04-23T00:39:45.452Z", "endDate": "2016-05-07T00:39:00.000Z", "completeDate": "2016-05-09T03:43:10.279Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "383352", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I guess the easiest workaround would be to create C++ macro that just calls {{get_context().JSEvaluateScript(\"Ti.API.info(\" + message + \");\")}}.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-20T14:48:06.000+0000", "updated": "2016-04-20T14:48:06.000+0000" }, { "id": "383375", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Do we want different macros for logging to VS console versus to Ti.API logger?\r\n\r\nI'm concerned that just switching over to using Ti.API will mean lots of logging flowing to the CLI for our internal SDK - that we likely don't want to show whatsoever.\r\n\r\nI think there's a difference between what we want to log internally for development of the SDK versus logging to the console for module development purposes.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-04-20T16:41:39.000+0000", "updated": "2016-04-20T16:41:39.000+0000" }, { "id": "383448", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Makes sense. I think we need logging for module development, maybe something like {{TITANIUM_MODULE_LOG_DEBUG}} and so on.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-21T01:19:40.000+0000", "updated": "2016-04-21T01:19:40.000+0000" }, { "id": "383716", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/642", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-23T06:33:02.000+0000", "updated": "2016-04-23T06:33:02.000+0000" }, { "id": "383936", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pushed to master, will be available in nightly build soon. \r\n\r\n// new include is required, to use new logging macros\r\n#include \"TitaniumWindows/LogForwarder.hpp\" \r\n\r\n// Logging macro for native module debugging: \r\n-TITANIUM_MODULE_LOG_TRACE(\"value: \" << value);-\r\n\r\n// In the background service, you need to use this:\r\n-TITANIUM_MODULE_LOG_INFO_BACKGROUND(\"value: \" << value);-\r\n\r\nNote that you will need to re-create module project in order to use new logging macros. It is required because we need to set new include path and library path... For more information on Windows native module development, see [Windows_Module_Development_Guide|http://docs.appcelerator.com/platform/latest/#!/guide/Windows_Module_Development_Guide].", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-26T15:06:37.000+0000", "updated": "2016-04-27T11:39:09.000+0000" }, { "id": "384067", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-23274 introduces macro argument spec changes to align with {{TITANIUM_LOG_INFO}}. Now it uses {{,}} to receive multiple parameters.\r\n\r\n{code}\r\n// new include is required, to use new logging macros\r\n#include \"TitaniumWindows/LogForwarder.hpp\" \r\n\r\n// Logging macro for native module debugging: \r\nTITANIUM_MODULE_LOG_TRACE(\"value: \", value);\r\n\r\n// In the background service, you need to use this:\r\nTITANIUM_MODULE_LOG_INFO_BACKGROUND(\"value: \", value);\r\n{code}", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T12:03:47.000+0000", "updated": "2016-04-27T12:03:47.000+0000" }, { "id": "386550", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{quote}\r\nI believe testing this ticket as part of 5.3.0 will be blocked by bugs in 5_3_X that are fixed in master\r\n{quote}\r\n\r\n[~eharris] Do you mean you know specific ticket number for the \"bugs in 5_3_X that are fixed in master\"? I guess TIMOB-23246 ? \r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-23T22:58:02.000+0000", "updated": "2016-05-23T22:58:02.000+0000" }, { "id": "386553", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-05-23T23:11:53.000+0000", "updated": "2016-05-23T23:11:53.000+0000" }, { "id": "386560", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~eharris] Yeah, {{appc}} has a issue building Windows module ( as I recall even on 5.4.X). For a workaround we use {{ti build -p windows -T ws-local}} for now. For more details please see [Windows Module Quick Start|http://docs.appcelerator.com/platform/latest/#!/guide/Windows_Module_Quick_Start].", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-23T23:23:06.000+0000", "updated": "2016-05-23T23:23:06.000+0000" }, { "id": "387143", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Just noticed that the issue on building module using {{appc ti build}} has been fixed (TIMOB-23157) for 5_4_X. I'm not quite sure which PR makes this work though, I'll check this again and see if we can make it on 5_3_X.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-31T04:32:50.000+0000", "updated": "2016-05-31T05:00:01.000+0000" }, { "id": "387156", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was trying to see if we can make {{appc ti build}} work with modules on 5_3_X (TIMOB-23157), and ends up finding we'll need a lot of changes to backport, such as TIMOB-23248 and TIMOB-23158 like Ewan pointed out, as well as changes in windowslib. I think it's too much for this limited time period for 5_3_X.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-31T08:49:28.000+0000", "updated": "2016-05-31T08:49:28.000+0000" }, { "id": "389572", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro\r\nTi SDK: 5.4.0.v20160629063537\r\nAppc NPM: 4.2.7-2 \r\nAppc CLI: 5.4.0-23\r\nAppc Studio: 4.7.0.201606220541\r\nLumia 930: 10.0\r\nLumia 520: 8.1\r\n\r\nLogging can now be performed using the functions below depending on the log level desired.\r\n\r\n{code}\r\nTITANIUM_MODULE_LOG_TRACE(\"hi\");\r\nTITANIUM_MODULE_LOG_INFO(\"hi\");\r\nTITANIUM_MODULE_LOG_DEBUG(\"hi\");\r\nTITANIUM_MODULE_LOG_WARN(\"hi\");\r\nTITANIUM_MODULE_LOG_ERROR(\"hi\");\r\n{code}\r\n\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-06-30T11:34:45.000+0000", "updated": "2016-06-30T11:34:45.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }