“轨道生成"不工作 [英] "rails generate" not working

查看:33
本文介绍了“轨道生成"不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用 ruby​​ 2.1.0(或 2.1.1)并且我输入 rails g 时没有任何反应.它只是挂起.但是当我更改为 1.9.3 时,使用 rvm use 1.9.3 它按预期工作.

When using ruby 2.1.0 (or 2.1.1) and I type rails g nothing happens. It simply hangs. But when I change to 1.9.3, using rvm use 1.9.3 it works as expected.

我该如何调试?什么可能导致此命令挂起,仅在 ruby​​ > 2.0.0 上?

How can I debug this? What might be causing this command to hang, only on ruby > 2.0.0?

我试过重新安装 rails 和 ruby​​!

I have tried reinstalling both rails and ruby!

推荐答案

有没有试过运行:

spring stop

rails generate 挂起可能是因为 spring 已经在运行了.

rails generate hangs may because spring is already running.

https://github.com/rails/spring/issues/265

这篇关于“轨道生成"不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆