unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: guile-user@gnu.org
Subject: Wisp error location?
Date: Tue, 26 Feb 2019 15:29:24 +0100	[thread overview]
Message-ID: <CAJ3okZ0yWQXfNDejOq6DNQNB-wSacGK_50ftxoF2z_RGY79eEQ@mail.gmail.com> (raw)

Dear,

As you maybe know, the Guix Workflow Language [1] now support the Wisp
notation [2].
And it improves the readibility, IMHO.
Nice!


[1] https://archive.fosdem.org/2017/schedule/event/guixworkflowmanagement/
[2] https://git.savannah.gnu.org/cgit/gwl.git/tree/gwl/utils.scm#n34



However, Wisp v0.9 does not support (yet?) the location when it fails
to compile.
I have not tried the v1.0 because it is not packaged in Guix, yet. :-)

Just to fix the idea:

define : sqr x
       * x x

define add1 x
       1+ x


then `guild compile -f wisp ~/tmp/test.w` fails with:

ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
Syntax error:
unknown location: source expression failed to match any pattern in
form (define add1 x (#{1+}# x))

and it is not always to find where the location is. Compared to the
Lisp notation, the line is pointed:

ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
Syntax error:
/home/simon/tmp/test.scm:5:0: source expression failed to match any
pattern in form (define add1 x (#{1+}# x))


Does it seem fixable ?


Thank you in advance for any comments.

All the best,
simon

ps:
I do not if there is a dedicated mailing list about Wisp or a bug tracker.
Sorry if it is incorrectly addressed and let me know where to post.



             reply	other threads:[~2019-02-26 14:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-26 14:29 zimoun [this message]
2019-02-26 22:14 ` Wisp error location? Arne Babenhauserheide
2019-03-02 21:19   ` Arne Babenhauserheide
2019-03-04 11:02     ` zimoun

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.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=CAJ3okZ0yWQXfNDejOq6DNQNB-wSacGK_50ftxoF2z_RGY79eEQ@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guile-user@gnu.org \
    /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).