nonsequitur / inf-ruby

218 stars 69 forks source link

M-X Inf-ruby breaks with ioctl error in 2.7.0 #146

Closed dekkzz76 closed 3 years ago

dekkzz76 commented 3 years ago

Irb version unknown: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell irb 1.2.1 (2019-12-24)

Ruby 2.7.0 installed via rvm on Ubuntu 20.10 throws following error, same for ruby 3.0.0.

Suspect bash wants interactive mode but not sure.

dgutov commented 3 years ago

Do you have any more details? It seems to be working fine here using ruby 2.7.1p83 and irb 1.3.0.

Any chance you could try those versions?

dekkzz76 commented 3 years ago

fresh install of ubuntu 20.10, rvm ppa, emacs 27 ppa and inf-ruby via melpa with nomultiline entry in ./irbrc.

anything specific you want info wise? will try 2.7.1p83 if its listed in rvm irbrc.txt bashr.txt

dgutov commented 3 years ago

Hmm, it looks like it might not be caused by any particular version of Ruby or irb: https://emacs.stackexchange.com/questions/3447/cannot-set-terminal-process-group-error-when-running-bash-script

Can you evaluate (shell-command-to-string "irb -v")? What does it return?

dekkzz76 commented 3 years ago

"bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell irb 1.2.1 (2019-12-24) "

could it be bash issue/?

dekkzz76 commented 3 years ago

Looks like it was bash related. removing (setq shell-command-switch "-ic") from .emacs allows the the REPL to work now.