unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #30169] Auto-compilation failure of a module doesn't lead to a failure [1.9.11]
@ 2010-06-17 13:06 Ludovic Courtès
  2010-06-18  8:32 ` Andy Wingo
  2010-06-20 14:23 ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Ludovic Courtès @ 2010-06-17 13:06 UTC (permalink / raw)
  To: Ludovic Courtès, bug-guile


URL:
  <http://savannah.gnu.org/bugs/?30169>

                 Summary: Auto-compilation failure of a module doesn't lead
to a failure [1.9.11]
                 Project: Guile
            Submitted by: civodul
            Submitted on: Thu 17 Jun 2010 01:06:37 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Consider this example, where auto-compilation of (foo) fails:

#v+
$ cat foo.scm
(define-module (foo))
(open

$ cat bar.scm
(use-modules (foo))
(display "hello!\n")

$ guile -L . bar.scm
;;; note: source file bar.scm
;;;       newer than compiled
/home/ludo/.cache/guile/ccache/2.0-0.R-LE-8/home/ludo/src/guile/bar.scm.go
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-autocompile argument to disable.
;;; compiling bar.scm
;;; compiling ./foo.scm
;;; WARNING: compilation of ./foo.scm failed:
;;; key read-error, throw args ("scm_i_lreadparen" "./foo.scm:3:1: end of
file" () #f)
;;; WARNING: compilation of bar.scm failed:
;;; key read-error, throw_args ("scm_i_lreadparen" "./foo.scm:3:1: end of
file" () #f)
hello!

$ echo $?
0
#v-

Guile should instead abort as soon as auto-compilation fails.

Thanks,
Ludo'.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30169>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-25 15:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 13:06 [bug #30169] Auto-compilation failure of a module doesn't lead to a failure [1.9.11] Ludovic Courtès
2010-06-18  8:32 ` Andy Wingo
2010-06-18 14:52   ` Ludovic Courtès
2010-06-18 17:03     ` Andy Wingo
2010-06-20 14:23 ` Ludovic Courtès
2010-06-20 20:19   ` Andy Wingo
2010-06-25 15:29   ` Andy Wingo

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).