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

eval-in-repl-ruby error #22

Closed
diadochos opened this issue Dec 13, 2016 · 2 comments
Closed

eval-in-repl-ruby error #22

diadochos opened this issue Dec 13, 2016 · 2 comments

Comments

@diadochos
Copy link

diadochos commented Dec 13, 2016

When I execute M-x eir-eval-in-ruby in a ruby buffer with an inf-ruby mode, it gives the following error.

eir-send-to-repl: Wrong number of arguments: (lambda (command &optional name) "Run an inferior Ruby process, input and output in a new buffer.

The consecutive buffer names will be:
`*NAME*', `*NAME*<2>', `*NAME*<3>' and so on.

NAME defaults to \"ruby\".

Runs the hooks `comint-mode-hook' and `inf-ruby-mode-hook'.

(Type \\[describe-mode] in the process buffer for the list of commands.)" (setq name (or name "ruby")) (let ((commandlist (split-string-and-unquote command)) (buffer (current-buffer)) (process-environment process-environment)) (setenv "PAGER" (executable-find "cat")) (set-buffer (apply (quote make-comint-in-buffer) name (generate-new-buffer-name (format "*%s*" name)) (car commandlist) nil (cdr commandlist))) (inf-ruby-mode) (ruby-remember-ruby-buffer buffer) (setq inf-ruby-buffers (cons (current-buffer) inf-ruby-buffers)) (setq inf-ruby-buffer-impl-name name inf-ruby-buffer-command command)) (pop-to-buffer (setq inf-ruby-buffer (current-buffer)))), 0

However, M-x ruby-send-region works correctly.
Has there been an incompatible update recently?

Sorry to bother, but it would be awesome if you could look into this (I will try to fix this after the new years when I get the time).

@kaz-yos
Copy link
Owner

kaz-yos commented Dec 25, 2016

Thanks for reporting. I'll check this out.

@kaz-yos
Copy link
Owner

kaz-yos commented Jul 30, 2017

Hi, I'm sorry for the late response.

It looks like inf-ruby.el was updated to make run-ruby function to take a required command argument. I updated eval-in-repl (0.9.6) to use the inf-ruby function, which seems to retain the behavior I want.

Change in inf-ruby.el: nonsequitur/inf-ruby@ac80ea9#diff-b0fc04c71e57cf68de683676a95141e8L324

0.9.6: https://github.com/kaz-yos/eval-in-repl/releases/tag/v0.9.6

@kaz-yos kaz-yos closed this as completed Jul 30, 2017
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