Closed stardiviner closed 9 years ago
There's no output in *rails*
, or there's no such buffer at all?
Yes, no output in buffer *rails*
. I don't know how to debug this more.
Not even the Ruby prompt?
Yes, not even the Ruby prompt.... nothing at all.
Do you see the same result if you call (run-ruby "rails console")
instead? Or (run-ruby "bundle exec rails console")
.
If so, please upload that project, with Gemfile.lock
and everything, somewhere I can look at it. Or if it's proprietary, reproduce the problem in a new project first.
Also, what's your version of Ruby?
$ rails new test-app
), still failed.(run-ruby "rails console")
and (run-ruby "bundle exec rails console")
Emacs open the inf-ruby inferior buffer, but did not show anything different, and I test whether Rails is loaded with Rails.env
, but it report error: uninitialized constant Rails
.Works okay here, with a similar configuration (tried Bundler 1.8.0 and 1.8.3):
Loading development environment (Rails 4.2.0)
irb(main):001:0> Dir.pwd
=> "/home/gutov/vc/test-app"
irb(main):004:0> RUBY_VERSION
=> "2.2.0"
irb(main):013:0> Bundler::VERSION
=> "1.8.3"
irb(main):024:0> RUBY_PATCHLEVEL
=> 0
irb(main):028:0> RUBY_RELEASE_DATE
=> "2014-12-25"
irb(main):033:0> RUBY_REVISION
=> 49005
irb(main):045:0> Rails.env
=> "development"
Maybe you need to recompile Ruby with Readline support and/or upgrade to the release version. That 2.2.0dev
version doesn't look right to me.
Anyway, I use rbenv
. Were I you, I'd also double-check that Emacs uses the right version of Ruby.
Fixed, after switch to rbenv. And have another issue now:
The first time I open inf-ruby-console-auto
in Rails still does not show anything, then I kill the buffer (process), and re-open it again, it successed then.
I'm afraid you'll still have to investigate it yourself. I see no such behavior.
I get nothing output in buffer
*rails*
. (the inf-ruby-console-auto) after executedinf-ruby-console-auto
in a Rails file.I have output in inf-ruby buffer
=> "robe on"
. And I can execute code in inf-ruby.puts "hi"
. And I also tested on a new Rails app code demo (generated withrails new demo
).Emacs version: 25.0.50.2 System: Arch Linux latest version inf-ruby which instaled with el-get.