Re: Unbound variable warning/exception

2020-12-21 Thread Jérémy Korwin-Zmijowski
Hello ! Looking in the all of core Guile could save time! I can see already an emacs geiser trick to add it automatically haha. Auto-completion + auto-use-module = Awesome! Cheers, Jérémy Le 21 décembre 2020 00:11:38 GMT+01:00, Christopher Lam a écrit : >The exception printer would be a good

Re: Unbound variable warning/exception

2020-12-20 Thread Christopher Lam
The exception printer would be a good one to upgrade. The dilemma is whether to search available modules in the current repository, or in the whole of core guile. Do we want to show e.g. "Unbound variable: vector-for-each. Did you forget (use-modules (srfi srfi-43))" ? On Sun, 20 Dec 2020 at 21:3

Re: Unbound variable warning/exception

2020-12-20 Thread Ludovic Courtès
Hi, Aleix Conchillo Flaqué skribis: > On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam > wrote: >> >> Hi guilers, I saw in guix the incredibly useful unbound-variable exception >> printer written by Ludovic. I've adapted for use in gnucash as >> https://github.com/Gnucash/gnucash/commit/6f951784

Re: Unbound variable warning/exception

2020-12-19 Thread Massimiliano Gubinelli
Thanks, there is indeed some interesting and useful code there. However I would prefer not to make large changes in this moment. I removed most of the warnings by proper use of modules but we still have some circular dependencies among modules and these are sources of some warning which for th

Re: Unbound variable warning/exception

2020-12-19 Thread Christopher Lam
You can remove these "possibly unbound variable" warning by using modules appropriately. It's not easy and tedious but necessary to achieve better module hygiene. See changes in https://github.com/Gnucash/gnucash/pull/831 On Sat, 19 Dec 2020, 6:08 pm Massimiliano Gubinelli, wrote: > Hi all, > >

Re: Unbound variable warning/exception

2020-12-19 Thread Massimiliano Gubinelli
Hi all, nice piece of code! About these "possible unbounded variable" warnings, I have for GNU TeXmacs the opposite need: how can I turn them off? :) I was also curious to ask: which are currently the major applications of GNU Guile (as extension language)? For example, in TeXmacs we have ~110

Re: Unbound variable warning/exception

2020-12-18 Thread Aleix Conchillo Flaqué
On Fri, Dec 18, 2020 at 5:26 PM Christopher Lam wrote: > > Hi guilers, I saw in guix the incredibly useful unbound-variable exception > printer written by Ludovic. I've adapted for use in gnucash as > https://github.com/Gnucash/gnucash/commit/6f951784 -- there are now in > guile 3.0.4 many more un

Unbound variable warning/exception

2020-12-18 Thread Christopher Lam
Hi guilers, I saw in guix the incredibly useful unbound-variable exception printer written by Ludovic. I've adapted for use in gnucash as https://github.com/Gnucash/gnucash/commit/6f951784 -- there are now in guile 3.0.4 many more unbound-var warnings than in 3.0.2 -- wouldn't it be a useful hint t