Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interactive eval fails with "invalid number of arguments: 2" #35

Closed
jurov opened this issue Nov 11, 2015 · 2 comments
Closed

interactive eval fails with "invalid number of arguments: 2" #35

jurov opened this issue Nov 11, 2015 · 2 comments

Comments

@jurov
Copy link
Contributor

jurov commented Nov 11, 2015

Using VIM 7.4.884, SBCL 1.2.16 on arch linux, Slimv master from github. When I open a backtrace line by Enter, then select Interactive eval (or ,v) and try to evaluate anything, I get error like:

invalid number of arguments: 2                                                                                                    
   [Condition of type SB-INT:SIMPLE-PROGRAM-ERROR]

 Backtrace:
  0: (SWANK:EVAL-STRING-IN-FRAME "(setq arg-1 3)" 0) [tl,external] {{{
      No source line information
    Locals:
      SB-DEBUG::ARG-1 = #(1318851 :DEFINED :FUNCTION #<FDEFINITION for SWANK:EVAL-STRING-IN-FRAME>)
      SB-DEBUG::ARG-2 = #<NULL-LEXENV>
      SB-DEBUG::ARG-3 = SWANK:EVAL-STRING-IN-FRAME

As newbie, maybe I do something obviously wrong, but when I describe symbol SWANK:EVAL-STRING-IN-FRAME , it really takes 3 arguments, not 2:

EVAL-STRING-IN-FRAME names a compiled function:
  Lambda-list: (STRING FRAME PACKAGE)
  Derived type: (FUNCTION (T T T) *)
  Source file: /home/juro/slimv/slime/swank.lisp
@kovisoft
Copy link
Owner

You did nothing wrong, it was really a bug: swank:eval-string-in-frame got a new argument 'package', that was missing from slimv.
Fixed in commit a14eb4a

@jurov
Copy link
Contributor Author

jurov commented Nov 15, 2015

Now it works, thanks!

@jurov jurov closed this as completed Nov 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants