|
|
#1 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,332
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
[Editor] Possible bug in run_text_search function?
I have a personal calibre Editor plugin containing many Tools which I have used for many years. A recent calibre update (earlier than 9.13 but not much earlier) introduced an intermittent problem in one of my Tools.
This is the traceback from the error log when I'm trying to use the Editor's self.boss.find_text(...) method: Code:
Traceback (most recent call last):
File "calibre_plugins.js_editor_tools_plugin.main", line 1280, in fragment_doubleclicked
File "calibre\gui2\tweak_book\boss.py", line 1340, in find_text
File "calibre\gui2\tweak_book\text_search.py", line 197, in run_text_search
File "calibre\gui2\tweak_book\editor\widget.py", line 454, in find_text
TypeError: TextEdit.find_text() got an unexpected keyword argument 'wrap'
Code:
if not files and editor.find_text(pat, wrap=True): |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,434
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,332
Karma: 16800000
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Thanks.
I've done a quick check running from source. My editor Tool now seems OK again without the workarounds I'd added.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using the Editor function to activate links? | roger64 | Editor | 7 | 01-17-2016 12:09 AM |
| Function mode in editor S&R -- coming soon | eschwartz | Editor | 12 | 11-21-2014 08:26 AM |
| split function bug ? | cybmole | Sigil | 6 | 01-13-2011 12:05 PM |
| Bug in Calalog Function? | Ambermonk | Library Management | 2 | 03-10-2010 07:40 PM |
| bug in zoom function | Bube | Sony Reader | 2 | 05-29-2008 04:56 AM |