正当防卫4控制台代码:带弹簧锁定的Rails4控制台(spring locked)

我正在使用 Ruby 2.1.1 和 Rails 4.1.0.rc1。当 excuterails c时,它被锁定。

使用Ctrl-C停止,我得到了错误日志 belore:

~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/client/run.rb:47:in `gets': Interrupt
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/client/run.rb:47:in `verify_server_version'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/client/run.rb:19:in `call'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/client/command.rb:7:in `call'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/client/rails.rb:23:in `call'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/client/command.rb:7:in `call'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/client.rb:26:in `run'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/bin/spring:48:in `<top (required)>'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/binstub.rb:11:in `load'
    from ~/.rvm/gems/ruby-2.1.1/gems/spring-1.1.2/lib/spring/binstub.rb:11:in `<top (required)>'
    from ~/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ~/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ~/Sites/ihaveu/bin/spring:16:in `<top (required)>'
    from bin/rails:3:in `load'
    from bin/rails:3:in `<main>'

弹簧移除后,rails c恢复。

5

我今天在 Ruby 2.1.1 和 Rails 4.0.3 上遇到了这个问题,我设法通过在重试之前停止spring来修复它:

$ spring stop
Spring stopped.
$ bundle exec rails c
Loading development environment (Rails 4.0.3)
[1] pry(main)>
3

通过将 Rails 4.1.0.rc1 更新为 4.1.0.rc2 解决

本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处

(695)
C反应蛋白很高:对日期验证使用很高的期望(great expectations validation)
上一篇
Scrath编程:Python:从Scrath开发多元线性回归模型
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(81条)