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

NameError: name 'tooltip' is not defined #199

Closed oqicloud closed 3 years ago

oqicloud commented 3 years ago

Debug info: Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1 Platform: Mac 10.15.7 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-01-14 12:39:55 Add-ons possibly involved: ⁨Searching PDF Reading Note-Taking in Add Dialog⁩

Caught exception: Traceback (most recent call last): File "/Users/oqhan/Library/Application Support/Anki2/addons21/1781298089/src/dialogs/importing/quick_web_import.py", line 223, in pdf tooltip("""You have to set a save path for imported URLs first. NameError: name 'tooltip' is not defined

fonol commented 3 years ago

Thanks for the report, should be fixed.

oqicloud commented 3 years ago

Debug info: Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1 Platform: Mac 10.15.7 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-01-14 12:39:55 Add-ons possibly involved: ⁨Searching PDF Reading Note-Taking in Add Dialog⁩

Caught exception: Traceback (most recent call last): File "aqt/webview.py", line 464, in handler File "aqt/editor.py", line 451, in oncallback File "aqt/gui_hooks.py", line 1168, in call File "/Users/oqhan/Library/Application Support/Anki2/addons21/1781298089/src/web/reading_modal.py", line 348, in fill_sources if f in list(note.keys()): AttributeError: 'NoneType' object has no attribute 'keys'

Debug info: Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1 Platform: Mac 10.15.7 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-01-14 12:39:55 Add-ons possibly involved: ⁨Searching PDF Reading Note-Taking in Add Dialog⁩

Caught exception: Traceback (most recent call last): File "/Users/oqhan/Library/Application Support/Anki2/addons21/1781298089/src/dialogs/importing/quick_web_import.py", line 208, in markdown mdtext.setPlainText(mdtext.toMarkdown()) AttributeError: 'QTextEdit' object has no attribute 'toMarkdown'

Debug info: Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1 Platform: Mac 10.15.7 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-01-14 12:39:55 Add-ons possibly involved: ⁨Searching PDF Reading Note-Taking in Add Dialog⁩

Caught exception: Traceback (most recent call last): File "/Users/oqhan/Library/Application Support/Anki2/addons21/1781298089/src/dialogs/editor.py", line 277, in on_create_and_keep_open_clicked self._reset() File "/Users/oqhan/Library/Application Support/Anki2/addons21/1781298089/src/dialogs/editor.py", line 327, in _reset self.create_tab.text.setMarkdown("") AttributeError: 'MDTextEdit' object has no attribute 'setMarkdown'

fonol commented 3 years ago

Update is up.

oqicloud commented 3 years ago

更新已完成。 Thank You!

image

The Source field cannot recognize Chinese characters

fonol commented 3 years ago

In general, or only when you invoke the Create Note dialog from a specific place (e.g. Web import)?

oqicloud commented 3 years ago

通常,还是仅当您从特定位置调用“创建注释”对话框时(例如,Web导入)?

Yes. (e.g. Web import) image

Double click on this point is also invalid, very good plug-in, but I am a novice still groping. Thanks again