铁红宝石和黄瓜

发布于 2024-08-15 16:15:17 字数 1875 浏览 5 评论 0原文

当使用 IronRuby 1.0 RC1 运行 Cucumber 0.5.1 时,出现以下错误:

IronRuby.Libraries.Yaml:0:in `ScanAnchor': while scanning an alias: expected alphabetic or numeric character, but found
something else... (IronRuby::StandardLibrary::Yaml::ScannerException)
        from IronRuby.Libraries.Yaml:0:in `FetchAlias'
        from IronRuby.Libraries.Yaml:0:in `FetchMoreTokens'
        from IronRuby.Libraries.Yaml:0:in `PeekToken'
        from IronRuby.Libraries.Yaml:0:in `Produce'
        from IronRuby.Libraries.Yaml:0:in `ParseStreamNext'
        from IronRuby.Libraries.Yaml:0:in `ComposeNode'
        from IronRuby.Libraries.Yaml:0:in `ComposeNode'
        from IronRuby.Libraries.Yaml:0:in `ComposeNode'
        from IronRuby.Libraries.Yaml:0:in `ComposeDocument'
        from IronRuby.Libraries.Yaml:0:in `GetNode'
        from IronRuby.Libraries.Yaml:0:in `GetData'
        from IronRuby.Libraries.Yaml:0:in `MoveNext'
        from :0:in `load_file'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/../lib/cucumber/platform.rb:10
        from C:/Program Files/IronRuby 0.9.3.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/../lib/cucumber.rb:5
        from :0:in `require'
        from C:/Program Files/IronRuby 0.9.3.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/../lib/cucumber/cli/main.rb:2
        from C:/Program Files/IronRuby 0.9.3.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from :0:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/cucumber:5
        from c:/ruby/bin/cucumber:19
        from :0:in `require'
        from :0:in `load'

我不知道现在该怎么办。 我正在尝试运行示例黄瓜功能。

黄瓜功能(运行良好) iucumber 功能(引发此错误)

When running Cucumber 0.5.1 with IronRuby 1.0 RC1, I get the following error:

IronRuby.Libraries.Yaml:0:in `ScanAnchor': while scanning an alias: expected alphabetic or numeric character, but found
something else... (IronRuby::StandardLibrary::Yaml::ScannerException)
        from IronRuby.Libraries.Yaml:0:in `FetchAlias'
        from IronRuby.Libraries.Yaml:0:in `FetchMoreTokens'
        from IronRuby.Libraries.Yaml:0:in `PeekToken'
        from IronRuby.Libraries.Yaml:0:in `Produce'
        from IronRuby.Libraries.Yaml:0:in `ParseStreamNext'
        from IronRuby.Libraries.Yaml:0:in `ComposeNode'
        from IronRuby.Libraries.Yaml:0:in `ComposeNode'
        from IronRuby.Libraries.Yaml:0:in `ComposeNode'
        from IronRuby.Libraries.Yaml:0:in `ComposeDocument'
        from IronRuby.Libraries.Yaml:0:in `GetNode'
        from IronRuby.Libraries.Yaml:0:in `GetData'
        from IronRuby.Libraries.Yaml:0:in `MoveNext'
        from :0:in `load_file'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/../lib/cucumber/platform.rb:10
        from C:/Program Files/IronRuby 0.9.3.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/../lib/cucumber.rb:5
        from :0:in `require'
        from C:/Program Files/IronRuby 0.9.3.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/../lib/cucumber/cli/main.rb:2
        from C:/Program Files/IronRuby 0.9.3.0/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from :0:in `require'
        from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.5.1/bin/cucumber:5
        from c:/ruby/bin/cucumber:19
        from :0:in `require'
        from :0:in `load'

I have no idea what to do now.
I am trying to run the example cucumber features.

cucumber features (runs fine)
icucumber features (throws this error)

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

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

发布评论

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

评论(1

半﹌身腐败 2024-08-22 16:15:17

它与 languages.yml 文件有关。
该文件正在第 10 行的 platform.rb 文件中加载,这是 Cucumber gem 的一部分。
我尝试过:

  1. 删除文件,但仅此而已
    导致文件未找到错误。
  2. 文件中仅保留英文。
    那没有用。
  3. 清除文件
    所有内容。给了一些零
    方法错误。

It has something to do with the languages.yml file.
This file is being loaded in the platform.rb file on line 10, thats part of the cucumber gem.
What I tried:

  1. Deleting the file, but that only
    resulted in a file not found error.
  2. Leaving only English in the file.
    That did not work.
  3. Clearing the file
    of all contents. Gave some nil
    method error.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文