Acknowledged

Visual Studio Code and makeWebRequest and SDK 4.1.6+

Hi,
this does not work with SDK 4.1.6 and later in Visual Studio Code:
Communications.makeWebRequest("https://api.openweathermap.org/data/2.5/weather", params, options, method(:onReceiveWeather));
Error:
Invalid '$.Toybox.Lang.Method(responseCode as Any, data as Any) as Any'
passed as parameter 4 of type
'PolyType<(callback(responseCode as $.Toybox.Lang.Number, data as Null or $.Toybox.Lang.Dictionary or $.Toybox.Lang.String) as Void)
or
(callback(responseCode as $.Toybox.Lang.Number, data as Null or $.Toybox.Lang.Dictionary or $.Toybox.Lang.String, context as $.Toybox.Lang.Object) as Void)>'.
Unfortunately I have no idea what could be causing this.
Has the function been removed or changed?
Regards
Joerg
Parents
  • My point still stands: you can either turn off type checking or attempt to fix type check errors, but not both at the same time.

    Also, you previously suggested turning off type checking in the extension settings, and now you are saying leave the default type checking level in the extension settings but change the the level in monkey.jungle lol.

    > By turning off type checking for now, you can see if any differences occur for your app starting with 4.1.6.

    Turning off type checking doesn't actually tell you if any differences occur for your app starting with 4.1.6 lol. Turning off type checking actually hides those differences (assuming all the differences are due to type checking - ofc if there's any differences unrelated to type checking, none of this advice applies to that at all.)

    > Then try the lowest level of type checking and see what you see.  Once that's ok, try the middle level of type checking, then the strict level

    Right, so actually, *turning on type checking* is what you are suggesting to do in order to fix type check errors....

Comment
  • My point still stands: you can either turn off type checking or attempt to fix type check errors, but not both at the same time.

    Also, you previously suggested turning off type checking in the extension settings, and now you are saying leave the default type checking level in the extension settings but change the the level in monkey.jungle lol.

    > By turning off type checking for now, you can see if any differences occur for your app starting with 4.1.6.

    Turning off type checking doesn't actually tell you if any differences occur for your app starting with 4.1.6 lol. Turning off type checking actually hides those differences (assuming all the differences are due to type checking - ofc if there's any differences unrelated to type checking, none of this advice applies to that at all.)

    > Then try the lowest level of type checking and see what you see.  Once that's ok, try the middle level of type checking, then the strict level

    Right, so actually, *turning on type checking* is what you are suggesting to do in order to fix type check errors....

Children
No Data