![]() |
#1 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Error in Book Details
Hi.
I tried moving my columns around in Book details, and when I went to Apply, I got the following error: Quote:
|
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,415
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You are in the same situation we discussed some time back. You have changed the type of a custom column by deleting it then re-adding it with the same name. That custom column has icon or coloring rules that are no longer valid.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Thank you.
|
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,706
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@chaley
![]() BR |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,415
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The problem arises when the column behind a lookup key changes type, something that can happen only when a column is deleted then a new column with a different type but with the same lookup key is added. In most cases, when this happens any rule with a condition making reference to that column must change because the semantics of the conditions change. Having the column names doesn't tell the user enough about that problem to find the offending conditions. I have submitted a change to Kovid to show invalid conditions in the preferences rules display panels, making it easier to find rules that use columns that changed types. This along with a change Kovid made to prevent tossing exceptions when invalid rules are encountered should permit the user to find and fix problems without encountering calibre misbehavior. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I know it doesn't directly have anything to do with this, but would it be possible to create a "remove several" feature, instead of having to remove the icon rules one by one?
|
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,020
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Delete is simple. The rule goes into ![]() Rename: updates the rule or Delete Since there is not an equivalent of 'Type', you could offer to Archive as TXT & Remove the rule. Letting the user later paste the old rule and fix the (type) errors. |
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,415
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@theducks: thanks for the suggestions. I spent some hours over the last few days looking at similar ideas, but ran into too many problems. One can delete and add custom columns using the CLI, where popping up random questions is not usually appreciated. In the GUI, columns aren't actually deleted until calibre exits, where we no longer have the option of asking the user any questions. There isn't anyplace one could "paste" an archived rule. Some conditions such as "is set" can survive a type change so deleting the rules halfway through the delete/add process can be suboptimal.. And so on.
Of course all of these problems could be fixed, but it is more work than I am willing to do for a problem that is so rare. I think the solution I submitted plus Kovid's change take us far enough. |
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,020
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,415
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Kovid accepted the change. It is in source now and will be in the next calibre release.
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Thanks
|
![]() |
![]() |
![]() |
#12 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,706
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() I anticipated adding a --rules option to calibredb custom_columns would be non-trivial. But I always ask these things, to not ask would be underestimate the ingenuity of yourself and Kovid ![]() BR |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dragging a book over the Book Details window | Ripplinger | Calibre | 18 | 07-18-2013 01:19 PM |
Book details under book list - not on the right side | ILB | Library Management | 3 | 06-22-2013 03:46 PM |
Show book details error | firewolf | Calibre | 3 | 07-27-2011 02:09 PM |
Problem converting LRF -> EPUB (Error Details included) | irishtexmex | Calibre | 0 | 08-04-2010 05:08 PM |
Error moving book details to a new location... | GeoffC | Calibre | 2 | 08-20-2009 03:14 AM |