Closed Ankilli closed 1 year ago
As I review my cards an error message pops up as soon as I rate an card (happens about every 10th or so card)
Ope, sorry you're running into this! I created a quick patch that might fix the issue here: https://github.com/iamjustkoi/LeechToolkit/releases/download/v1.1.1-a1/LeechToolkit.ankiaddon
Defs let me know how that goes! Will continue to try and look into it more on my end, though, too.
Thank you so much for the reply & quick fix! I tried it but unfortunately the issue still persists :) But as far as I can tell it happens far less (like every 40th-50th card) Apart from that the error message changed a tiny bit:
I highlighted the differences in bold text as far as I spotted them. I also noticed that the (most recent) error message ist always the same:
[…] 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
Caught exception:
Traceback (most recent call last):
File "aqt.taskman", line 122, in _on_closures_pending
File "aqt.taskman", line 71, in
Another thing I noticed: When I select a leech to Un-leech it, a small window ('conf') pops up (see attachment)
So far amazing addon with impressive depths! :o
Thank you so much for the reply & quick fix!
No prob!
as far as I can tell it happens far less (like every 40th-50th card)
Shoot, that makes it a bit weirder to figure out. I made another build that might be able to fix the issue, or at least cause an extra undo step instead of outputting an error (linked below).
When I select a leech to Un-leech it, a small window ('conf') pops up (see attachment)
Oh boy, uh, I might move this to another thread, but will have to see how it goes.
For the time being, I made a quick debug patch on top of the previous fix: https://drive.google.com/file/d/103Bio5kbizH7znIh1BiqF10uTHtHUgeK/view?usp=sharing
It should output a new file in the add-on's directory (Tools -> Add-ons -> Leech Toolkit (select) -> View Files) called "browser-debug.txt" after you try to leech/un-leech a card in the browser window.
If you can send me the file/contents I might be able to pinpoint the issue better, probably.
So far amazing addon with impressive depths! :o
Thanks so much, happy you're enjoying it! :D
Thank you! I installed the quick debug patch but now the addon won't load and I get the following error message (attached).
Translation: One of the installed extensions could will not be loaded. If the problem continues exists, please click on the menu item Extras - extensions that disable extensions or uninstall
When loading 'Leech Toolkit': Traceback (most recent call last): File "aqt.addons",line 244, in loadAddons file"/users/angle/library/application Support/Anki2/addons21/368380974/ Init _.py",line 5,in from.src import options, reviewer, bottombar, deckoptions,sync, browser file"/users/angle/library/application Support/Anki2/addons21/368380974/src/ options.py",line 69,in from.. res.ui.actions_formimport Ui ActionsForm file"/users/angle/library/application Support/Anki2/addons21/368380974/res/ui/ actions_form.py",line 9,in from PyQt6 import QtCore, QtGui, QtWidgets ModuleNotFoundError: No module named 'PyQ+6'
':D
Oh, whoops! The auto imports get me every time.
Should be fixed now (new upload): https://drive.google.com/file/d/103Bio5kbizH7znIh1BiqF10uTHtHUgeK/view?usp=sharing
thank you, now it worked :)
Just to be clear: I started Anki, tried to un-leech a leech -> 'conf'-window popped up -> I looked for the browser-debug.txt and it says the following:
checkpoint-0
File "C:\Users\jtrit\Python\Anki\anki-main-env\runanki.py", line 83, in
hope it helps :)
thank you, now it worked :)
Just to be clear: I started Anki, tried to un-leech a leech -> 'conf'-window popped up -> I looked for the browser-debug.txt and it says the following: ... hope it helps :)
Oh, shoot, that's a bit dumb of me. Looks like it didn't work, actually! I just packed my test build in with everything, so that ended up being the file I accidentally uploaded. Sorry about that! Just letting some small mistakes through over and over again, right now.
This version should actually work, now, and include the correct file paths this time for writing (thanks for being patient with me!):
https://drive.google.com/file/d/103Bio5kbizH7znIh1BiqF10uTHtHUgeK/view?usp=sharing
(just gonna hide the previous comment, for the time being)
Hmmm I tried multiple times but a .txt. file is not being created :/
I wonder why nobody else mentioned anything like that yet ':D
Hmmm I tried multiple times but a .txt. file is not being created :/
Oh, actually, it not working is a pretty good clue, too! Made another edit, this time it should output a text file, otherwise I can't think of much else I can do on my end, unfortunately.
I wonder why nobody else mentioned anything like that yet ':D
Yeah, may end of being OS-specific or something more unique to your install. Hopefully nothing too bad, though.
(https://drive.google.com/file/d/103Bio5kbizH7znIh1BiqF10uTHtHUgeK/view?usp=sharing)
If that doesn't end up making anything though, you might also want to try going to wherever you have Anki's launcher and launching it with the console version (same folder), instead (probs a .bat, or .sh file, or something else with console in its name). It might give a bit more of a clue for what's happening when you run the Un-Leech/Leech action in the browser.
Oh, also, just double checking if the first issue was solved or not, just in case? Will probs move this to a new thread for better tracking.
this time it should output a text file
unfortunately not :/
launching it with the console version
I will try that one, never heard of this even existing so far^^
Edit: Okay, so I could only use the Terminal.app on macOS for logging everything that happens in Anki.
When I try to Leech or Un-leech a card the following appears:
Traceback (most recent call last):
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
Oh, also, just double checking if the first issue was solved or not, just in case? Will probs move this to a new thread for better tracking.
I will know tomorrow as I do my reviews and see if the error pops up again :) But tbh if I get an error message every 40th to 50th card it's not the end of the world ';D
KeyError: 'conf'
Nicely done, thought it was something like this! Thanks for sticking with it! I'll see what I can do about building a fix for it as soon as I can.
I will know tomorrow as I do my reviews and see if the error pops up again :) But tbh if I get an error message every 40th to 50th card it's not the end of the world ';D
Haha, sounds good, will still try to fix up as much as I can on my end! 👍
KeyError: 'conf'
Also gonna move this one over to a new thread (#6).
I will know tomorrow as I do my reviews and see if the error pops up again :)
I reviewed around 700 cards and not a single error msg popped up! Guess it's fixed then, good job! 👍
My version is 1.1.1-a4
I reviewed around 700 cards and not a single error msg popped up! Guess it's fixed then, good job! 👍
Actually I'm pretty sure this is causing issue #7 now, to be honest! Gonna keep the thread open until I can push the fix to the main branch/schedule for release, for the time being.
Appreciate it, either way! 😄
Scheduled for the next release!
Should be fully resolved in this most recent hot-fix: https://github.com/iamjustkoi/LeechToolkit/releases/download/v1.1.1-a5/LeechToolkit.ankiaddon
Thanks again for reporting in!
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
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
:)