Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-06-2022, 12:00 PM   #1
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 312
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Trouble saving Controls for Saved Search

When I double-click the Controls field beside a Saved Search and set the mode to e.g. "regex" and then close that window, it doesn't seem to populate that field with anything; and after loading that Saved Search in, the mode also doesn't seem to change in the f/r window. I'm a bit new to Saved Searches, so it may be I've done something wrong.

I'm on macOS Monterey, if that helps. I tried moving/renaming ~/Library/Application Support/sigil-ebook/sigil/ (after backing it up) as a test to see if something had gone wrong in that folder, but the behavior seemed to persist even then (tried it on one of the example searches). Any ideas for other things I could try?
phillipgessert is offline   Reply With Quote
Old 02-06-2022, 12:14 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
Please try the following:
instead of the X on the dialog to close, please try clicking outside the Controls dialog window. When it loses focus, it should save as well. Did that change anything?

I do not have a Monterrey machine to test with. But I can test with Catalina and Big Sur and let you know if I can recreate what you are seeing.
KevinH is offline   Reply With Quote
Advert
Old 02-06-2022, 12:22 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
Jist tried both master and Sigil -1.8.0 and it all works as expected on macOS Catlina and Big Sur.

But be careful if you use "enter" to exit that dialog that the "Clear" button is not marked as default, as hitting enter will then not just exit but clear and exit. Tab can be used to move keyboard focus away from the Clear button.

I just use the X or click outside the Controls dialog back into Saved Search to save a keystroke.
KevinH is offline   Reply With Quote
Old 02-06-2022, 12:28 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
If none of that helps, then the bug is in Qt 5.12.9 and Monterrey.
If that is the case I would be happy to post privately for you a pre-release version of Sigil-1.9.0 that has been compiled against Python 3.9.9 and Qt 6.2.3 using the macOS 11.1 SDK (from Big Sur).

Qt itself does not officially support macOS Monterrey in Qt 5.12.X as Monterrey came after the Qt 5.12.X series was primarily complete. Qt 6 should properly support macOS Monterrey (or at least be much better than Qt 5.12.X in that regard).
KevinH is offline   Reply With Quote
Old 02-06-2022, 01:02 PM   #5
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 312
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
I bet it's the Qt bug, because I was just X-ing out too. And I tried it just now again that way to be sure, and also tried clicking outside that window, back into Saved Search (nice tip)--no dice. Very glad to try that 1.9 prerelease anytime and report back.
phillipgessert is offline   Reply With Quote
Advert
Old 02-06-2022, 01:16 PM   #6
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
I will make a test build tonight for you to try.
KevinH
KevinH is offline   Reply With Quote
Old 02-06-2022, 01:57 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
Had a free moment:

See: https://github.com/kevinhendricks/Bu...or_sigil_1.0.0

Download:

Sigil.app-1.9.0-Beta-Qt6-Mac.txz

Caveats:

- This build is totally unsigned as my code signing routines are not set up for Qt6 yet.

- The Qt6 port of Sigil is very experimental.

- Although this is master it has lots of internal changes that make it *Beta* and so should not be used in production without lots of prior testing

- Because it is Qt6, it will *not* work with PyQt5 plugins (only PySide6 plugins)
but it will work with tcl/tk plugins just fine. Tweaking a PyQt5 plugin to use
PySide6 can be done reasonably easily. We are working on a way to make this even
easier and something that will support both in the future.


I posted this just to test if Qt 6.2.3 has a fix for your bug in Monterrey.

If so, I will try to track down that fix and backport it to Qt 5.12.9 as a MacOS specific patch hopefully in time for the upcoming release in about 2 weeks.

So please let me know if it helps in that regard.
KevinH is offline   Reply With Quote
Old 02-06-2022, 03:01 PM   #8
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 312
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Thanks, Kevin--and thanks for the caveats. I won't use it for anything else, though if there's anything else you'd like me to try with it in Monterey, I certainly can. As for this particular problem, it still exists for me with this version.
phillipgessert is offline   Reply With Quote
Old 02-06-2022, 03:04 PM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
Oh no. This is the very latest version of Qt 6.2.x just release on Feb 1 or so.
I really do not know how to track this down and fix it without a Monterey based machine.

I will see about adding some debug output to a new version, just to see if something obvious jumps out.
KevinH is offline   Reply With Quote
Old 02-06-2022, 03:13 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
Would you please try one more thing for me in both Sigil-1.8 and this Qt6 beta build.

Open Find and Replace and set all of the search controls manually, then right click in the Find field and choose to save it as a new saved search.

Then open Saved Search and see if the controls made it. Can you successfully edit them in Saved Search then?
KevinH is offline   Reply With Quote
Old 02-06-2022, 03:17 PM   #11
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
I will add some qdebug output to the SearchEditorItemDelegate to see if the routine to save the new settings is even getting invoked when you close the Window.
KevinH is offline   Reply With Quote
Old 02-06-2022, 03:18 PM   #12
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 312
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
That works for both, so for now I'll just set my controls that way. Thanks for that!

And sure, glad to try anything else out that might be helpful, and apologies in advance if it turns out to be some weird one-off because I've broken something somewhere. I don't think so, though; I just upgraded last week and am generally not quite that fast at breaking things.
phillipgessert is offline   Reply With Quote
Old 02-06-2022, 03:45 PM   #13
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
I have a new build for you to try. This one is Qt 5.12.9 based (since the experimental Qt6 did not help). It will write debug output when you try to save Controls in Saved Searches.
I was able to sign this one as it is Qt5 based.

https://github.com/kevinhendricks/Bu...or_sigil_1.0.0

Download: Sigil.app-1.9.0-Beta-Mac.txz

Please copy it to your Desktop and unpack it there.
Then open Terminal.app and enter the following commands:

cd
cd Desktop
export SIGIL_DEBUG_LOGFILE="sigil_debug_log.txt"
open ./Sigil.app

When it opens (you might have to fight with GateKeeper to get it to open before trying this) then go to Saved Searches and try to edit a controls field. Then use the X to close the Controls dialog.

Then exit out of Sigil.

You should then see a file on your Desktop called: sigil_debug_log.txt

Please open it in any text editor and paste its contents here so that we can see if the routine to actually save the edited controls is even being tried.

Thanks
KevinH is offline   Reply With Quote
Old 02-06-2022, 03:49 PM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
BTW, when you said it "works for both", does that mean you were in Saved Searches and double clicked on the controls field and then were successfully able to edit it to change the controls from there and save it back via using X on the Controls dialog?

Or did you just mean that you could at least get some values there by saving it from Find and Replace but the original problem still remained?
KevinH is offline   Reply With Quote
Old 02-06-2022, 04:11 PM   #15
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 312
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
Sorry, yes--I meant I was able to successfully populate the Controls field by saving the search via the f/r window, and once that was done I was able to modify it via the Saved Search window. And that worked for 1.8 and the Qt6 beta version.

Glad to try out that debug--it may be tomorrow before I can come back to it, but I surely will.
phillipgessert is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
saved search -> saved ottischwenk Calibre 2 02-06-2020 01:53 AM
Trouble using the saved searches window roger64 Editor 2 11-24-2016 02:31 AM
Having trouble reading saved files PKTC Sigil 6 04-01-2016 03:39 PM
Difference in Manual Search and Saved Search phossler Editor 4 10-04-2015 12:17 PM
Lost My Very Long Post With Questions About PB 301 Controls vs PB 360 Controls Vienna01 PocketBook 6 06-04-2010 01:51 PM


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


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