> On Dec 5, 2025, at 3:23 PM, flywire <[email protected]> wrote:
> 
> I once received a comment "You can't throw shit at a wall hoping it will 
> stick." Obviously that person didn't know about building with natural 
> plasters.
> 
> My approach is more hacking than programming. I'm running a standard GnuCash 
> V5.13 (2025-11-19) install on Win11:
>     • 
> Why doesn't changing to (define def:primary-subtotal-style "normal-row") turn 
> off  primary-subtotal bold in the displayed report? 
> https://github.com/Gnucash/gnucash/blob/stable/gnucash/report/trep-engine.scm#L138-L139
>     • Even after a reboot GnuCash runs the original Transaction report after 
> deleting the GNC_CONFIG_HOME version I'm editing and GnuCash report version:
> c:\>dir /b "C:\Program Files 
> (x86)\gnucash\share\guile\site\2.2\gnucash\report\trep-engine.scm" 
> %APPDATA%\GnuCash\trep*.scm
> File Not Found
> File Not Found
> 
> Looks like a cache needs clearing to modify styles. Can someone explain what 
> is happening?


I’ll leave the first question for Chris. He’s a lot more familiar with 
trap-engine’s guts than I am, though it’s possible that resolving the second 
question will get it to do what you want.

Rebooting doesn’t do anything as far as GnuCash is concerned so you can save 
yourself the time required to do it.

Guile compiles its .scm sources into .go files. The ones that are built while 
packaging GnuCash are in c:\Program Files 
(x86)\gnucash\lib\guile\2.2\site-ccache\gnucash. If you edit 
share\guile\site\2.2\gnucash\report\trep-engine.scm directly guile will notice 
that the timestamp on the file is later than the compiled file and recompile 
it; the new compiled file will be written to a cache directory in your Home 
directory. trep-engine is imported with “(use-modules (gnucash report 
trep-engine))” so to substitute one in a different directory it has to be  
“…\foo\gnucash\report\trep-engine.scm” and “…\foo\” has to appear before 
c:\Program Files (x86)\gnucash\share\guile\2.2\site\” in GUILE_MODULE_PATH. 

Regards,
John Ralls

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to