gherkin.lexer.LexingError running cucumber example i18n/it jruby using
compatibilty mode 1.9
--------------------------------------------------------------------------------------------
Key: JRUBY-6079
URL: https://jira.codehaus.org/browse/JRUBY-6079
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.4
Environment: Linux Ubuntu 10.4
Reporter: Giovanni Cristelli
Assignee: Thomas E Enebo
Priority: Minor
Trying jruby with cucumber example i18n/it throws an gherkin.lexer.LexingError
if jruby compatibility is 1.9, but everything works with 1.8 (the i18n/en
example works without problems).
I have tried other cucumber (0.10.0) and jruby (1.5.6) combinations but I've
got always the same error.
Here is the report of the 2 executions:
{noformat}
giovanni@gc-ubuntu-desktop:/tmp/prova/rubygems/gems/cucumber-1.0.6/examples/i18n/it$
jruby --1.9 -v
jruby 1.6.4 (ruby-1.9.2-p136) (2011-08-23 17ea768) (OpenJDK Client VM 1.6.0_20)
[linux-i386-java]
giovanni@gc-ubuntu-desktop:/tmp/prova/rubygems/gems/cucumber-1.0.6/examples/i18n/it$
jruby --1.9 -S cucumber
gherkin.lexer.LexingError: Lexing error on line 2: 'Funzionalità : somma
Per evitare di fare errori stupidi
Come utente
Voglio sapere la somma di due numeri
Scenario: la somma di due numeri
Dato che ho inserito 5
E che ho inserito 7
Quando premo somma
Allora il risultato deve essere 12
%_FEATURE_END_%'. See http://wiki.github.com/cucumber/gherkin/lexingerror for
more information. (NativeException)
gherkin/lexer/i18n/IT.java:820:in `scan'
gherkin/lexer/I18nLexer.java:30:in `scan'
gherkin/parser/Parser.java:53:in `parse'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/feature_file.rb:37:in
`parse'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/features_loader.rb:28:in
`load'
org/jruby/RubyArray.java:1603:in `each'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/features_loader.rb:26:in
`load'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/features_loader.rb:14:in
`features'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime.rb:132:in
`features'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime.rb:45:in
`run!'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/cli/main.rb:43:in
`execute!'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/../lib/cucumber/cli/main.rb:20:in
`execute'
/tmp/prova/rubygems/gems/cucumber-1.0.6/bin/cucumber:14:in `(root)'
org/jruby/RubyKernel.java:1073:in `load'
/tmp/prova/rubygems/bin/cucumber:19:in `(root)'
{noformat}
and with 1.8
{noformat}
giovanni@gc-ubuntu-desktop:/tmp/prova/rubygems/gems/cucumber-1.0.6/examples/i18n/it$
jruby --1.8 -v
jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (OpenJDK Client VM 1.6.0_20)
[linux-i386-java]
giovanni@gc-ubuntu-desktop:/tmp/prova/rubygems/gems/cucumber-1.0.6/examples/i18n/it$
jruby --1.8 -S cucumber
# language: it
Funzionalità: somma
Per evitare di fare errori stupidi
Come utente
Voglio sapere la somma di due numeri
Scenario: la somma di due numeri # features/somma.feature:7
Dato che ho inserito 5 #
features/step_definitons/calcolatrice_steps.rb:14
E che ho inserito 7 #
features/step_definitons/calcolatrice_steps.rb:14
Quando premo somma #
features/step_definitons/calcolatrice_steps.rb:18
Allora il risultato deve essere 12 #
features/step_definitons/calcolatrice_steps.rb:22
1 scenario (1 passed)
4 steps (4 passed)
0m0.091s
{noformat}
The gem list output:
{noformat}
*** LOCAL GEMS ***
builder (3.0.0)
bundler (1.0.17)
cucumber (1.0.6)
diff-lcs (1.1.2)
gherkin (2.4.21 java)
jruby-jars (1.6.4)
json (1.5.0 java, 1.4.6 java)
json-jruby (1.5.0 java)
rake (0.8.7)
rspec (2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
rspec-instafail (0.1.8)
rspec-mocks (2.6.0)
rubyzip (0.9.4)
sources (0.0.1)
spoon (0.0.1)
term-ansicolor (1.0.6)
tilt (1.3.2)
warbler (1.3.2)
{noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email