Hi, I posted this question on c.l.l and they suggested I re-post it here.
I run into a problem when running SLIME with Clozure Common Lisp (a.k.a. openmcl).
When I call a function with the wrong number of args, the error message is unhelpful. When I do the same running openmcl directly (not via SLIME) it works correctly. Here's a transcript:
; SLIME 2008-02-25 CL-USER> (defun foo (a b) (+ a b)) FOO CL-USER> (foo 4 5) 9 CL-USER> (foo 3)
Error: value -2 is not of the expected type UNSIGNED-BYTE. While executing: NBUTLAST, in process repl-thread(5). Type :POP to abort, :R for a list of available restarts. Type :? for other options.
1> :pop ; Evaluation aborted. CL-USER> (foo 3 4 5)
Error: value -2 is not of the expected type UNSIGNED-BYTE. While executing: NBUTLAST, in process repl-thread(5). Type :POP to abort, :R for a list of available restarts. Type :? for other options.
1> :pop ; Evaluation aborted. CL-USER>
This is running under Aquamacs 1.3, but it did the same under 1.2. I refreshed the SLIME inside Aquamacs from cvs about 30 minutes before I tried this example.
Is there something I need to configure to make this work? Or is this a known problem?
Thanks,
Neil Baylis
On Tue, Feb 26, 2008 at 07:08:43PM -0800, Neil Baylis wrote:
CL-USER> (foo 3)
Error: value -2 is not of the expected type UNSIGNED-BYTE. While executing: NBUTLAST, in process repl-thread(5). Type :POP to abort, :R for a list of available restarts. Type :? for other options.
Which version of CCL are you using? I just tried this, and I get an error popup with
Too few arguments in call to #<Compiled-function FOO #x30004101295F>: 1 arguments provided, at least 2 required. [Condition of type CCL::TOO-FEW-ARGUMENTS]
David
On Wed, Feb 27, 2008 at 9:16 AM, David Brown lisp@davidb.org wrote:
On Tue, Feb 26, 2008 at 07:08:43PM -0800, Neil Baylis wrote:
CL-USER> (foo 3)
Error: value -2 is not of the expected type UNSIGNED-BYTE. While executing: NBUTLAST, in process repl-thread(5). Type :POP to abort, :R for a list of available restarts. Type :? for other options.
Which version of CCL are you using? I just tried this, and I get an error popup with
Too few arguments in call to #<Compiled-function FOO #x30004101295F>: 1 arguments provided, at least 2 required. [Condition of type CCL::TOO-FEW-ARGUMENTS]
David
Hi David, Here's what it prints when I start it up: Welcome to Clozure Common Lisp Version 1.1-r8468 (DarwinPPC32)!
I just installed this about a week ago with a cvs update, but I was also seeing this problem before I did the update.
Neil
On Wed, Feb 27, 2008 at 10:14:00AM -0800, Neil Baylis wrote:
Here's what it prints when I start it up: Welcome to Clozure Common Lisp Version 1.1-r8468 (DarwinPPC32)!
I'm running 1.2-r8575 (LinuxX8664)!
I could be either the architecture or something fixed in the 1.2 branch. Maybe someone on the openmcl list might have an idea?
The APIs in CCL are sometimes changed slightly, which tends to break slime. Maybe they've put something back. If I had an idea of where to look, I could look into it.
David