fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
179 stars 24 forks source link

Trying to 'Read First in Queue' raises an error #173

Closed tardiggerAde closed 3 years ago

tardiggerAde commented 3 years ago

What I did:

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.36 (c505894b) Python 3.8.1 Qt 5.15.1 PyQt 5.15.1
Platform: Linux
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-12-09 21:18:37
Add-ons possibly involved: ⁨Searching PDF Reading  Note-Taking in Add Dialog⁩

Caught exception:
Traceback (most recent call last):
  File "/home/adeeb/.local/share/Anki2/addons21/1781298089/src/menubar.py", line 86, in read_first
    tooltip("Queue is empty!")
NameError: name 'tooltip' is not defined

Additional info that might help

EDIT: I can open the pdf from the Queue Manager -> PDF notes -> Open

fonol commented 3 years ago

Thanks for the report, this will be fixed with the next update. Edit: update is up on Ankiweb

tardiggerAde commented 3 years ago

Installed update, instantly fixed the Read First button, improved performance on the PDF reader, and killed every mosquito in a 3 mile radius. Thank you!!

To be thorough: Launching from the console still gives me warning messages saying add-on should use methods on col.decks, not col.decks.decks dict, but it doesn't seem to affect anything.