Closed Vodurden closed 8 years ago
This looks like a bug with inf-ruby. https://github.com/nonsequitur/inf-ruby/blob/master/inf-ruby.el. I'm having same behavior in MinGW with emacs 24.5, without spacemacs.
This looks like a bug with inf-ruby. https://github.com/nonsequitur/inf-ruby/blob/master/inf-ruby.el. I'm having same behavior with emacs 24.5, without spacemacs
M-x inf-ruby
pry> puts "Hello"
Freeze:
Debugger entered--Lisp error: (quit)
accept-process-output(#
ad-Advice-call-interactively(#
@jclosure @Vodurden Do you managed to resolve this issue? Is it still happening with the last spacemacs release?
I had the same issue with Pry in windows. Turns out, it's an issue with readline. Here's my ~/.pryrc that fixes the issue:
class Emacsable def self.readline(prompt) print prompt (gets || '').chomp end end Pry.config.input = Emacsable
Pry.config.pager = false if ENV["INSIDE_EMACS"] Pry.config.correct_indent = false if ENV["INSIDE_EMACS"] Pry.config.print = proc { |output, value| output.puts "=> #{value.inspect}" } Pry.config.exceptionhandler = proc do |output, exception, | output.puts "#{exception.class}: #{exception.message}" output.puts "from #{exception.backtrace.first}" end
require "awesome_print" AwesomePrint.pry!
@jclosure Thanks for sharing!
@Vodurden Does this method work in your case?
@StreakyCobra I'm no longer using emacs on windows so I'm unfortunately unable to test.
Ok, thanks for your response! A workaround have been proposed and nobody else seems to have this problem anymore, I'm closing this issue then.
If anybody encounters this bug again, let us know by opening a new issue, or posting a message here (I'll reopen it if it's the case) :relaxed:
Using inf-ruby or robe-mode on Windows causes an immediate freeze. This occurs using both NTEmacs and MinGW emacs running under MSYS2 installed with
pacman -S emacs
.Emacs Version:
24.5
(both) Ruby Version:ruby 2.1.6p336 (2015-04-13 revision 50298) [i386-mingw32]
. Windows version installed from the Ruby website. Also has DevKit installed.Steps to reproduce:
runemacs
in mingw terminal orrunemacs.exe
from NTEmacs)ruby
layer.<SPC>: inf-ruby-mode-auto
puts "Hello"
Using
toggle-debug-on-quit
and pressing C-g after freezing produces the following trace:Using pry from
cmd.exe
works fine:It also works fine from MSYS2's MinGW console:
It also works fine when testing in a project
I'm not sure if this is spacemacs specific or if this issue would be better placed on inf-ruby but I decided to come here first since spacemacs is what I'm using. I'm happy to move the issue if it makes more sense on another repository.