Riverpod: What happened to ProviderRefBase? - riverpod

Updating from 1.0.0-dev7 to 1.0.0 gives error:
Undefined class 'ProviderRefBase'.
Where can I find info on that or how to change code for the new version?

It was renamed. ProviderRefBase => Ref

Related

Problem with zabbix-fronend-php in maps after upgrade

I upgraded zabbix-frontend-php to last stable version (4.0.0) and get error in map.
In map i see only first element. In browser console i see next error:
TypeError: can't convert null to object jsLoader.php:2049:2
SVGElement.prototype.update http://zabbix.HOST/jsLoader.php:2049:2
SVGElement.prototype.create http://zabbix.HOST/jsLoader.php:2158:3
SVGElement http://zabbix.HOST/jsLoader.php:1980:3
SVGCanvas.prototype.createElement http://zabbix.HOST/jsLoader.php:1337:13
SVGTextArea.prototype.create http://zabbix.HOST/jsLoader.php:1753:17
SVGCanvas.prototype.createElement http://zabbix.HOST/jsLoader.php:1334:13
SVGElement.prototype.add http://zabbix.HOST/jsLoader.php:2015:16
SVGMapShape.prototype.update http://zabbix.HOST/jsLoader.php:3370:3
SVGMap.prototype.updateOrderedItems/< http://zabbix.HOST/jsLoader.php:2612:3
forEach self-hosted:268:13 SVGMap.prototype.updateOrderedItems http://zabbix.HOST/jsLoader.php:2607:2
SVGMap.prototype.update/< http://zabbix.HOST/jsLoader.php:2693:3
ImageCache.prototype.invokeCallback http://zabbixHOST/jsLoader.php:1847:3
ImageCache.prototype.handleCallback http://zabbix.HOST/jsLoader.php:1866:3
ImageCache.prototype.onImageLoaded http://zabbix.HOST/jsLoader.php:1878:2
ImageCache.prototype.preload/</image.onload http://zabbix.HOST/jsLoader.php:1935:4
I see this error at Forum zabbix , but it is not resolved.
For temporary solve this problem, i'm downloaded last zabbix-frontend-php from git (from trunk, 1.0.14 version) and was updated frontend. I'm not watching this error....

Cannot resolve method with (android.content.context)?

Cannot resolve method with(android.content.context)
Picasso.with(context).load(url).placeholder(R.drawable.placeholder).into(thumbnail);
What will be the problem? The error shows "With".
If you are using version 3.0.0-SNAPSHOT or 2.71828 you must use get() instead of with().
Picasso.get().load(url).placeholder(R.drawable.placeholder).into(thumbnail);
There are no release notes yet but you can see the commit here: Commit

Gmaps.build('Google') TypeError: undefined is not a function Gmaps4Rails

Using this gem: https://github.com/apneadiving/Google-Maps-for-Rails
I am trying to update to the newest gem version and experiencing a problem calling
Gmaps.build('Google') -> TypeError: undefined is not a function
but Gmaps is defined:
Gmaps -> Object {triggerOldOnload: function, loadMaps: function}
I have all followed the steps in the repo for the asset pipeline. Not sure what's causing this error.
You have legacy js somewhere because the code you have is from v1.x
You should just remove it.

Console error with example of ui.bootstrap.datepicker

I try to use angular-ui-bootstrap datepicker and it upset me for a while with an error on firebug console (Firefox 21) saying
Error: array is undefined
indexOf#http://localhost:9000/components/angular/angular.js:526
arrayRemove#http://localhost:9000/components/angular/angular.js:535
JQLiteUnbind#http://localhost:9000/components/angular/angular.js:1630
JQLite.prototype[name]#http://localhost:9000/components/angular/angular.js:2203
.link/<#http://localhost:9000/components/angular-ui-bootstrap-bower/ui-bootstrap-tpls.min.js:1
Scope.prototype.$digest#http://localhost:9000/components/angular/angular.js:7942
Scope.prototype.$apply#http://localhost:9000/components/angular/angular.js:8143
done#http://localhost:9000/components/angular/angular.js:9170
completeRequest#http://localhost:9000/components/angular/angular.js:9333
createHttpBackend/</xhr.onreadystatechange#http://localhost:9000/components/angular/angular.js:9304
http://localhost:9000/components/angular/angular.js
Line 5754
After I check every datepicker settings I check the given example in documentation, followed the link "edit it on plunker" and I got a similar error.
Error: array is undefined
indexOf#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:510
arrayRemove#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:519
JQLiteUnbind#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:1596
JQLite.prototype[name]#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:2149
.link/<#http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.5.0.js:1229
Scope.prototype.$digest#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:7878
Scope.prototype.$apply#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:8079
bootstrap/<#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:962
invoke#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:2843
bootstrap#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:961
angularInit#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:936
#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:14729
trigger#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:1723
createEventHandler/eventHandler/<#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:1958
forEach#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:133
createEventHandler/eventHandler#http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:1957
http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js
Line 5687
Then I try Chrome Version 26.0.1410.63 and I got a different error
TypeError: Cannot read property 'indexOf' of undefined
at indexOf (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:510:12)
at arrayRemove (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:519:15)
at JQLiteUnbind (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:1596:7)
at Object.JQLite.(anonymous function) [as unbind] (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:2149:17)
at Object.fn (http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.5.0.js:1229:21)
at Object.Scope.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:7878:27)
at Object.Scope.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:8079:24)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:962:13
at Object.invoke (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:2843:25)
at bootstrap (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:960:12)
It works but the error message upset me a lot and I thought that was something wrong with my code.
Can I assume this is not related with example given but with some internals or is the example missing something?
ui-bootstrap 0.5.0 has a bug,
(it tries to unbind 'focus' event handler, but handler doesn't exist)
https://github.com/angular-ui/bootstrap/blob/gh-pages/ui-bootstrap-tpls-0.5.0.js#L1226
you can apply this changes
https://github.com/angular-ui/bootstrap/commit/bf30898da27272df75f6c7ff26545ed16ebf1978
or build it directly from github
or wait for 0.6.0

dart - its_all_about_you tutorial error

I am trying to run the latest version of its_all_about_you with the latest version of Dart Editor/SDK and I am getting this error. I copied the latest source from github
Internal error: 'http://.../web/out/packages/web_ui/src/linked_list.dart':
Error: line 72 pos 29: cannot resolve class name 'IterableBase' from 'LinkedList'
class LinkedList<E> extends IterableBase<E> {
Does anyone know what the problem is and how to fix it? And for future reference how would one go about debugging the issue?
This looks like a version mismatch. Could you please verify that your sdk (comes with the editor) is up to date.
If the error persists after an upgrade, post the version number of your editor and try the following (untested) example:
import 'dart:collection';
class A extends IterableBase { get iterator => null; }
main() { new A(); }
In recent versions of Dart this should work.

Resources