From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: Help with lambda-procedure Date: Sun, 16 Dec 2018 21:18:44 +0100 Message-ID: <20181216201844.GA17028@tuxteam.de> References: <9821320835493e75e12418c00796312c@riseup.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" X-Trace: blaine.gmane.org 1544991434 21842 195.159.176.226 (16 Dec 2018 20:17:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2018 20:17:14 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Dec 16 21:17:10 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYcqb-0005aU-Jj for guile-user@m.gmane.org; Sun, 16 Dec 2018 21:17:09 +0100 Original-Received: from localhost ([::1]:43670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYcsi-0004yG-8D for guile-user@m.gmane.org; Sun, 16 Dec 2018 15:19:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYcsL-0004y9-Mm for guile-user@gnu.org; Sun, 16 Dec 2018 15:18:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYcsI-0004fQ-Hm for guile-user@gnu.org; Sun, 16 Dec 2018 15:18:57 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:43405) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYcsI-0004dG-3C for guile-user@gnu.org; Sun, 16 Dec 2018 15:18:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=zC+NTS+L8qNgKpQASoh9TuCwt9KD7Z8M+rPZgFDUx30=; b=kDt5glcev0iEqzSM8DYpPtn76K7Opz24ik9D68PIlyIMyyjT9kk6z8paZeu7HvWKVirrgpLjE7D0IAn0TYRQwVFAqvfZXD4KloKccDEBS/jEwfLcpqglGoDpXOJF6i+RMo477NlcpDVy6EonuwCma4f/MX9EAzSP083zth4OipOai6iVOEsVQ0GH+pHLZWT/gWHos1TIhczB8hBdwygGbU63RQMvALchSOaprqV05/W2cHX3+4ZcTP8ObeKcrGuDSJQc5CwW8bVuyBX6+oy60zykBlwPOaU+CyIMbkW8z8rC0cJ3ZLEDjk0iopuu0bMcvdK9dnEF8iB41IXWwmZJPg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1gYcs8-0005fW-Vf for guile-user@gnu.org; Sun, 16 Dec 2018 21:18:45 +0100 Content-Disposition: inline In-Reply-To: <9821320835493e75e12418c00796312c@riseup.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 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:15102 Archived-At: --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 16, 2018 at 11:48:45AM -0800, swedebugia@riseup.net wrote: > I'm trying hard to improve the npm-explorer[1] with a semver-parser. >=20 > I get this error when testing in the REPL: Hm. Confused by your code. BUT the backtrace suggests... > sdb@antelope ~/src/guile-npm-explorer$ guile -s npm-explorer.scm > >test.dot > ;;; note: source file /home/sdb/src/guile-npm-explorer/npm-explorer.scm > ;;; newer than compiled > /home/sdb/.cache/guile/ccache/2.2-LE-4-3.A/home/sdb/src/guile-npm-explore= r/npm-explorer.scm.go > ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 > ;;; or pass the --no-auto-compile argument to disable. > ;;; compiling /home/sdb/src/guile-npm-explorer/npm-explorer.scm > ;;; compiled > /home/sdb/.cache/guile/ccache/2.2-LE-4-3.A/home/sdb/src/guile-npm-explore= r/npm-explorer.scm.go > Backtrace: > 7 (apply-smob/1 #) > In ice-9/boot-9.scm: > 705:2 6 (call-with-prompt _ _ #) > In ice-9/eval.scm: > 619:8 5 (_ #(#(#))) > In ice-9/boot-9.scm: > 2312:4 4 (save-module-excursion _) > 3831:12 3 (_) > In /home/sdb/src/guile-npm-explorer/npm-explorer.scm: > 345:29 2 (generate-dot "mocha" () 0 _) > 199:8 1 (choose-version # #) > In unknown file: > 0 (string-prefix? "*" # # =E2= =80=A6) ^^^^^^^^^^^^^^^^ that what you got here is the standard procedure 'version', which you have to invoke, like so (version) =3D> "2.0.13" which then yields your current Guile version (yeah, mine is old. I know, I know). If you try to treat this procedure as a string (more precisely: to pass it to `string-prefix?', things go south... Don't ask me where this is happening in your code, though. Cheers -- t --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlwWsyQACgkQBcgs9XrR2kYWIACfYKNaU7r+qu3h+KdPzFPuBk6r Vl8Anicdm7s56LtqzAvsE4EyIZCqXhM/ =GDAv -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--