铁路不工作。给我带来问题,即 /railroad-0.5.0/lib/railroad/app_diagram.rb:54:in `disable_stdout':未初始化的常量

发布于 2024-12-07 18:21:22 字数 1559 浏览 0 评论 0原文

这是各种输出

railroad -M | dot -Tsvg > models.svg
/Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:54:in `disable_stdout': uninitialized constant AppDiagram::PLATFORM (NameError)
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:72:in `load_environment'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:18:in `initialize'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:14:in `initialize'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/bin/railroad:36:in `new'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/bin/railroad:36:in `<top (required)>'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/bin/railroad:19:in `load'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/bin/railroad:19:in `<main>'

版本

me$ ruby -v
  ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
me$ rvm -v
  rvm 1.8.0 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]

me$ rails -v
  Rails 3.0.10

每个命令 都给了我同样的问题:

  • railroad -o models.dot - M

  • 铁路 -a -i -o full_models.dot -M

  • 铁路 -M |点-Tsvg> models.svg

  • -C |尼托-Tpng>控制器.png

Here is various outputs

railroad -M | dot -Tsvg > models.svg
/Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:54:in `disable_stdout': uninitialized constant AppDiagram::PLATFORM (NameError)
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:72:in `load_environment'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb:18:in `initialize'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/models_diagram.rb:14:in `initialize'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/bin/railroad:36:in `new'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/bin/railroad:36:in `<top (required)>'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/bin/railroad:19:in `load'
from /Users/me/.rvm/gems/ruby-1.9.2-p290/bin/railroad:19:in `<main>'

Versions

me$ ruby -v
  ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
me$ rvm -v
  rvm 1.8.0 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]

me$ rails -v
  Rails 3.0.10

Every command is giving me same issue:

  • railroad -o models.dot -M

  • railroad -a -i -o full_models.dot -M

  • railroad -M | dot -Tsvg > models.svg

  • railroad -C | neato -Tpng > controllers.png

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一人独醉 2024-12-14 18:21:22

Railroad 不适用于 ruby​​ 1.9.2 和 Rails 3.0.10。 Railroady 是高级维护版本..

Railroad is not working with ruby 1.9.2 and rails 3.0.10. Railroady is advanced maintained version..

白衬杉格子梦 2024-12-14 18:21:22

编辑 /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb 第 54 行,并将 PLATFORM 更改为 RUBY_PLATFORM。

请参阅:http://rubyforge.org/tracker/index.php?func=detail&aid=26418&group_id=3383&atid=12998

Edit /Users/me/.rvm/gems/ruby-1.9.2-p290/gems/railroad-0.5.0/lib/railroad/app_diagram.rb at line 54 and change PLATFORM to RUBY_PLATFORM.

See: http://rubyforge.org/tracker/index.php?func=detail&aid=26418&group_id=3383&atid=12998

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文