From: Ricardo Wurmus <rekado@elephly.net>
To: Olivier Dion <olivier.dion@polymtl.ca>
Cc: gwl-devel@gnu.org
Subject: Re: Guile code snippet
Date: Wed, 20 Apr 2022 23:21:37 +0200 [thread overview]
Message-ID: <87ilr3sawb.fsf@elephly.net> (raw)
In-Reply-To: <87ee1rohrk.fsf@laura>
Hi Olivier,
> and when I try the guile shebang:
> # /bin/guile { (display "foo") }
>
> | ERROR: In procedure %resolve-variable:
> | Unbound variable: ungexp
This is now fixed with commit dceec9ecb9e24252ab9130f7a3626c00b2ff1a68.
I added a new test that checks the generated code when using a custom
interpreter. Previously, it only checked that the interpreter was
extracted correctly and code was generated at all…
The problem was that we accidentally wrote code to a file that was
supposed to be evaluated so that its *result* could be written to a
file. It wrote:
(apply system*
(append (list (string-append (getenv "_GWL_PROFILE")
(ungexp (sanitize-path (symbol->string name)))))
…))
…instead of:
(apply system*
(append (list (string-append (getenv "_GWL_PROFILE")
"/bin/guile") "-c")
…))
The cause was the use of a macro. It is now implemented as a procedure.
It works with the custom interpreter, but also direct Scheme embedding
works fine:
--8<---------------cut here---------------start------------->8---
process run
packages "guile"
procedure `(display ,name)
workflow do-the-thing
processes run
--8<---------------cut here---------------end--------------->8---
Could you please try again and report back? Thanks in advance!
--
Ricardo
next prev parent reply other threads:[~2022-04-20 21:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-20 3:37 Guile code snippet Olivier Dion via
2022-04-20 9:47 ` Ricardo Wurmus
2022-04-20 16:13 ` Olivier Dion via
2022-04-20 16:26 ` Ricardo Wurmus
2022-04-20 16:35 ` Olivier Dion via
2022-04-20 21:21 ` Ricardo Wurmus [this message]
2022-04-21 16:30 ` Olivier Dion via
2022-04-21 18:14 ` Ricardo Wurmus
2022-04-21 20:08 ` Olivier Dion via
2022-04-21 20:46 ` Ricardo Wurmus
2022-04-21 22:02 ` Olivier Dion via
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
List information: https://www.guixwl.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilr3sawb.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=gwl-devel@gnu.org \
--cc=olivier.dion@polymtl.ca \
/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.
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).