尝试生成控制器时Rails挂起

时间:2017-07-25 19:51:47

标签: ruby-on-rails ruby

出于某种原因,我似乎无法使用home命令。一直试图生成一个名为artists的控制器和另一个名为^C/Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/run.rb:117:in `gets': Interrupt from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/run.rb:117:in `verify_server_version' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/run.rb:62:in `run' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/run.rb:42:in `warm_run' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/run.rb:35:in `call' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/rails.rb:24:in `call' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/client.rb:30:in `run' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/bin/spring:49:in `<top (required)>' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load' from /Users/username/.rvm/gems/ruby-2.3.1/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>' from /Users/username/Code/spotify-tres/bin/spring:15:in `require' from /Users/username/Code/spotify-tres/bin/spring:15:in `<top (required)>' from bin/rails:3:in `load' from bin/rails:3:in `<main>' 的控制器,但它似乎一直悬挂着。

当我取消请求时,我得到以下堆栈:

$("#showNames").text("{{ $t('hide_labels') }}");

不知道什么是错的。有什么想法吗?

1 个答案:

答案 0 :(得分:1)

春天的bug。您可以在https://github.com/rails/spring/issues/265ruby on rails console hanging when loading

中找到更多信息

两个主要选项:

  1. 停止(或重启春天)bin/spring stop
  2. 尝试在干净的rvm环境中重新安装