eschulte / rinari

Rinari Is Not A Rails IDE (it is an Emacs minor mode for Rails)
http://rinari.rubyforge.org
GNU General Public License v3.0
412 stars 68 forks source link

rinari-console : Wrong number of arguments #74

Closed mcfilib closed 10 years ago

mcfilib commented 10 years ago

Running rinari-console yields the following error. Can anyone point me in the right direction to start debugging this?

Wrong number of arguments: (lambda (cmd) "Run an inferior Ruby process, input and output via buffer *ruby*.
If there is a process already running in `*ruby*', switch to that buffer.
With argument, allows you to edit the command line (default is value
of `ruby-program-name').  Runs the hooks `inferior-ruby-mode-hook'
(after the `comint-mode-hook' is run).
(Type \\[describe-mode] in the process buffer for a list of commands.)" (interactive (list (if current-prefix-arg (read-string "Run Ruby: " ruby-program-name) ruby-program-name))) (if (not (comint-check-\
proc "*ruby*")) (let ((cmdlist (ruby-args-to-list cmd))) (set-buffer (apply (quote make-comint) "ruby" (car cmdlist) nil (cdr cmdlist))) (inferior-ruby-mode))) (setq ruby-program-name cmd) (setq ruby-buf\
fer "*ruby*") (pop-to-buffer "*ruby*")), 2
dgutov commented 10 years ago

Looks like run-ruby on your system doesn't accept two arguments.

Did you get inf-ruby from the Ruby repo? How did that happen?

mcfilib commented 10 years ago

Ah, cheers for that! I'm using emacs-live (https://github.com/overtone/emacs-live) which appears to be using an older version of inf-ruby. I'll send them a pull request.

dgutov commented 10 years ago

I see. It seems to use a whole bunch of outdated libraries, here: https://github.com/overtone/emacs-live/tree/master/packs/live/lang-pack/lib/ruby-mode

FWIW, the only (arguably) up-to-date ones in this list are in the process of being packaged for Melpa: https://github.com/milkypostman/melpa/pull/1079

mcfilib commented 10 years ago

@dgutov That's really helpful. Yeah, they seem to be using a really old checkout from Ruby svn. Updated deps and everything's working nicely now.

purcell commented 10 years ago

@unsymbol I keep telling @samaaron to switch over to MELPA... ;-)