unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#51445: (no subject)
@ 2021-10-27 19:18 Joshua Branson via Bug reports for GUILE, GNU's Ubiquitous Extension Language
  0 siblings, 0 replies; only message in thread
From: Joshua Branson via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2021-10-27 19:18 UTC (permalink / raw)
  To: 51445

This is more of a feature request.  Apologies if this is an annoying
request.

So I made a pretty noobie-like mistake a few days ago using (guix
records).  When one tries to create a <record-configuration>, he
invariably creates an infinite number of records.  The guile compiler
eventually runs out of memory and stops compiling with an error
message like:

fish: Job 1, 'guile break-guile-compiler.scm' terminated by signal SIGKILL (Forced quit)

I submitted this "bug" report to bug-guix@gnu.org as well.

http://issues.guix.gnu.org/51383

It probably will not be fixed at the (guix records) macro level
anytime soon, so I am submitting it here in case guile developers are
interested in improving their compiler error messages.  I came across
this compiler error while debugging my 1,000 line program.  Trying to
figure out what was wrong without any hints from appropriate error
messages was slightly confusing.

Here is the bad code:

(use-modules (guix records))

(define-record-type* <record-configuration>
  record-configuration make-record-configuration
  record-configuration?

  (command record-configuration-command
    ;; the error is here is on the next line
    (default (record-configuration))))  

(record-configuration)


Thanks,
Joshua





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-27 19:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 19:18 bug#51445: (no subject) Joshua Branson via Bug reports for GUILE, GNU's Ubiquitous Extension Language

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).