Titanium JIRA Archive
Appcelerator Community (AC)

[AC-814] Build fails when using native API call (Windows.UI.Xaml.Controls.WebView)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-12-22T08:54:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsHyperloop, Windows
ReporterToshiro Yagi
AssigneeRadamantis Torres-Lechuga
Created2015-12-17T19:46:59.000+0000
Updated2016-03-08T07:37:05.000+0000

Description

Build fails with this simple line:
var webView = require('Windows.UI.Xaml.Controls.WebView');
Same result with -T wp-emulator and ws-local. Error log: {noformat} [INFO] Alloy compiled in 11.81509s [INFO] Alloy compiler completed successfully [INFO] Launching emulator: 8-1-1 [INFO] Missing 3 app icons, generating missing icons [INFO] Square44x44Logo.png - Used for logo - size: 44x44 [INFO] Square71x71Logo.png - Used for logo - size: 71x71 [INFO] Square150x150Logo.png - Used for logo - size: 150x150 [INFO] Processing JavaScript files [INFO] Detected native API reference: Windows.UI.Xaml.Controls.WebView [INFO] Generating i18n files [INFO] Generating Native Type Wrappers [WARN] Unable to find metadata for: Platform.Object [WARN] Unable to find metadata for: Platform.Object [WARN] Something went wrong. No metadata for type: Platform.Object [WARN] Unable to find metadata for: Platform.Object [WARN] Something went wrong. No metadata for type: Windows.Foundation.IAsyncOperationWithProgress2<K,V> No metadata found for: Windows.Foundation.Collections.IKeyValuePair2 [WARN] Unable to find metadata for: Platform.Object [WARN] Unable to find metadata for: Platform.Object [WARN] Unable to find metadata for: Platform.Object [WARN] Unable to find metadata for: Platform.Object No metadata found for: Windows.Foundation.Collections.IKeyValuePair2<string,object> [WARN] Unable to find metadata for: Platform.Object [WARN] Unable to find metadata for: Platform.Object [WARN] Something went wrong. No metadata for type: Windows.Foundation.IAsyncOperation1 [WARN] Something went wrong. No metadata for type: [mscorlib]System.Guid [WARN] Unable to find metadata for: [mscorlib]System.Guid No metadata found for: Windows.Foundation.Collections.IKeyValuePair2<string,class Windows.Storage.Streams.RandomAccessStreamReference> No metadata found for: [mscorlib]System.Guid No metadata found for: [mscorlib]System.Guid No metadata found for: [mscorlib]System.Guid No metadata found for: uint8[] No metadata found for: uint8[] No metadata found for: uint8[] No metadata found for: Windows.Foundation.Collections.IKeyValuePair2 No metadata found for: Windows.Foundation.Collections.IKeyValuePair2<string,object> No metadata found for: Windows.Foundation.Collections.IKeyValuePair2 No metadata found for: Windows.Foundation.Collections.IKeyValuePair2<string,object> No metadata found for: Windows.Foundation.Collections.IKeyValuePair2 No metadata found for: Windows.Foundation.Collections.IKeyValuePair2<string,object> No metadata found for: Windows.Foundation.Collections.IVector1 No metadata found for: string[] No metadata found for: Windows.Foundation.Collections.IKeyValuePair2<object,object> No metadata found for: Windows.Foundation.Collections.IKeyValuePair2 No metadata found for: Windows.Foundation.Collections.IKeyValuePair`2 [ERROR] An error occurred during build after 29s 815ms [ERROR] Something went wrong. No metadata for type: [mscorlib]System.Guid {noformat}

Comments

  1. Sharif AbuDarda 2015-12-20

    Hello [~toshiro], Please provide a complete test case that we can use to regenerate the issue. Also please specify your complete environment information. Thanks.
  2. Toshiro Yagi 2016-01-08

    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.
       function doClick(e) {
           alert($.label.text);
       }
       
       //var view = require('Windows.UI.Xaml.Window');
       var view = require("Windows.UI.Xaml.Controls.WebView");
       $.index.open();
       
    And build command is:
       appc ti build -p windows -T wp-emurator -P MY_PASSWORD -R generated.pfx
       
    or
       appc ti build -p windows -T ws-local -P MY_PASSWORD -R generated.pfx
       
    I'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 ;-) And 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).

JSON Source