all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Catonano <catonano@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: tree doesn't get called
Date: Mon, 8 May 2017 19:14:24 +0200	[thread overview]
Message-ID: <CAJ98PDxhUQM1QeVthwgQyTqJgj6Ref8xSqDP30ydjYzsf+p4NQ@mail.gmail.com> (raw)
In-Reply-To: <87y3u7khhu.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 2743 bytes --]

2017-05-08 8:08 GMT+02:00 Ricardo Wurmus <rekado@elephly.net>:

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

[-- Attachment #2: Type: text/html, Size: 4028 bytes --]

  reply	other threads:[~2017-05-08 17:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-05 15:50 tree doesn't get called Catonano
2017-05-05 22:24 ` Eric Bavier
2017-05-08  5:02   ` Catonano
2017-05-08  6:08     ` Ricardo Wurmus
2017-05-08 17:14       ` Catonano [this message]
2017-05-08 17:45         ` Catonano
2017-05-08 20:19         ` Ricardo Wurmus
2017-05-09 15:41           ` Catonano
2017-05-09 15:43             ` Catonano
2017-05-10 19:51               ` Ricardo Wurmus
2017-05-11  4:20                 ` Catonano
2017-05-09 17:20             ` Ricardo Wurmus
2017-05-09 18:12               ` Catonano
2017-05-08  7:34 ` Mark H Weaver
2017-05-08 17:28   ` Catonano
2017-05-08 17:58     ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ98PDxhUQM1QeVthwgQyTqJgj6Ref8xSqDP30ydjYzsf+p4NQ@mail.gmail.com \
    --to=catonano@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.