Version 12.8

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
Nick
Posts: 84
Joined: Tue May 30, 2017 9:44 am
Contact:

Version 12.8

Postby Nick » Fri Dec 01, 2017 8:02 pm

Errors that dosen't appear on 12.7 (ths is new):

JSIL.Browser.js?20171220548:199 Public type 'System.Net.INTERNAL_WebRequestHelper_JSOnly_RequestCompletedEventArgs' defined twice: <CSharpXamlForHtml5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface> and <CSharpXamlForHtml5.System.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface>
at Object.JSIL.WarningFormat (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:10541:13)
at Object.JSIL.DefineTypeName (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:1121:14)
at Object.JSIL.RegisterName (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:1990:8)
at Object.JSIL.MakeType (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:5632:8)
at INTERNAL_WebRequestHelper_JSOnly_RequestCompletedEventArgs$Members (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/app/CSharpXamlForHtml5.System.dll.js?20171220548:518:8)
at file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/app/CSharpXamlForHtml5.System.dll.js?20171220548:604:
JSIL.Browser.WarningService.write @ JSIL.Browser.js?20171220548:199
JSIL.Browser.js?20171220548:199 Public type 'System.Net.INTERNAL_WebRequestHelper_JSOnly_RequestCompletedEventHandler' defined twice: <CSharpXamlForHtml5, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface> and <CSharpXamlForHtml5.System.dll, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Public Interface>
at Object.JSIL.WarningFormat (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:10541:13)
at Object.JSIL.DefineTypeName (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:1121:14)
at Object.JSIL.RegisterName (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:1990:8)
at Object.JSIL.MakeDelegate (file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/libs/JSIL.Core.js?20171220548:9404:8)
at file:///C:/_WCG/test1/Application/AppAllInOne/bin/Debug/Output/app-cshtml5/app/CSharpXamlForHtml5.System.dll.js?20171220548:613:
JSIL.Browser.WarningService.write @ JSIL.Browser.js?20171220548:199
Themes.Menu.ItemMenuDisplaySettings.InitializeFields:6 Uncaught TypeError: Cannot set property a of [object Object] which has only a getter
at Themes_Menu_ItemMenuDisplaySettings_InitializeFields (Themes.Menu.ItemMenuDisplaySettings.InitializeFields:6)
at new Themes_Menu_ItemMenuDisplaySettings (Themes.Menu.ItemMenuDisplaySettings:12)
at Function.MenusInitialization_ApplicationCustomMenu (Tehnolog.js?20171220548:4680)
at Function.MenusInitialization_SetSectionMenu (Tehnolog.js?20171220548:4691)
at AppAllInOne_Theme.Theme_AppTheme (AppAllInOne.js?20171220548:313)
at AppAllInOne_Theme.Theme_Execute (AppAllInOne.js?20171220548:337)
at JSIL.InterfaceMethod.InterfaceMethod_CallInterface_I423$Execute$void$eq394 [as Call] (InterfaceMethod.CallInterface_I423$Execute$void=394:8)
at Object.TehnologTheme_ApplicationTheme (AppAllInOne.js?20171220548:122)
at Application1_MainPage.MainPage__ctor (AppAllInOne.js?20171220548:445)
at new Application1_MainPage (Application1.MainPage:17)

Fallow the line:
Themes.Menu.ItemMenuDisplaySettings.InitializeFields:6
Uncaught TypeError: Cannot set property a of [object Object] which has only a getter

(function(types,defaults
/*``*/) {
"use strict";
function Themes_Menu_ItemMenuDisplaySettings_InitializeFields(target) {
target.a = defaults.f0;
target.b = (+0.0); // this is the error:
// {Uncaught TypeError: Cannot set property a of [object Object] which has only a getter}
// Compiler error on Properties with Get only ?
// :!: Class dosen't have a such property with Get only!! :!:

target.c = defaults.f2;
target.d = new types.f3();
target.e = (+0.0);
target.f = (+0.0);
};
return Themes_Menu_ItemMenuDisplaySettings_InitializeFields;

})

Nick
Posts: 84
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: Version 12.8

Postby Nick » Fri Dec 01, 2017 8:52 pm

In code :

private ImagePositionEnum _ImagePositionEnum = ImagePositionEnum.None;
private double _ItemMenuWidth = 0; // Here is error :?:
private Orientation _Orientation = Windows.UI.Xaml.Controls.Orientation.Vertical;
private Thickness _Margin { get; set; }
private double _ImageWidth;
private double _ImageHeight;
Attachments
error.png
error.png (149.12 KiB) Viewed 7879 times

TaterJuice
Posts: 147
Joined: Thu Mar 16, 2017 5:40 am
Contact:

Re: Version 12.8

Postby TaterJuice » Sat Dec 02, 2017 12:42 pm

Nick wrote:In code :

private ImagePositionEnum _ImagePositionEnum = ImagePositionEnum.None;
private double _ItemMenuWidth = 0; // Here is error :?:
private Orientation _Orientation = Windows.UI.Xaml.Controls.Orientation.Vertical;
private Thickness _Margin { get; set; }
private double _ImageWidth;
private double _ImageHeight;


Have you tried:

Code: Select all

private double _ItemMenuWidth = 0.0;

Nick
Posts: 84
Joined: Tue May 30, 2017 9:44 am
Contact:

Re: Version 12.8

Postby Nick » Sat Dec 02, 2017 1:10 pm

It is a small "logical bug", because:
1) x=0
2) x=0.0
3) x=0.0D

All this forms of initialization must do the same think ;) because you are programing in .NET platform not in javascript
it is about "code style consistency"

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Version 12.8

Postby JS-Support @Userware » Fri Dec 08, 2017 3:17 am

Hi,

We are attempting to reproduce the issue related to doubles but fail to do so: could you please send us a small empty CSHTML5 project that contains just the issue?

Thanks a lot.
Regards,
JS-Support

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Version 12.8

Postby JS-Support @Userware » Mon Dec 11, 2017 12:28 am

Update: Beta 12.9 fixes the warnings "'System.Net.INTERNAL_WebRequestHelper_JSOnly_RequestCompletedEventArgs' defined twice"


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 27 guests

 

 

cron