FuseNativeControls icon indicating copy to clipboard operation
FuseNativeControls copied to clipboard

Fuse v1.6.0

Open argsalmeida opened this issue 7 years ago • 2 comments

As of Fuse v1.6.0

This module started to show some warnings:

Modules/NativeControls/DatePicker.ScriptClass.uno(43.5): W4139: 'Fuse.Scripting.ScriptMethod`1..ctor(string,Uno.Action<Fuse.Scripting.Context, T, object[]>,Fuse.Scripting.ExecutionThread)' is obsolete: 'Use ScriptMethod<T>(string, Uno.Action<T)>), ScriptMethod<T>(string, Uno.Action<T, object[])>) or ScriptMethod<T>(string, Uno.Func<Fuse.Scripting.Context, T, object[], object)>) instead'

Modules/NativeControls/DatePicker.ScriptClass.uno(44.5): W4139: 'Fuse.Scripting.ScriptMethod`1..ctor(string,Uno.Action<Fuse.Scripting.Context, T, object[]>,Fuse.Scripting.ExecutionThread)' is obsolete: 'Use ScriptMethod<T>(string, Uno.Action<T)>), ScriptMethod<T>(string, Uno.Action<T, object[])>) or ScriptMethod<T>(string, Uno.Func<Fuse.Scripting.Context, T, object[], object)>) instead'

Modules/NativeControls/DatePicker.ScriptClass.uno(45.5): W4139: 'Fuse.Scripting.ScriptMethod`1..ctor(string,Uno.Action<Fuse.Scripting.Context, T, object[]>,Fuse.Scripting.ExecutionThread)' is obsolete: 'Use ScriptMethod<T>(string, Uno.Action<T)>), ScriptMethod<T>(string, Uno.Action<T, object[])>) or ScriptMethod<T>(string, Uno.Func<Fuse.Scripting.Context, T, object[], object)>) instead'

Modules/NativeControls/TimePicker.ScriptClass.uno(43.5): W4139: 'Fuse.Scripting.ScriptMethod`1..ctor(string,Uno.Action<Fuse.Scripting.Context, T, object[]>,Fuse.Scripting.ExecutionThread)' is obsolete: 'Use ScriptMethod<T>(string, Uno.Action<T)>), ScriptMethod<T>(string, Uno.Action<T, object[])>) or ScriptMethod<T>(string, Uno.Func<Fuse.Scripting.Context, T, object[], object)>) instead'

Does anyone know how to fix these warnings?

argsalmeida avatar Feb 12 '18 17:02 argsalmeida

I think you can fix them by using one of the suggested methods in the warning. But fuse is now shipping an official version of DatePicker and TimePicker, I think its better if you switch to those.

nekronos avatar Feb 19 '18 09:02 nekronos

I don't really understand Uno yet. So I don't really know how to use the suggested methods.

I'm using this module because the official versions doesn't have what I need and I added them to this module. Already suggested this features on the forum, but until now there was no update on it.

That's why I'm asking if someone knows how to fix the warnings, so I can use this until there is any update on the official ones.

argsalmeida avatar Feb 21 '18 09:02 argsalmeida