From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Arne Babenhauserheide Newsgroups: gmane.lisp.guile.user Subject: Re: Wisp error location? Date: Tue, 26 Feb 2019 23:14:56 +0100 Message-ID: <8736oaxkm7.fsf@web.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="123404"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.0; emacs 26.1 Cc: guile-user@gnu.org To: zimoun Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Feb 26 23:15:39 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyl0k-000VyP-3p for guile-user@m.gmane.org; Tue, 26 Feb 2019 23:15:38 +0100 Original-Received: from localhost ([127.0.0.1]:33930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyl0i-0000Ev-T9 for guile-user@m.gmane.org; Tue, 26 Feb 2019 17:15:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyl0I-0000Ek-Uw for guile-user@gnu.org; Tue, 26 Feb 2019 17:15:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyl0F-0005xd-K9 for guile-user@gnu.org; Tue, 26 Feb 2019 17:15:10 -0500 Original-Received: from mout.web.de ([212.227.15.14]:56795) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyl0E-0005uy-Vr for guile-user@gnu.org; Tue, 26 Feb 2019 17:15:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1551219300; bh=Fgng8iQG90m5kG8MkY/BF2/T7c02u/j8WZCfglADlVs=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=MTWvqWELZzScUeD+YMTpKWyqroFdUlhrKJijNhSvREx6YFIdjAqfS7UqZIYUDxgUa 8EWIisGHzpbwEWHqp7ygmm703ny7OjRLmezWblGO+G+tI7s8ccfCAoJ4HN353BR+5N kXsf24QyOhMeOH1KV/DrkzEGq+ReMY9LZNzc6BCE= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from fluss ([84.165.27.69]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MfCyA-1gfY6A221a-00OrU9; Tue, 26 Feb 2019 23:15:00 +0100 In-reply-to: X-Provags-ID: V03:K1:gYrzgHKJgmAkysdTpp+MOWSfLVJKfOLBgy1JZTNQpn0FxwtwjMQ Lm7eb0/TFC0N4PRsrXrl+OieUT9E1mrg7fDgMlUnqOarCb3gHwJ/R4KqY760agfoFRP+EtE mpv/mA8hVJSAQof6peWPWw0rQkytbneIu+XWTA7r6+Lyr4s/J3z0mMHYCGHWG3qGoRUERvb jpBWLQ//nOBcLU/knPtdw== X-UI-Out-Filterresults: notjunk:1;V03:K0:gY/2HNTmf8k=:BllWXVWCedXdsDKRtbkUBp uJaOYCo3qNIbgUVw/CbrZI3grcxgEo/EuIlUVPe9Dngl17yhJ+t/73i5Qgkin7KfD2y7Vlvop kOSeNMTkyJ1OSukThIRFY0uHOKoVNvMJ4vIq0gfvBc+j8N3MQAoHzycikGbOTmfEpnQfbvQ+m yCeGMTHLgf+PV3791JafF2uTsKmjiwYOPQyrwBKwBPTDpA49OBki6GpNjVPHWEBQx3647BUJD fDqfsqs6OZTcGtLtcHmNP5jE4WzNmf8PBRZM7s4uM9D9cX3vzFrY5vPM5N4EOUBAUNrCO9OYI 9itg/HPpehakrnNvkeVKhq+k6+TGdiFPNRtMpbDFUDCD3PUxi1cDoRogJq0NPH+yyok73FyuK AjLHFEpJ1Gy8s+9y7lcB3GYeywmUd175l4dCuMrsqmUsSnZKkuQ3B8oU+4ZafoNBU29EXdRep bDAIGONLDdbmxhxZjF2hUjdgYZzHv9OnDjNncD2zDMBMnrqRd/jbxyWeykXXhHU9VCcZgisq7 jLcuxSU9t85Rgb/wPdPQFElP/sNsZmM2dJfr6hgq8OBBexc0jFtX87DCECaTHpSZSdjYi2gLI fYMgl5Crij6ALZtd7f1SXrUS4A+XTmltaKsRaY6EaRb26i8Lt14KP3yI7uPbL+rrzOu/HyhzW XRGoaAwH7W6atJNghYbykLOFhyuT7fcPbHwJ+rbJR+N0BGu4ak682aazw0CEYruFtcYxQTD75 LVh1vs7w/1SJgCa0GpGOkaRuyHvEGN3ijCoElvcsHC7DnzbPRaWWbT/9cnRxjkiytzbfmwrA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.14 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15340 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dear simon, Thank you for writing! The error-reporting in wisp is currently not at the level of regular Scheme. For some errors you already get the line numbers, but others still lack them. The happy case: If you run the following via guile --language=3Dwisp /tmp/test.w, for example, you get the correct line number of the error: define : sqr x * x x define : add1 x error "foo ~a" 'foo 1+ x add1 2 Adding line number information for compile errors will still take some time =E2=80=94 it should be fixable, but I will have to do more reading up = on Guile compiler internals for that, so I cannot promise a fix within the next months. However you can use a workaround: in case of an error automatically transform the file to regular scheme and run the compiler on that again. The line numbers should then match exactly. I know that that=E2=80=99s only a workaround, but it should already ease debugging a lot. I hope it helps you! guild compile -f wisp /tmp/test.w || (wisp2lisp /tmp/test.w > /tmp/test.scm= && guild compile /tmp/test.scm) Best wishes, Arne zimoun writes: > 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. =2D- Unpolitisch sein hei=C3=9Ft politisch sein ohne es zu merken --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE801qEjXQSQPNItXAE++NRSQDw+sFAlx1umEACgkQE++NRSQD w+sXBQ/+JoD+ZzbH+WI9WPwIYvkg39OM4zlKU9ouPLz1oM6W+mgXuNdTiWTv/uVV RJ5hnsFwPqjTLhOlYj9L2nC+5c01aUQiLj+NwtxeGCxUfWRFXUHnj4EZp1s1h+NO eCRn2yMzgeE3GbxxW3hTQ6pKUYb+ydkWD6dA3ghTB0mwdGoDCLGR3Otoj5SGzNI2 i1t1h5n1vRzL5ugxFphmkexhf8xxcABaTis9rZkk5bkqHm9b7dd4nzlYqiIaynjd 3FaoMamyHxIhJEOHbAz2mwSJ471Bb5SKQxv+lMXddgfhRFmQONGWpk36V0oqtsfS RyXmb2y/3J3EsWWgRziHK0alW2XHnc5R45tHZLkdB69y2Wj+zFwvXnF+ItWA5QlY ymXKWoa2TKkjvQXPQuFmlSK4anebPUUTf0wsx5Lsbg7mwI566xXCiXy1CmJKT0Db pTV7Rjd3JapotTtVjRygNPytXu+kyeTGJX+SpHrJlY/GfDYyH1XATL8dY1Mb/pyG RWsET+52i/MP88uBhNOG+nzygaLoedwHGbacSpbKvCUpGp9LPgRFc/7GByrPQbKZ CkDl18OV8Z15hNjWnTVpaVv53uzN0iwHgFiurITP1nGKiHFMgXLS81EuIpQfib32 1jmMMCEvHZ0OarZJhs75hQ+E/uGWnT0H8+Krl5z1F4DkOtwXszCIswQBAQgAHRYh BN0ovebZh1yrzkqLHdzPDbMLwQVIBQJcdbpjAAoJENzPDbMLwQVI26MEAJvlAgHo x5CiP4ib+KeeeXYDWq/a4KD8tiVEE01N/ook5y4pTXGblJBfI5nK4Wp3SmWaJ6o8 ZJFVtB/PGd8cdm1TgBC7Y8rNNndZ9IfM1c3++JdX/9dzFJWp5f+OdySdFYQ6lBqU t4rJh0x/be+QbabPJc/UasYbOzXFyrARS+h2 =9Z2v -----END PGP SIGNATURE----- --=-=-=--