asok / projectile-rails

Emacs Rails mode based on projectile
258 stars 59 forks source link

Unable to interact with rails server #85

Closed esjee closed 8 years ago

esjee commented 8 years ago

2016-02-14-110709_621x249_scrot

When using something like binding.pry to open a console, I'm unable to interact with the repl. Is this intentional?

(Note sure if it's noteworthy, but I'm using evil.)

esjee commented 8 years ago

Looking into it a bit more, it looks like the buffer is read-only. After changing that (C-x C-q (?)) it looks like everything works as expected.

Changing the buffer to not be read-only (much like rails-console) seems doable enough. Do you have any thoughts on this?

stardiviner commented 8 years ago

Are you using pry-rails in Rails as IRB replacement for rails console?

esjee commented 8 years ago

Yes, rails-console opens a pry shell, not IRB.

asok commented 8 years ago

For me hitting C-x C-q didn't allow me to interact with pry. I had to run inf-ruby-switch-from-compilation in order to do it. replace-dialog10 Although I had to manually delete "[1] " before the prompt.

asok commented 8 years ago

Oh the workaround for "�[0G[1] " is here #12

asok commented 8 years ago

@esjee are you calling inf-ruby-auto-enter somewhere in your setup? That would explain why you have compilation mode enabled right after hitting the breakpoint. Or maybe inf-ruby-switch-setup that way you are enabling compilation mode when hitting C-x C-q.

esjee commented 8 years ago

Sorry the for the late response!

I checked, and that was indeed the issue. Thanks for the help!