Coder Social home page Coder Social logo

leechtoolkit's People

Contributors

iamjustkoi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

leechtoolkit's Issues

Addon not working for filtered decks

Hey there,

I am sorry I write another post again, don't stress with it 😅
I noticed that cards in a filtered deck are not bothered by my settings in the addon's menu.
Do I have to turn it on or check something for it to do so? :)

Kind regards and happy holidays 😄

Leech Function for New Cards

I am a medical student and I have been using Anki for 6+ years. I am currently using Anki under the assumption that it's for recalling facts that have been learned through outside resources, not for cramming facts into your head through brute memorization by forced card repetition.

That said, I'm finding that when I am learning new cards, there are some facts that I just haven't seemed to pick up during my first pass over the material. I see a card eight times and still don't have any idea what it's talking about. I would love to see a leech function for New cards in order to automatically isolate these unlearned facts and get them out of the way of recalling the material that I actually have learned.

For example, say there is a card about some medication that I remember seeing, but don't actually remember anything about. I would love to see a function where if I hit Again more than three or four times in a row for that card, that card be suspended and tagged with a "New Leech" tag, or something like that. This way I'm not wasting time on those cards while reviewing, but they are also nicely organized into a single place where I could look at them at the end of the day and review their content and actually learn it, rather than wasting time trying to pound the fact into my head through rote repetition of an Anki card.

Long story short, I would love to be able to apply your very versatile Leech Toolkit to New and Learning cards as well as to Mature cards.

Found this new error after updating today. Happens on opening of Anki.

Debug info:
Anki 2.1.55 (01caec2a) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-13.1-x86_64-i386-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-12-16 15:33:52
Add-ons possibly involved: ⁨Leech Toolkit⁩

Caught exception:
Traceback (most recent call last):
File "aqt.taskman", line 122, in _on_closures_pending
File "aqt.taskman", line 71, in
File "aqt.taskman", line 90, in wrapped_done
File "aqt.sync", line 112, in on_future_done
File "aqt.main", line 990, in on_collection_sync_finished
File "_aqt.hooks", line 4595, in call
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/sync.py", line 80, in sync_collection
toolkit_configs: dict = manager.get_all_configs()
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 71, in get_all_configs
toolkit_configs[f'{deck_name_id.id}'] = merge_fields(self.config.get(str(config_id), {}), self.config)
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 26, in merge_fields
config[field] = merge_fields(config[field], default_copy[field])
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 26, in merge_fields
config[field] = merge_fields(config[field], default_copy[field])
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 26, in merge_fields
config[field] = merge_fields(config[field], default_copy[field])
[Previous line repeated 983 more times]
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 21, in merge_fields
default_copy = default_config.copy()
RecursionError: maximum recursion depth exceeded while calling a Python object

Known Issue: Undo unstable for non-legacy builds and leech hooks unstable for scheduler 3

Bug/Issue Description
Undo unstable for different versions of Anki based on some rushed fixes for legacy and issues with some hook calls being deprecated for new client/scheduler version.

To Reproduce
Steps to reproduce:

  1. Start Reviews
  2. Leech Card/Perform Toolkit Action
  3. Cannot undo unless on v2 scheduler or lower/using legacy clients
  4. May sometimes be unable to undo with v2 scheduler unless closing reviewer and restarting reviews then fine until client reboot

Status
Looking into it now, will try to fix within the next update.

Still having NoteType:None window popping up BUT..

Hey there again,
after almost a year I tried to fix the issue again^^
This time I deactivated all my addons seperatly to rule out any connection with the issue.
In the end only an addon called "FSRS4Anki" was left. I reached out to the creator and he's on it :)
You can follow the issue here.

Bug/Issue Description
While doing regular reviews (not in a filtered deck) sometimes a window pops up, saying "Leech Toolkit ran into an error: NoneType: None".

To Reproduce
Have the FSRS4Anki Addon installed together with the Leech Toolkit and do regular reviews.

Error Message
see above.

Screenshots/Visuals
grafik

System/Debug Info
postet this last time already, I can do so again, if you want. If it helps, let me know :)

Kind regards :)

Deactivate notifications

Hey there :)

it would be nice if one could turn off notifications during reviews.

Looks like everything else works like a charm so far! 👍

How to do this..

Hey, I'm struggeling with the right settings, maybe you can help me out :)

When a card is hitting it's leech mark I want four things to happen:

  1. Reset the history so the next time I fail the card it's not leeched faster than on the first cycle, just like the first time.
  2. Add to New cards so the card goes into learning mode again
  3. Have no tagging on the card at all (so no "leech" or anything added.
  4. Move the card to a certain deck just for difficult cards where more learning steps are set.

So far this are my settings, but when a card is leeched it does change to a new card again but when I answer it, it just comes around again (I can answer the card unlimited times it just repeats itself on and on even if there are other cards to review as well in that deck)

grafik

grafik

grafik

grafik

grafik

grafik

Version: 1.1.1-a5

Cheers :)

Btw.: I can redo UnLeeched cards now, Leech/Un-Leech in the browser without any 'conf' msg.
Thank you A LOT! :)))

Saving With Flags Instead of Tags

Feature Description
Toggle/option to use flags instead of tags for leeched cards/notes.

Alternatives Considered
Using the built-in field-edit/flag actions to update cards without using the tagging option, for the time being.

Additional context
Originally suggested on AnkiWeb.

Flags save per-card but aren't available in earlier builds of 2.1, but might be able to give a better idea of what's been filtered by the add-on for people who might prefer that.

Error when pressing "study now" on a deck

Running with latest update from the addon page. Error code:

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-12-12 18:24:41

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 41, in cmd
File "aqt\webview.py", line 142, in _onCmd
File "aqt\webview.py", line 595, in _onBridgeCmd
File "aqt\overview.py", line 91, in _linkHandler
File "aqt\main.py", line 672, in moveToState
File "aqt\main.py", line 694, in _reviewState
File "aqt\reviewer.py", line 141, in show
File "aqt\reviewer.py", line 161, in refresh_if_needed
File "aqt\reviewer.py", line 209, in nextCard
File "aqt\reviewer.py", line 284, in _initWeb
File "aqt\webview.py", line 472, in stdHtml
File "aqt\hooks_gen.py", line 4099, in call
File "C:\Users\mertt\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 66, in try_append_wrapper
reviewer.toolkit_wrapper = ReviewWrapper(reviewer, content, _try_get_current_did())
File "C:\Users\mertt\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 112, in init
self.load_options(did)
File "C:\Users\mertt\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 148, in load_options
self.append_marker_html()
File "C:\Users\mertt\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 182, in append_marker_html
self.content.body += self.marker_html()
File "C:\Users\mertt\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 171, in marker_html
.replace('marker_color', self.toolkit_config[Config.LEECH_COLOR])
KeyError: 'leechColor'

Random window popping up: "NoneType: None"

Bug/Issue Description
While doing reviews a window occasionally pops up reading (screenshot attached below)

Screenshots/Visuals
grafik

System/Debug Info
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.6.1
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-12-08 09:18:50

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS add-on ['0amboss_addon', 2022-06-27T18:14, 'None', '']
AnKing Note Types Easy Customization ['952691989', 2022-11-22T19:37, 'None', '']
Anki Simulator ['817108664', 2021-08-07T21:24, 'None', '']
Anki Zoom ['538879081', 2020-04-04T02:20, 'v1.1.3', '']
AnkiWebView Inspector ['31746032', 2022-04-08T21:44, 'None', '']
Asset Manager ['656021484', 2021-08-29T23:07, 'None', '']
Batch Editing ['291119185', 2019-06-02T20:47, 'None', '']
BetterSearch ['1052724801', 2022-01-25T23:25, 'None', '']
Closet For Anki ['272311064', 2022-08-12T10:27, 'None', '']
Cloze Overlapper for Anki 21 ['109531687', 2021-01-12T04:12, 'None', '']
Copy notes ['1566928056', 2021-12-24T20:56, 'None', '']
Cross Profile Search and Import ['310394744', 2019-05-28T18:15, 'None', '']
Custom Background Image and Gear Icon ['1210908941', 2022-11-28T19:08, 'None', mod]
Customize Keyboard Shortcuts ['24411424', 2022-09-14T11:12, 'None', '']
Deadline2 ['723639202', 2021-05-02T06:45, 'None', mod]
Frozen Fields ['516643804', 2020-03-01T05:12, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T09:15, 'None', '']
Leaderboard ['41708974', 2022-05-12T11:46, 'None', mod]
Learning Step and Review Interval Retention ['1949865265', 2022-08-28T22:21, 'None', '']
Leech Toolkit ['368380974', 54903-10-22T01:10, 'None', '']
Mini Format Pack ['295889520', 2018-07-24T19:45, 'None', '']
More Decks Stats and Time Left ['1556734708', 2022-10-09T14:05, 'None', mod]
Postpone cards review ['1152543397', 2021-02-13T17:47, 'None', '']
Refocus Card when Reviewing 21 ['1642550423', 2018-09-19T16:14, 'None', '']
Remaining time for Anki 21 ['1508357010', 2020-12-13T15:14, '20.12.13i151', mod]
Removes Empty Note Types for 21 ['530953383', 2019-06-12T16:11, 'None', '']
Reset Card Scheduling ['300884351', 2018-09-18T18:17, 'None', '']
Resize images in editor ['1103084694', 2021-07-19T08:35, 'None', mod]
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']
Set Card Ease ['1387847178', 2022-11-17T19:41, 'None', mod]
Special Fields ['1102281552', 2022-11-22T02:49, 'None', mod]
Speed Focus Mode auto-alert auto-reveal auto-fail ['1046608507', 2019-06-02T11:11, 'None', '']
Straight Reward ['957961234', 2022-03-31T21:37, 'None', '']
Symbols As You Type ['2040501954', 2022-06-08T06:09, 'None', '']
Transfer scheduling data from one card to another ['94685914', 2020-09-18T11:23, 'None', '']
True Retention by Card Maturity ['923360400', 2017-08-29T21:00, 'None', '']
Ze Add Note Id ['886709118', 2021-03-02T21:06, 'None', '']
ZzLegacy Spelling Police ['1410276506', 2020-03-03T03:13, 'None', mod]
autoLapseNewInterval  automatically adjust the new interval after a lapse ['372281481', 2022-09-28T09:26, 'None', mod]

===IDs of active AnkiWeb add-ons===
1046608507 1052724801 109531687 1102281552 1103084694 1152543397 1210908941 1374772155 1387847178 1410276506 1508357010 1556734708 1566928056 1642550423 1949865265 2040501954 24411424 272311064 291119185 295889520 300884351 310394744 31746032 368380974 372281481 41708974 516643804 530953383 538879081 656021484 723639202 817108664 886709118 923360400 94685914 952691989 957961234

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Review Bottom Bar ['1136455830', 2022-09-29T15:31, 'None', mod]
Auto Ease Factor ['1672712021', 2021-03-21T19:11, 'None', mod]
ImageResizer ['1214357311', 2022-07-15T15:05, 'None', '']
Legacy ReMemorize ['323586997', 2020-11-20T06:27, 'None', mod]
Speed Focus Mode ['speed_focus_mode', 2019-06-29T00:35, 'None', '']
True Retention ['613684242', 2017-11-19T21:43, 'None', '']

Additional Context
I use the most recent LeechToolkit-Version 1.1.1-a5

not urgent, can't say how often it happens but quiet rare so far :)

Mysterious error while reviewing

Bug/Issue Description
I'm getting the mysterious error below, it takes a while some times, it some times happens when I hit "Again" on a card, on others it's when I hit "Good" on different cardd.. It doesn't happen if I undo the review and repeat the action. so I'm unsure what's causing it. The one addon I thought could be conflicting is morphman, but it wasn't active on the deck I was reviewing.

To Reproduce
Review things for a while, specific trigger yet unknown. I might try to deactivate most of my addons to see if I can narrow it down to a compatibility issue, but some times it takes a lot of cards for the error to happen, so it can prove time consuming for something that could potentially just be a unrelated bug. So I figured I'd register the issue here for starters.

Error Message

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 7
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-12-02 05:15:14

Caught exception:
Traceback (most recent call last):
  File "aqt\taskman.py", line 101, in _on_closures_pending
  File "aqt\taskman.py", line 71, in <lambda>
  File "aqt\taskman.py", line 90, in wrapped_done
  File "aqt\operations\__init__.py", line 112, in wrapped_done
  File "aqt\reviewer.py", line 414, in after_answer
  File "aqt\reviewer.py", line 426, in _after_answering
  File "aqt\hooks_gen.py", line 3080, in __call__
  File "C:\Users\windows 7\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 231, in on_answer_v3
    self.on_answer(context, card, ease)
  File "C:\Users\windows 7\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 370, in on_answer
    self.handle_card_updates(card, handle_card_answer)
  File "C:\Users\windows 7\AppData\Roaming\Anki2\addons21\368380974\src\reviewer.py", line 289, in handle_card_updates
    changes = self.reviewer.mw.col.merge_undo_entries(last_step)
  File "anki\collection.py", line 883, in merge_undo_entries
  File "anki\_backend\generated.py", line 912, in merge_undo_entries
  File "anki\_backend\__init__.py", line 131, in _run_command
anki.errors.InvalidInput: Invalid input: ⁨target undo op not found⁩

System/Debug Info

 Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
 Platform: Windows 7
 Flags: frz=True ao=True sv=3
 Add-ons, last update check: 2022-12-02 05:15:14
 
 
 ===Add-ons (active)===
 (add-on provided name [Add-on folder, installed at, version, is config changed])
 '' ['browser_field_to_tags', 0, 'None', '']
 Add a tag to notes with missing media ['2027876532', 2022-06-04T21:28, 'None', '']
 Add-on folder with readable names ['519936472', 2020-03-07T00:36, 'None', '']
 Advanced Browser ['874215009', 2022-09-26T21:28, 'None', '']
 Advanced Copy Fields ['1898445115', 2019-05-03T15:46, 'None', '']
 Advanced Review Bottom Bar ['1136455830', 2022-09-29T10:31, 'None', '']
 Always On Top ['1760080335', 2019-06-29T03:45, 'None', '']
 Anki Zoom ['538879081', 2020-04-03T21:20, 'v1.1.3', mod]
 AnkiWebView Inspector ['31746032', 2022-04-08T16:44, 'None', '']
 Batch Editing ['291119185', 2019-06-02T15:47, 'None', '']
 Browser external editor ['1463430836', 2022-05-18T04:31, 'None', '']
 CTRLF5 to Refresh the Browser ['1347728560', 2019-07-30T03:36, 'None', '']
 Colorful Browser Sidebar ['929609616', 2021-09-09T15:03, 'None', mod]
 Copy notes ['1566928056', 2021-12-24T16:56, 'None', '']
 Custom Styles font color background colour classes ['1899278645', 2021-03-02T21:41, 'None', '']
 Customize Keyboard Shortcuts ['24411424', 2022-06-29T03:13, 'None', '']
 Doublethink Disables Normalization ['1654528592', 2020-01-22T05:02, 'None', '']
 Fastbar- with nightmode support ['46611790', 2022-11-28T10:10, 'None', '']
 Japanese Automatic Flashcard Creation from Jishoorg - Anki 21 port ['907064139', 2018-05-11T16:46, 'None', '']
 Japanese Example Sentences ['2413435972', 2020-01-15T18:19, 'None', mod]
 Japanese Pitch Accent ['148002038', 2022-03-26T06:00, 'None', '']
 Japanese Support ['3918629684', 2020-01-15T17:23, 'None', mod]
 Japanese Vocab Frequency Generator ['1004691625', 2022-09-07T15:45, 'None', mod]
 JapaneseFurigana ['678316993', 2022-10-20T12:24, 'None', '']
 Kanji Colorizer stroke order diagrams ['1964372878', 2020-11-03T15:33, 'None', mod]
 KanjiEaters Heisig RTK Rebooting the Kanji - Related Vocab on Sentence Cards ['1855482626', 2019-06-09T13:58, 'None', '']
 KanjiVocab - smart automatic vocab for RTK ['1600796261', 2020-04-20T09:30, 'None', '']
 Korean Support ['1336389630', 2021-07-31T17:19, 'None', mod]
 Leech Toolkit ['368380974', 2022-10-12T19:27, 'None', '']
 MassAdd - Create multiple cards from raw text ['1909156369', 2021-08-16T10:26, 'None', '']
 MecabUnidic ['MecabUnidic', 0, 'None', '']
 MorphMan for Anki 21 ['900801631', 2022-01-29T19:23, 'None', '']
 Quick Lookup ['1778631913', 2022-09-18T21:46, 'None', '']
 See Previous Card Ratings in Reviewer ['1906641654', 2021-08-19T18:32, 'None', '']
 Sticky Tags ['1433159067', 2021-12-17T08:52, 'None', '']
 Toggle Tags via ReviewerEditorBrowser Context Menu ['2088508994', 2018-12-31T20:50, 'None', '']
 True Retention ['613684242', 2020-01-22T05:16, 'None', '']
 batch change fonts ['1479177943', 2021-12-06T11:53, 'None', '']
 extended html editor for fields and card templates with some versioning ['1043915942', 2022-09-10T11:40, 'None', '']
 numbers2stripes ['2088639269', 2021-11-05T02:16, 'None', '']
 
 ===IDs of active AnkiWeb add-ons===
 1004691625 1043915942 1136455830 1336389630 1347728560 1433159067 1463430836 1479177943 148002038 1566928056 1600796261 1654528592 1760080335 1778631913 1855482626 1898445115 1899278645 1906641654 1909156369 1964372878 2027876532 2088508994 2088639269 2413435972 24411424 291119185 31746032 368380974 3918629684 46611790 519936472 538879081 613684242 678316993 874215009 900801631 907064139 929609616
 
 ===Add-ons (inactive)===
 (add-on provided name [Add-on folder, installed at, version, is config changed])
 AJT Flexible Grading ['1715096333', 2022-08-25T14:30, 'None', mod]
 Add tags by shortcuts in Reviewer window one shortcut for one tag ['171767752', 2019-07-11T11:53, 'None', mod]
 Anki Dojo ['433778282', 2022-11-13T13:24, 'None', '']
 Card Layout Editor - syntax highlighting monospace font ['1483620388', 2018-01-17T12:11, 'None', '']
 Cloze Anything ['330680661', 2021-12-09T04:34, 'None', '']
 Field AutoComplete ['511710206', 2022-02-25T07:03, 'None', mod]
 Find and Replace in Card templatesNotetypesHTML ['992153575', 2021-09-17T03:34, 'None', '']
 Migaku Kanji GOD ['1872210448', 2022-03-15T11:48, 'None', mod]
 Nihongo Companion ['1946501448', 2022-04-12T19:07, 'None', '']
 Paste Images As WebP ['1151815987', 2022-10-23T12:19, 'None', mod]
 Pokemanki ['633922407', 2021-02-24T15:49, 'None', '']
 browser search aliasesabbreviations ['546509374', 2022-08-16T07:38, 'None', mod]

Additional Context
These are my settings:
image
On the Actions tab, I have an Add Tag active in the Leech Actions, and on Unleech I have it adding a tag and removing the previous Leech tag.
From the Advanced tab I only have "Show options in Tools menu" active, and the default filled "Use a custom tag to keep track of toolkit updates across devices"

Since I was unsure if Leech was a special tag that only Anki itself was allowed to use, I changed the Leech tag to LeechT just in case. I almost thought I had it sorted out, but the same error eventually occurred regardless.

Error Message when trying to Update the Collection

Bug/Issue Description
Issue with using the "Update Collection" button in options to sync the deck.

To Reproduce

  1. Go to Options then Advanced
  2. Click on "Update Collection"

Error Message

Debug info:
Anki 2.1.55 (01caec2a) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-13.1-x86_64-i386-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-12-16 15:33:52
Add-ons possibly involved: ⁨Leech Toolkit⁩

Caught exception:
Traceback (most recent call last):
File "aqt.taskman", line 122, in _on_closures_pending
File "aqt.taskman", line 71, in <lambda>
File "aqt.taskman", line 90, in wrapped_done
File "aqt.sync", line 112, in on_future_done
File "aqt.main", line 990, in on_collection_sync_finished
File "_aqt.hooks", line 4595, in __call__
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/sync.py", line 83, in sync_collection
thresholds[key] = deck_conf['lapse']['leechFails']
KeyError: 'lapse'

Additional Context
Originally reported on AnkiWeb.

Latest Update Causes Add-On Startup to Fail

Even when I downgrade Anki, it still throws me this error and doesn't let me load the addon.

Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.19045

When loading Leech Toolkit:
Traceback (most recent call last):
File "aqt.addons", line 245, in loadAddons
File "C:\Users\Ol' Jake\AppData\Roaming\Anki2\addons21\368380974_init_.py", line 7, in
from .src import options, reviewer, bottombar, deckoptions, sync, browser
File "C:\Users\Ol' Jake\AppData\Roaming\Anki2\addons21\368380974\src\options.py", line 13, in
from .consts import CURRENT_QT_VER, MARKER_HTML_TEMP, ROOT_DIR
File "C:\Users\Ol' Jake\AppData\Roaming\Anki2\addons21\368380974\src\consts.py", line 15, in
CURRENT_ANKI_VER = int(buildinfo.version.replace('2.1.', ''))
ValueError: invalid literal for int() with base 10: '23.12.1'

Error during Collection Update

I get the following error when I try to Update Collection. Can you help?

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-10.15.7-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2024-02-12 12:52:50
Add-ons possibly involved: ⁨Leech Toolkit⁩

Caught exception:
Traceback (most recent call last):
File "/Users/christopher.evans2/Library/Application Support/Anki2/addons21/368380974/src/sync.py", line 87, in sync_collection
thresholds[key] = deck_conf['lapse']['leechFails']
KeyError: 'lapse'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "aqt.taskman", line 122, in _on_closures_pending
File "aqt.taskman", line 71, in
File "aqt.taskman", line 90, in wrapped_done
File "aqt.sync", line 117, in on_future_done
File "aqt.main", line 1026, in on_collection_sync_finished
File "_aqt.hooks", line 4805, in call
File "/Users/christopher.evans2/Library/Application Support/Anki2/addons21/368380974/src/sync.py", line 93, in sync_collection
if deck_conf['id'] == key:
TypeError: list indices must be integers or slices, not str

Anki 2.1.57 (6b7d372c) Error for Anki 2.1.57 - maximum recursion depth after opening Anki

Happens after opening Anki 57

Debug info:
Anki 2.1.57 (6b7d372c) Python 3.9.15 Qt 6.3.2 PyQt 6.3.1
Platform: macOS-13.2-x86_64-i386-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-12-16 15:33:52
Add-ons possibly involved: ⁨Leech Toolkit⁩

Caught exception:
Traceback (most recent call last):
File "aqt.taskman", line 122, in _on_closures_pending
File "aqt.taskman", line 71, in
File "aqt.taskman", line 90, in wrapped_done
File "aqt.sync", line 117, in on_future_done
File "aqt.main", line 1023, in on_collection_sync_finished
File "_aqt.hooks", line 4624, in call
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/sync.py", line 80, in sync_collection
toolkit_configs: dict = manager.get_all_configs()
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 76, in get_all_configs
toolkit_configs[f'{deck_name_id.id}'] = merge_fields(self.config.get(str(config_id), {}), self.config)
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 28, in merge_fields
config[field] = merge_fields(config[field], default_copy[field])
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 28, in merge_fields
config[field] = merge_fields(config[field], default_copy[field])
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 28, in merge_fields
config[field] = merge_fields(config[field], default_copy[field])
[Previous line repeated 983 more times]
File "/Users/cso/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 21, in merge_fields
default_copy = default_config.copy()
RecursionError: maximum recursion depth exceeded while calling a Python object

Can't go back after reviewing a leech marked card

Hey there again,
when I answered a leech marked card (red blood drop) and press cmd+Z (undo) nothing happens.

Steps to reproduce:

  1. During reviews
  2. Answer a leech marked card (marked with red blood drop)
  3. Press Str+Z or cmd+Z or click on Edit+Undo
  4. Notice that nothing happens

Debuginfo:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.6.1
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-12-03 11:38:00

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS add-on ['0amboss_addon', 2022-06-27T18:14, 'None', mod]
AnKing Note Types Easy Customization ['952691989', 2022-11-22T19:37, 'None', '']
Anki Simulator ['817108664', 2021-08-07T21:24, 'None', '']
Anki Zoom ['538879081', 2020-04-04T02:20, 'v1.1.3', '']
AnkiWebView Inspector ['31746032', 2022-04-08T21:44, 'None', '']
Asset Manager ['656021484', 2021-08-29T23:07, 'None', '']
BetterSearch ['1052724801', 2022-01-25T23:25, 'None', '']
Closet For Anki ['272311064', 2022-08-12T10:27, 'None', '']
Cloze Overlapper for Anki 21 ['109531687', 2021-01-12T04:12, 'None', '']
Copy notes ['1566928056', 2021-12-24T20:56, 'None', '']
Cross Profile Search and Import ['310394744', 2019-05-28T18:15, 'None', '']
Custom Background Image and Gear Icon ['1210908941', 2022-11-28T19:08, 'None', mod]
Customize Keyboard Shortcuts ['24411424', 2022-09-14T11:12, 'None', '']
Deadline2 ['723639202', 2021-05-02T06:45, 'None', mod]
Frozen Fields ['516643804', 2020-03-01T05:12, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T09:15, 'None', '']
Leaderboard ['41708974', 2022-05-12T11:46, 'None', mod]
Learning Step and Review Interval Retention ['1949865265', 2022-08-28T22:21, 'None', '']
Leech Toolkit ['368380974', 54890-09-18T03:17, 'None', '']
Mini Format Pack ['295889520', 2018-07-24T19:45, 'None', '']
More Decks Stats and Time Left ['1556734708', 2022-10-09T14:05, 'None', mod]
Postpone cards review ['1152543397', 2021-02-13T17:47, 'None', '']
Refocus Card when Reviewing 21 ['1642550423', 2018-09-19T16:14, 'None', '']
Remaining time for Anki 21 ['1508357010', 2020-12-13T15:14, '20.12.13i151', mod]
Removes Empty Note Types for 21 ['530953383', 2019-06-12T16:11, 'None', '']
Reset Card Scheduling ['300884351', 2018-09-18T18:17, 'None', '']
Resize images in editor ['1103084694', 2021-07-19T08:35, 'None', mod]
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']
Set Card Ease ['1387847178', 2022-11-17T19:41, 'None', mod]
Special Fields ['1102281552', 2022-11-22T02:49, 'None', mod]
Speed Focus Mode auto-alert auto-reveal auto-fail ['1046608507', 2019-06-02T11:11, 'None', '']
Straight Reward ['957961234', 2022-03-31T21:37, 'None', '']
Symbols As You Type ['2040501954', 2022-06-08T06:09, 'None', '']
Transfer scheduling data from one card to another ['94685914', 2020-09-18T11:23, 'None', '']
True Retention by Card Maturity ['923360400', 2017-08-29T21:00, 'None', '']
Ze Add Note Id ['886709118', 2021-03-02T21:06, 'None', '']
ZzLegacy Spelling Police ['1410276506', 2020-03-03T03:13, 'None', mod]
autoLapseNewInterval  automatically adjust the new interval after a lapse ['372281481', 2022-09-28T09:26, 'None', mod]

===IDs of active AnkiWeb add-ons===
1046608507 1052724801 109531687 1102281552 1103084694 1152543397 1210908941 1374772155 1387847178 1410276506 1508357010 1556734708 1566928056 1642550423 1949865265 2040501954 24411424 272311064 295889520 300884351 310394744 31746032 368380974 372281481 41708974 516643804 530953383 538879081 656021484 723639202 817108664 886709118 923360400 94685914 952691989 957961234

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Review Bottom Bar ['1136455830', 2022-09-29T15:31, 'None', mod]
Auto Ease Factor ['1672712021', 2021-03-21T19:11, 'None', mod]
ImageResizer ['1214357311', 2022-07-15T15:05, 'None', '']
Legacy ReMemorize ['323586997', 2020-11-20T06:27, 'None', mod]
Speed Focus Mode ['speed_focus_mode', 2019-06-29T00:35, 'None', '']
True Retention ['613684242', 2017-11-19T21:43, 'None', '']

In general not a big deal nor something that bothers me, just thought you may want to know :)

Popup window with the message 'conf' when trying to leech/un-leech cards in the browser

Bug/Issue Description
When trying to Leech/Un-leech a card, a window pops up with the message 'conf' on it and the cards aren't updated (can't be leeched/un-leeched).

To Reproduce
Steps to reproduce:

  1. Go to the Card/Note Browser window
  2. Select Card(s)
  3. Leech/Un-Leech

Error Message

File "concurrent.futures.thread", line 52, in run
File "aqt.operations", line 105, in wrapped_op
File "/Users/Winkel/Library/Application Support/Anki2/addons21/368380974/src/browser.py", line 200, in
start_collection_op(browser, lambda col: action_operation(col), tip_message, len(browser.selected_cards()))
File "/Users/Winkel/Library/Application Support/Anki2/addons21/368380974/src/browser.py", line 154, in action_operation
toolkit_configs = manager.get_all_configs()
File "/Users/Winkel/Library/Application Support/Anki2/addons21/368380974/src/config.py", line 48, in get_all_configs
config_id = self._mw.col.decks.get(deck_name_id.id)['conf']
KeyError: 'conf'

Screenshots/Visuals

System/Debug Info
Debuginformationen:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.6.1
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-12-02 10:38:19
Möglicherweise beteiligte Erweiterungen: ⁨Leech Toolkit⁩

Additional Context
Originally posted in #4.

Leech Toolkit for filtered decks

Hey there :)
I enjoy the addon! Thanks again for the great work.
Can't report any issues for now!
Lately I find myself using filtered decks alot since I got behind schedule and work through a pile of due cards using filtered decks.
Unfortunately the Leech Toolkit doesn't cover those and a lot of cards are handled the ol' anki way.

Would it be difficult to extend the addon feature to filtered decks? No need to rush ofc^^

With kind regards :)

Error when trying to update the entire collection

Bug/Issue Description
add-on gives an error when trying to update the entire collection.

To Reproduce
To reproduce:

  1. Open Options
  2. Head to advanced tab
  3. Try to update the entire collection

Error Message

Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0 
Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=2 
Add-ons, last update check: 2023-07-03 13:47:15 
Caught exception: 
Traceback (most recent call last): 
File "C:\Users\<user>\AppData\Roaming\Anki2\addons21\368380974\src\sync.py", line 87, in sync_collection thresholds[key] = deck_conf['lapse']['leechFails'] KeyError: 'lapse' 
During handling of the above exception, another exception occurred: 
Traceback (most recent call last): 
File "C:\Users\<user>\AppData\Roaming\Anki2\addons21\368380974\src\options.py", line 551, in <lambda> self.ui.syncUpdateButton.clicked.connect(lambda: sync_collection(True)) 
File "C:\Users\<user>\AppData\Roaming\Anki2\addons21\368380974\src\sync.py", line 93, in sync_collection if deck_conf['id'] == key: TypeError: list indices must be integers or slices, not str.

Additional Context
Originally reported on AnkiWeb.

Error Message once in a while

Bug/Issue Description
As I review my cards an error message pops up as soon as I rate an card (happens about every 10th or so card)

To Reproduce
don't know any other occasion than just reviewing..

Screenshots/Visuals
Log pasted

System/Debug Info

Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.6.1
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-12-01 10:22:33


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AMBOSS add-on ['0amboss_addon', 2022-06-27T18:14, 'None', mod]
AnKing Note Types Easy Customization ['952691989', 2022-11-22T19:37, 'None', '']
Anki Simulator ['817108664', 2021-08-07T21:24, 'None', '']
Anki Zoom ['538879081', 2020-04-04T02:20, 'v1.1.3', '']
AnkiWebView Inspector ['31746032', 2022-04-08T21:44, 'None', '']
Asset Manager ['656021484', 2021-08-29T23:07, 'None', '']
BetterSearch ['1052724801', 2022-01-25T23:25, 'None', '']
Closet For Anki ['272311064', 2022-08-12T10:27, 'None', '']
Cloze Overlapper for Anki 21 ['109531687', 2021-01-12T04:12, 'None', '']
Copy notes ['1566928056', 2021-12-24T20:56, 'None', '']
Cross Profile Search and Import ['310394744', 2019-05-28T18:15, 'None', '']
Custom Background Image and Gear Icon ['1210908941', 2022-11-28T19:08, 'None', mod]
Customize Keyboard Shortcuts ['24411424', 2022-09-14T11:12, 'None', '']
Deadline2 ['723639202', 2021-05-02T06:45, 'None', mod]
Frozen Fields ['516643804', 2020-03-01T05:12, 'None', '']
Image Occlusion Enhanced ['1374772155', 2022-04-09T09:15, 'None', '']
Leaderboard ['41708974', 2022-05-12T11:46, 'None', mod]
Learning Step and Review Interval Retention ['1949865265', 2022-08-28T22:21, 'None', '']
Leech Toolkit ['368380974', 2022-10-13T00:27, 'None', '']
Mini Format Pack ['295889520', 2018-07-24T19:45, 'None', '']
More Decks Stats and Time Left ['1556734708', 2022-10-09T14:05, 'None', mod]
Postpone cards review ['1152543397', 2021-02-13T17:47, 'None', '']
Refocus Card when Reviewing 21 ['1642550423', 2018-09-19T16:14, 'None', '']
Remaining time for Anki 21 ['1508357010', 2020-12-13T15:14, '20.12.13i151', mod]
Removes Empty Note Types for 21 ['530953383', 2019-06-12T16:11, 'None', '']
Reset Card Scheduling ['300884351', 2018-09-18T18:17, 'None', '']
Resize images in editor ['1103084694', 2021-07-19T08:35, 'None', mod]
Review Heatmap ['review_heatmap', 2020-04-30T15:23, 'None', '']
Set Card Ease ['1387847178', 2022-11-17T19:41, 'None', mod]
Special Fields ['1102281552', 2022-11-22T02:49, 'None', mod]
Speed Focus Mode auto-alert auto-reveal auto-fail ['1046608507', 2019-06-02T11:11, 'None', '']
Straight Reward ['957961234', 2022-03-31T21:37, 'None', '']
Symbols As You Type ['2040501954', 2022-06-08T06:09, 'None', '']
Transfer scheduling data from one card to another ['94685914', 2020-09-18T11:23, 'None', '']
True Retention by Card Maturity ['923360400', 2017-08-29T21:00, 'None', '']
Ze Add Note Id ['886709118', 2021-03-02T21:06, 'None', '']
ZzLegacy Spelling Police ['1410276506', 2020-03-03T03:13, 'None', mod]
autoLapseNewInterval  automatically adjust the new interval after a lapse ['372281481', 2022-09-28T09:26, 'None', mod]

===IDs of active AnkiWeb add-ons===
1046608507 1052724801 109531687 1102281552 1103084694 1152543397 1210908941 1374772155 1387847178 1410276506 1508357010 1556734708 1566928056 1642550423 1949865265 2040501954 24411424 272311064 295889520 300884351 310394744 31746032 368380974 372281481 41708974 516643804 530953383 538879081 656021484 723639202 817108664 886709118 923360400 94685914 952691989 957961234

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Review Bottom Bar ['1136455830', 2022-09-29T15:31, 'None', mod]
Auto Ease Factor ['1672712021', 2021-03-21T19:11, 'None', mod]
ImageResizer ['1214357311', 2022-07-15T15:05, 'None', '']
Legacy ReMemorize ['323586997', 2020-11-20T06:27, 'None', mod]
Speed Focus Mode ['speed_focus_mode', 2019-06-29T00:35, 'None', '']
True Retention ['613684242', 2017-11-19T21:43, 'None', '']

Additional Context
Error Log:
Fehler
Es ist ein Fehler aufgetreten. Bitte starten Sie Anki neu und halten Sie während des Startvorgangs die Umschalttaste gedrückt, damit Anki die installierten Erweiterungen temporär deaktiviert.
Wenn das Problem nur auftritt, wenn die Erweiterungen aktiviert sind, dann benutzen Sie bitte den Menueintrag Extras > Erweiterungen um die problembehaftete Erweiterung durch selektives Deaktivieren herauszufinden.
Wenn Sie die entsprechende Erweiterung herausgefunden haben, dann bitten wir, dass Sie sich mit einem entsprechenden Problembericht an die Support-Seite für Erweiterungen wenden, damit der Fehler behoben werden kann.
Debuginformationen:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.6.1
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2022-12-01 10:22:33
Möglicherweise beteiligte Erweiterungen: ⁨Leech Toolkit⁩

Caught exception:
Traceback (most recent call last):
File "aqt.taskman", line 122, in _on_closures_pending
File "aqt.taskman", line 71, in
File "aqt.taskman", line 90, in wrapped_done
File "aqt.operations", line 125, in wrapped_done
File "aqt.reviewer", line 437, in after_answer
File "aqt.reviewer", line 450, in _after_answering
File "aqt.hooks_gen", line 3345, in call
File "/Users/Winkel/Library/Application Support/Anki2/addons21/368380974/src/reviewer.py", line 229, in on_answer_v3
self.on_answer(context, card, ease)
File "/Users/Winkel/Library/Application Support/Anki2/addons21/368380974/src/reviewer.py", line 368, in on_answer
self.handle_card_updates(card, handle_card_answer)
File "/Users/Winkel/Library/Application Support/Anki2/addons21/368380974/src/reviewer.py", line 287, in handle_card_updates
changes = self.reviewer.mw.col.merge_undo_entries(last_step)
File "anki.collection", line 1004, in merge_undo_entries
File "anki._backend.generated", line 1756, in merge_undo_entries
File "anki._backend", line 146, in _run_command
anki.errors.InvalidInput: Ungültige Eingabe: ⁨target undo op not found⁩

:)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.