glutanimate / review-heatmap

Anki add-on to help you keep track of your review activity
https://ankiweb.net/shared/info/1771074083
Other
1.2k stars 89 forks source link

Not Showing on Anki 2.1.48 #133

Closed MickeyAnne closed 2 years ago

MickeyAnne commented 2 years ago

Problem description

I had to uninstall everything and reinstall it to fix a different problem with Anki itself. When I reinstalled the only version I saw available was 2.1.48 so I chose it. After everything is reinstalled the heatmap part of the addon is not working. I can still see the arrow buttons and the option and support buttons. None of the colored boxes are there anymore.

image

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Information about your Anki set-up

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):


    Anki 2.1.48 (fb07bad3) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
    Platform: Windows 10
    Flags: frz=True ao=True sv=3
    Add-ons, last update check: 2021-10-30 12:36:40

    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    '' ['popup_dictionary', 0, 'None', mod]
    Add Hyperlink ['318752047', 2021-07-10T13:40, 'None', '']
    Additional Card Fields Fork for 21 ['744725736', 2020-09-20T06:50, 'None', mod]
    Advanced Browser ['874215009', 2021-07-22T16:14, 'None', '']
    Anki Simulator ['817108664', 2021-08-07T14:24, 'None', '']
    Batch Editing ['291119185', 2019-09-19T12:04, 'None', '']
    BetterSearch ['1052724801', 2021-08-04T15:51, 'None', mod]
    Browser Resizer ['1435775540', 2021-08-01T16:11, 'None', '']
    Browser TableEditor side-by-side horizontal split ['831846358', 2021-05-27T11:47, 'None', mod]
    Clickable Tags v20 Anki 2120 support ['1739176371', 2021-10-16T18:27, 'None', '']
    Collapsible Fields ['1896168623', 2021-08-28T16:45, 'None', '']
    Convert Subdecks to Tag Hierarchy ['1172858842', 2020-02-23T16:03, 'None', '']
    Custom Background Image and Gear Icon ['1210908941', 2021-08-19T20:20, 'None', mod]
    Customize Keyboard Shortcuts ['24411424', 2021-10-30T12:32, 'None', mod]
    Edit Field During Review Cloze ['385888438', 2021-07-31T00:57, '6.7', mod]
    Extended Card Stats During Review ['1008566916', 2017-08-29T13:59, 'None', '']
    Extended Tag AddEdit Dialog ['1135507717', 2021-05-18T19:29, 'None', mod]
    Fastbar- with nightmode support ['46611790', 2021-08-22T15:33, 'None', '']
    Free Weekend - or Any Other Day ['742185195', 2020-04-10T06:57, 'None', mod]
    High Yield Tags ['1918380616', 2021-08-06T19:48, 'None', mod]
    Highlight Search Results in the Browser ['225180905', 2021-03-10T11:06, 'None', '']
    Hint Hotkeys ['1844908621', 2019-02-26T12:58, 'None', '']
    Image Editor ['307397307', 2021-09-10T05:41, 'None', '']
    Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-27T21:21, 'None', '']
    Image Style Editor ['1593969147', 2021-10-16T21:32, 'None', mod]
    ImageResizer ['1214357311', 2021-04-10T11:15, 'None', '']
    Learning Step and Review Interval Retention ['1949865265', 2020-12-28T16:40, 'None', '']
    More Decks Stats and Time Left ['1556734708', 2021-01-27T03:09, 'None', mod]
    More Overview Stats 21 ['738807903', 2021-07-30T14:13, 'None', mod]
    Pokemanki ['633922407', 2021-02-24T12:49, 'None', '']
    Progress Bar ['2091361802', 2019-03-02T20:27, 'None', '']
    Quick Colour Changing ['2491935955', 2019-03-02T20:26, 'None', mod]
    Rebuild All  Empty All for Anki 21 ['1810938259', 2018-07-19T23:40, 'None', '']
    Refocus Card when Reviewing 21 ['1642550423', 2019-03-04T12:20, 'None', '']
    Resize images in editor ['1103084694', 2021-07-19T01:35, 'None', mod]
    Review Heatmap ['review_heatmap', 2020-04-30T08:23, 'None', '']
    Special Fields ['1102281552', 2021-06-20T16:27, 'None', mod]
    Speed Focus Mode auto-alert auto-reveal auto-fail/good ['1046608507', 2019-06-02T04:11, 'None', '']
    Stats Plus ['1009670238', 2021-03-04T06:23, 'None', '']
    Symbols As You Type ['2040501954', 2021-03-21T21:17, 'None', '']
    Symbols ['1461102936', 2019-04-23T08:37, 'None', mod]
    The KING of Button Add-ons ['374005964', 2020-04-17T17:33, 'None', mod]
    Web Browser - Search terms Import texts and images automatically ['864545277', 2021-10-11T17:33, 'None', mod]
    Ze Frozen Fields ['94610912', 2021-02-11T18:06, 'None', '']
    add-on dialog searchfilter bar ['561945101', 2020-05-08T08:16, 'None', '']
    when is next learning card due today due ['563204849', 2020-09-13T08:51, 'None', mod]

    ===IDs of active AnkiWeb add-ons===
    1008566916 1009670238 1046608507 1052724801 1102281552 1103084694 1135507717 1172858842 1210908941 1214357311 1374772155 1435775540 1461102936 1556734708 1593969147 1642550423 1739176371 1810938259 1844908621 1896168623 1918380616 1949865265 2040501954 2091361802 225180905 24411424 2491935955 291119185 307397307 318752047 374005964 385888438 46611790 561945101 563204849 633922407 738807903 742185195 744725736 817108664 831846358 864545277 874215009 94610912

    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    '' ['put_ALL_due_learning_cards_first', 0, 'None', '']
    AMBOSS add-on ['0amboss_addon', 2020-07-20T08:55, 'None', '']
    Anki Zoom ['538879081', 2020-04-03T19:20, 'v1.1.3', mod]
    Card browser List only one card per note ['797076357', 2020-08-10T23:23, 'None', '']
    Load Balanced Scheduler ['208879074', 2019-07-23T21:37, 'None', '']
    Mini Format Pack ['295889520', 2019-03-01T21:13, 'None', '']
    Picmonic Anki Add-On ['40737180', 2021-09-29T13:58, 'None', '']
    Placeholder - The KING of Study Timers ignore this  do NOT download this now ['907028815', 2020-04-25T14:57, 'None', '']
    Puppy Reinforcement ['puppy_reinforcement', 2020-02-05T01:16, 'None', '']
    Reset Ease ['947935257', 2020-12-27T08:59, 'None', '']
    Straight Reward ['957961234', 2021-01-11T06:37, 'None', '']
    Syllabus - Anki Statistics and Export by Tag and Deck ['668156440', 2020-01-19T13:52, 'None', mod]
    Wrapper meta-addon ['396502676', 2021-05-18T20:10, 'None', '']

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

kguy18 commented 2 years ago

Issue persists on 2.1.49

swerage commented 2 years ago

I also have this issue and in my case it was due to an issue with also having the "Stats Plus" add-on (1009670238) installed. That add-on defines "require" in the global scope which breaks var d3 = typeof require === "function" ? require("d3") : window.d3; in cal-heatmap v3.6.3.2-anki.

So, if the root cause of your issue is the same as mine and if you'd rather have this add-on work you can go to Add-ons in Anki, locate "Stats Plus" and disable it. Then restart Anki.

MickeyAnne commented 2 years ago

@swerage that fixed it! I would rather have the heatmap. Thank you!

glutanimate commented 2 years ago

Hi guys, thanks for the reports! I've linked a new test build in #149 that should resolve the conflict (thanks to @swerage for investigating this). Would appreciate it if you gave it a try and let me know if it works for you. If you can, please post your results over on the other issue report, so that everything's in one place. Thanks!

(Note: the test build is based on the recently released v1.0.0 update, so it's only been tested on 2.1.49 and up, though it might work on Anki releases as early as 2.1.28.

swerage commented 2 years ago

Thanks for looking at it. Unfortunately I did not get the test build to work in 2.1.49. The console shows some issue with getting the .js file. This is without having enabled Stats Plus, I just replaced Review Heatmap 1.0.0-beta.1 with the test build. image

glutanimate commented 2 years ago

@swerage ah, apologies. Ran the wrong build command. This build should hopefully work.

And thanks for giving it a try!

swerage commented 2 years ago

@glutanimate That build works and seems to work fine with Stats Plus!

glutanimate commented 2 years ago

@swerage That's great to hear, thanks for giving it a spin!