[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with lambda-procedure
From: |
tomas |
Subject: |
Re: Help with lambda-procedure |
Date: |
Sun, 16 Dec 2018 21:18:44 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Dec 16, 2018 at 11:48:45AM -0800, address@hidden wrote:
> I'm trying hard to improve the npm-explorer[1] with a semver-parser.
>
> I get this error when testing in the REPL:
Hm. Confused by your code. BUT the backtrace suggests...
> address@hidden ~/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-explorer/npm-explorer.scm.go
> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
> ;;; 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-explorer/npm-explorer.scm.go
> Backtrace:
> 7 (apply-smob/1 #<catch-closure 88f83a0>)
> In ice-9/boot-9.scm:
> 705:2 6 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
> 619:8 5 (_ #(#(#<directory (guile-user) 88e9910>)))
> 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 #<hash-table 8918540 18/31> #<procedure…>)
> In unknown file:
> 0 (string-prefix? "*" #<procedure version ()> #<undefined> …)
^^^^^^^^^^^^^^^^
that what you got here is the standard procedure 'version', which you
have to invoke, like so
(version)
=> "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
signature.asc
Description: Digital signature