unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Wisp error location?
@ 2019-02-26 14:29 zimoun
  2019-02-26 22:14 ` Arne Babenhauserheide
  0 siblings, 1 reply; 4+ messages in thread
From: zimoun @ 2019-02-26 14:29 UTC (permalink / raw)
  To: guile-user

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.



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

end of thread, other threads:[~2019-03-04 11:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-26 14:29 Wisp error location? zimoun
2019-02-26 22:14 ` Arne Babenhauserheide
2019-03-02 21:19   ` Arne Babenhauserheide
2019-03-04 11:02     ` zimoun

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