Before the error happened, I was…
[Replace this text.]
Error message (don't change this)
Anki 24.06.3 (d678e393) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045
Traceback (most recent call last):
File "aqt.taskman", line 142, in _on_closures_pending
File "aqt.taskman", line 86, in <lambda>
File "aqt.taskman", line 106, in wrapped_done
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 445, in on_done
future.result()
File "concurrent.futures._base", line 439, in result
File "concurrent.futures._base", line 391, in __get_result
File "concurrent.futures.thread", line 58, in run
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 451, in <lambda>
lambda: reset_local_changes_to_notes(nids, ah_did=ah_did),
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 27, in reset_local_changes_to_notes
notes_data = [
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 30, in <listcomp>
if (note_data := ankihub_db.note_data(nid)) is not None
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 297, in note_data
fields=[
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 299, in <listcomp>
name=field_names[i],
IndexError: list index out of range
Before the error happened, I was…
[Replace this text.]
Error message (don't change this)
Anki 24.06.3 (d678e393) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045
Traceback (most recent call last):
File "aqt.taskman", line 142, in _on_closures_pending
File "aqt.taskman", line 86, in <lambda>
File "aqt.taskman", line 106, in wrapped_done
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 445, in on_done
future.result()
File "concurrent.futures._base", line 439, in result
File "concurrent.futures._base", line 391, in __get_result
File "concurrent.futures.thread", line 58, in run
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 451, in <lambda>
lambda: reset_local_changes_to_notes(nids, ah_did=ah_did),
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 27, in reset_local_changes_to_notes
notes_data = [
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 30, in <listcomp>
if (note_data := ankihub_db.note_data(nid)) is not None
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 297, in note_data
fields=[
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 299, in <listcomp>
name=field_names[i],
IndexError: list index out of range
Before the error happened, I was…**
[Replace this text.]
Error message (don't change this)
Anki 24.06.3 (d678e393) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045
Traceback (most recent call last):
File "aqt.taskman", line 142, in _on_closures_pending
File "aqt.taskman", line 86, in <lambda>
File "aqt.taskman", line 106, in wrapped_done
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 445, in on_done
future.result()
File "concurrent.futures._base", line 439, in result
File "concurrent.futures._base", line 391, in __get_result
File "concurrent.futures.thread", line 58, in run
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\gui\browser\browser.py", line 451, in <lambda>
lambda: reset_local_changes_to_notes(nids, ah_did=ah_did),
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 27, in reset_local_changes_to_notes
notes_data = [
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\main\reset_local_changes.py", line 30, in <listcomp>
if (note_data := ankihub_db.note_data(nid)) is not None
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 297, in note_data
fields=[
File "C:\Users\suhaib bukhari\AppData\Roaming\Anki2\addons21\1322529746\db\db.py", line 299, in <listcomp>
name=field_names[i],
IndexError: list index out of range
@ProductTeam I can reproduce the issue with the same deck (MangoMedic NEET PG Deck). The issue stems from the add-on not ignoring deleted notes when resetting local changes, resulting in field differences in deleted notes triggering the error. Looks like a quick fix @jakub.f.
No reviews will be lost. You can work around the issue for now by unsubscribing from the “MangoMedic NEET PG Deck” deck.
main reason I want reset is because I don’t know where from it shows more number of cards in parents deck than the cards I unsuspend in subdeck ,It looks like all sub decks are submerged on top it shows different number of cards