Package: anki Version: 2.1.15+dfsg-3 Severity: normal Hi,
viewing the statistics (t) of a deck seems to have changed with the semi
recent updates of jquery on a Debian sid system. The following error is
printed on the console and the second last "Answer button" doesn't show
a graph and "Card Types" one shows a 0 graph. The text stats displayed
alongside are correct though.
JS error on line 4044: jQuery.Deferred exception: text.indexOf is not a
function TypeError: text.indexOf is not a function
at Canvas.addText
(http://127.0.0.1:32983/_sys/jquery-flot/jquery.flot.min.js:1:6168)
at drawAxisLabel
(http://127.0.0.1:32983/_sys/jquery-flot/jquery.flot.min.js:1:49770)
at Object.<anonymous>
(http://127.0.0.1:32983/_sys/jquery-flot/jquery.flot.min.js:1:50176)
at Function.each (http://127.0.0.1:32983/_sys/jquery/jquery.js:379:19)
at drawAxisLabels
(http://127.0.0.1:32983/_sys/jquery-flot/jquery.flot.min.js:1:48046)
at setupGrid
(http://127.0.0.1:32983/_sys/jquery-flot/jquery.flot.min.js:1:34024)
at new Plot
(http://127.0.0.1:32983/_sys/jquery-flot/jquery.flot.min.js:1:17567)
at Function.$.plot
(http://127.0.0.1:32983/_sys/jquery-flot/jquery.flot.min.js:1:58962)
at HTMLDocument.<anonymous> (data:text/html;charset=UTF-8,…[lots of encoded
html]…)
at mightThrow (http://127.0.0.1:32983/_sys/jquery/jquery.js:3760:29)
undefined
JS error on line 4053: Uncaught TypeError: text.indexOf is not a function
libjs-jquery-flot had a massive version jump (from 0.8.3+dfsg-2 to
4.2.1+dfsg-2) so together with the error that seems the most likely
suspect.
I do get the feeling the other graphs changed too through, as the scales
seem off and at least "Added" seems to not display zero-days after the
last day something was added, I haven't investigated this too deeply
though as my only use for that feature is to give myself some head pats
after a session (look, some numbers went up!)… so please treat this as
ultra important 😉 (I guess others are a tiny bit more serious about this
feature though).
Debian Release: sid
Versions of packages anki depends on:
ii libjs-jquery 3.5.1+dfsg+~3.5.5-7
ii libjs-jquery-flot 4.2.1+dfsg-2
ii libjs-jquery-ui 1.12.1+dfsg-8
ii libjs-mathjax 2.7.9+dfsg-1
ii libqt5core5a 5.15.2+dfsg-2
ii python3 3.9.1-1
ii python3-bs4 4.9.3-1
ii python3-decorator 4.4.2-2
ii python3-distro 1.5.0-1
ii python3-distutils 3.9.1-2
ii python3-jsonschema 3.2.0-3
ii python3-markdown 3.3.3-1
ii python3-pyaudio 0.2.11-1.3+b1
ii python3-pyqt5 5.15.2+dfsg-3
ii python3-pyqt5.qtwebchannel 5.15.2+dfsg-3
ii python3-pyqt5.qtwebengine 5.15.2-1
ii python3-requests 2.25.1+dfsg-2
ii python3-send2trash 1.5.0-2
I tried in a new profile with a single card and got the same result, so
I think its a rather generic problem, but feel free to ask for more
details/data if that turns out to be important.
Thanks for maintaining this beast (especially as it seems to get worse
if I read the new upstream packaging request)!
Best regards
David Kalnischkies
signature.asc
Description: PGP signature

