help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tree doesn't get called


From: Catonano
Subject: Re: tree doesn't get called
Date: Mon, 8 May 2017 19:14:24 +0200

2017-05-08 8:08 GMT+02:00 Ricardo Wurmus <address@hidden>:


It looks like you first need to create the target directory (with
“mkdir-p”).

wonderful, thanks
 

BTW: instead of an explicit list for scm-files you could use this:

    (find-files "." "\\.scm$")

Thanks, Ricardo.

This is the new error

ice-9/eval.scm:386:9: In procedure eval:
ice-9/eval.scm:386:9: Throw to key `match-error' with args `("match" "no matching pattern" ("" "/include" "scm"))'.


I guess the culprit is this


(for-each (lambda (file)
        (let* ((dest-file ...)
           (go-file (match (string-split file #\.)
                   ((base _)
                    (string-append module-dir "/" base ".go")))))...)))

The first file processed is "include.scm"

I'm not sure what "no matching pattern" means
The spliitting in "include" and "scm" seems corretc (where does that slash come from ?)

And i I switch back to the explicit list of files, I get:

wrote `/gnu/store/mdirmfqcs2cadk8ram89j7i0z9zlrqvb-guile-miniadapton-master/share/guile/site/2.2/include.go'

So the first file ("include.scm") gets correctly written

But then:

Backtrace:
In ice-9/boot-9.scm:
 160: 16 [catch #t #<catch-closure 8c5dc0> ...]
In unknown file:
   ?: 15 [apply-smob/1 #<catch-closure 8c5dc0>]
In ice-9/boot-9.scm:
  66: 14 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 13 [eval # #]
In ice-9/boot-9.scm:
2412: 12 [save-module-excursion #<procedure 8e6840 at ice-9/boot-9.scm:4084:3 ()>]
4089: 11 [#<procedure 8e6840 at ice-9/boot-9.scm:4084:3 ()>]
1734: 10 [%start-stack load-stack #<procedure 8f6e20 at ice-9/boot-9.scm:4080:10 ()>]
1739: 9 [#<procedure 8f8960 ()>]
In unknown file:
   ?: 8 [primitive-load "/gnu/store/a0z8jd9sxxi6gnip6sfhrm3i06s6c9vv-guile-miniadapton-master-guile-builder"]
In ice-9/eval.scm:
 387: 7 [eval # ()]
In srfi/srfi-1.scm:
 827: 6 [every1 #<procedure c7d2e0 at /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9 (expr)> ...]
In /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:
 653: 5 [#<procedure c7d2e0 at /gnu/store/a42pfdz8w5qxdkp6xz8783ydywmp0p8p-module-import/guix/build/gnu-build-system.scm:649:9 (expr)> #]
In ice-9/eval.scm:
 432: 4 [eval # #]
In ice-9/boot-9.scm:
 778: 3 [for-each #<procedure ecda50 at ice-9/eval.scm:416:20 (a)> #]
In ice-9/eval.scm:
 399: 2 [eval # #]
 387: 1 [eval # #]
In unknown file:
   ?: 0 [0 0]

ERROR: In procedure 0:
ERROR: Wrong type to apply: 0


what does this error message mean ?

Why the second file causes an error ?

Maybe I'm being petty, I'm sorry

I'm just a bit confused

reply via email to

[Prev in Thread] Current Thread [Next in Thread]