The *.gcm files store some state information per book (data file). One of the 
things that's 
stored is which tabs were open the last time you closed the book or quit 
gnucash. The 
gnc:option-set-value and its replacement gnc-set-option specifically are used 
by reports to 
store their state. So if you had any reports open when you last closed to book, 
either of 
these function names can appear in the *.gcm files.

>From what I can tell the newer gnc-set-option was introduced in the 5.x 
>series. So gnucash 
4.x won't understand it. For backwards compatibility, gnucash hence continues 
to use the 
deprecated version of the function so that users can freely switch between 4.x 
and 5.x. I'd 
expect the 6.x series to fully switch to the newer gnc-set-option function and 
no longer 
use nor support the deprecated gnc:option-set-value.

If the current warning bother you, you can set GUILE_WARN_DEPRECATED to "no" 
instead 
of "detailed".

Regards,

Geert

Op zondag 10 november 2024 14:56:22 CET schreef Chris Green:
> I just started a new set of accounts with GnuCash 5.6 and I'm getting
> a warning:-
> 
>     Some deprecated features have been used.  Set the environment
>     variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
>     program to get more information.  Set it to "no" to suppress
>     this message.
> 
> This is a little bit odd as all I have done is to copy the accounts
> from a previous set of accounts, I've not (consciously) changed
> anything.
> 
> However, whatever the reason, it would be nice to get rid of the
> warning.  I set GUILE_WARN_DEPRECATED to "detailed" as required and
> now it says:-
> 
>     gnc:option-set-value and indeed all direct option access is deprecated.
> Use gnc-set-option instead.
> 
> I have searched and found a couple of option-set-value entries in
> .local/share/gnucash/books/general2024.gnucash.gcm and
> .local/share/gnucash/books/general2024.gnucash_2.gcm
> 
> I've not changed these files myself, something I've done while running
> gnucash must have done it.  So, what do I change gnc:option-set-value
> to?


_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to