Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 06:00 AM   #1
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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'
The failing code is in the run_text_search function:
Code:
if not files and editor.find_text(pat, wrap=True):
I've managed to change my Tool code to avoid this error but I'm posting here because, although I'm not 100% sure, I do think it may be a bug.
jackie_w is offline   Reply With Quote
Old Today, 10:09 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 46,434
Karma: 29634066
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...fe085eb05bd5d4
kovidgoyal is offline   Reply With Quote
Advert
Old Today, 10:42 AM   #3
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
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.
jackie_w is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:34 PM.


MobileRead.com is a privately owned, operated and funded community.