铁红宝石和黄瓜
当使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它与 languages.yml 文件有关。
该文件正在第 10 行的 platform.rb 文件中加载,这是 Cucumber gem 的一部分。
我尝试过:
导致文件未找到错误。
那没有用。
所有内容。给了一些零
方法错误。
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:
resulted in a file not found error.
That did not work.
of all contents. Gave some nil
method error.