{ "id": "153932", "key": "AC-814", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-12-22T08:54:02.000+0000", "created": "2015-12-17T19:46:59.000+0000", "labels": [ "Hyperloop", "Windows" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:05.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Build fails with this simple line:\r\n{code:java}\r\nvar webView = require('Windows.UI.Xaml.Controls.WebView');\r\n{code}\r\n\r\nSame result with -T wp-emulator and ws-local.\r\n\r\nError log:\r\n{noformat}\r\n[INFO] Alloy compiled in 11.81509s\r\n[INFO] Alloy compiler completed successfully\r\n[INFO] Launching emulator: 8-1-1\r\n[INFO] Missing 3 app icons, generating missing icons\r\n[INFO] Square44x44Logo.png - Used for logo - size: 44x44\r\n[INFO] Square71x71Logo.png - Used for logo - size: 71x71\r\n[INFO] Square150x150Logo.png - Used for logo - size: 150x150\r\n[INFO] Processing JavaScript files\r\n[INFO] Detected native API reference: Windows.UI.Xaml.Controls.WebView\r\n[INFO] Generating i18n files\r\n[INFO] Generating Native Type Wrappers\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Something went wrong. No metadata for type: Platform.Object\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Something went wrong. No metadata for type: Windows.Foundation.IAsyncOperationWithProgress`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Unable to find metadata for: Platform.Object\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Unable to find metadata for: Platform.Object\r\n[WARN] Something went wrong. No metadata for type: Windows.Foundation.IAsyncOperation`1\r\n[WARN] Something went wrong. No metadata for type: [mscorlib]System.Guid\r\n[WARN] Unable to find metadata for: [mscorlib]System.Guid\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: [mscorlib]System.Guid\r\nNo metadata found for: [mscorlib]System.Guid\r\nNo metadata found for: [mscorlib]System.Guid\r\nNo metadata found for: uint8[]\r\nNo metadata found for: uint8[]\r\nNo metadata found for: uint8[]\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IVector`1\r\nNo metadata found for: string[]\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\nNo metadata found for: Windows.Foundation.Collections.IKeyValuePair`2\r\n[ERROR]\r\nAn error occurred during build after 29s 815ms\r\n[ERROR] Something went wrong. No metadata for type: [mscorlib]System.Guid\r\n{noformat}", "attachment": [], "flagged": false, "summary": "Build fails when using native API call (Windows.UI.Xaml.Controls.WebView)", "creator": { "name": "toshiro", "key": "toshiro", "displayName": "Toshiro Yagi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "toshiro", "key": "toshiro", "displayName": "Toshiro Yagi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 10 64bit\r\nTitanium SD 5.1.1.GA\r\nWindows Phone SDK 8.1", "comment": { "comments": [ { "id": "373320", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~toshiro], Please provide a complete test case that we can use to regenerate the issue. Also please specify your complete environment information. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-12-20T10:34:39.000+0000", "updated": "2015-12-20T10:34:39.000+0000" }, { "id": "374066", "author": { "name": "toshiro", "key": "toshiro", "displayName": "Toshiro Yagi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Uh oh, I somehow failed to give you needed information. Reproducing this problem is rather simple. Create a project, open app/controllers/index.js and just add one line.\r\n\r\n{code:java}\r\nfunction doClick(e) {\r\n alert($.label.text);\r\n}\r\n\r\n//var view = require('Windows.UI.Xaml.Window');\r\nvar view = require(\"Windows.UI.Xaml.Controls.WebView\");\r\n$.index.open();\r\n{code}\r\n\r\nAnd build command is:\r\n\r\n{code:java}\r\nappc ti build -p windows -T wp-emurator -P MY_PASSWORD -R generated.pfx\r\n{code}\r\n\r\nor\r\n\r\n{code:java}\r\nappc ti build -p windows -T ws-local -P MY_PASSWORD -R generated.pfx\r\n{code}\r\n\r\nI've already provided my environment info above, and I do admit \"Windows 10 *61bit*\" was weird typo that has been fixed so now you can reproduce this error with serious face ;-)\r\n\r\nAnd one more thing, if you uncomment \"Windows.UI.Xaml.Window\" line and comment out \"Windows.UI.Xaml.Controls.WebView\", build ends successfully (only when your build target is wp-emulator or wp-device).", "updateAuthor": { "name": "toshiro", "key": "toshiro", "displayName": "Toshiro Yagi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-08T08:00:12.000+0000", "updated": "2016-01-08T08:03:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }