简体   繁体   English

Rspec 挂在 Ruby 2.7.4 上,没有输出

[英]Rspec hangs on Ruby 2.7.4 with no output

I'm working on an upgrade from Ruby 2.6.8 to 2.7.4.我正在从 Ruby 2.6.8 升级到 2.7.4。 Everything was painless, except that now the Rspec suite just freezes a few tests in, with no output, error, warning or anything.一切都很顺利,除了现在 Rspec 套件只是冻结了一些测试,没有输出、错误、警告或任何东西。 I've left it to continue for over an hour and it never progresses.我已经让它继续了一个多小时,但它从未取得进展。

I've tried running rspec --backtrace , but that yields no more info.我试过运行rspec --backtrace ,但这不会产生更多信息。

Does anyone know how I may be able to debug this?有谁知道我可以如何调试这个?

ruby (2.7.4)
rspec-rails (3.9.0)
rails (5.2.5)

Holy cow, finally figured this one out.天啊,终于想通了这一点。 Apparently Rails 5.2.x is effectively incompatible with Ruby 2.7.x .显然 Rails 5.2.x实际上与 Ruby 2.7.x不兼容。 After updating to Rails 6.0.0 , everything seems to be peachy-keen again.更新到 Rails 6.0.0 ,一切似乎又变得如花似玉了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM