Stack level too deep with ruby - ruby

I am not doing anything fancy here; nothing. As a noob, could someone explain to me why this is happening? I am following this tutorial and I got the error:
Rails Console:
require 'bigdecimal' #=> false
sum = BigDecimal.new("0") #=> stack level too deep
So I thought, let me install BigDecimal and all would be ok. No. Same issue. Is this an issue with ruby 2.3.1p112? Does it has any affiliation with Rails 5 that Im using? Im in the console, not Rails. Thanks.
Stack Trace:
irb(main):001:0> BigDecimal.new("2.11")
SystemStackError: stack level too deep
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xeroizer-2.16.4/lib/big_decimal_to_s.rb:4:in `to_s_with_default_format'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/core_ext/big_decimal/conversions.rb:9:in `to_s'
... 10876 levels...
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `block in load'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:287:in `load'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/commands/rails.rb:6:in `call'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/command_wrapper.rb:38:in `call'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/application.rb:191:in `block in serve'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/application.rb:161:in `fork'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/application.rb:161:in `serve'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/application.rb:131:in `block in run'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/application.rb:125:in `loop'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/application.rb:125:in `run'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/spring-1.7.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/sylar/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
irb(main):002:0>

Related

undefined method `keys' for #<Cucumber::Messages::GherkinDocument::Feature:0x0801ea30> (NoMethodErr or)

Facing problem when try to run 'parallel_tests' in Cucumber + Ruby framework.
Command which I use:
bundle exec parallel_cucumber -n 3 features/someFeature --group-by scenarios
Error I get:
undefined method `keys' for #<Cucumber::Messages::GherkinDocument::Feature:0x07fba0b0> (NoMethodErr
or)
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:81:
in `rubify_keys'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:32:
in `initialize'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:125
:in `initialize'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:106
:in `new'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:106
:in `feature'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:17:
in `feature'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/parser.rb:32:in `d
ocument'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:30:in `block in parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:29:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:29:in `parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:21:in `compile'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:75:in `run!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in `execute!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/bin/cucumber:9:in `<top (required)>'
C:/Ruby26/bin/cucumber:23:in `load'
C:/Ruby26/bin/cucumber:23:in `<main>'
undefined method `keys' for #<Cucumber::Messages::GherkinDocument::Feature:0x07f959d8> (NoMethodErr
or)
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:81:
in `rubify_keys'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:32:
in `initialize'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:125
:in `initialize'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:106
:in `new'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:106
:in `feature'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:17:
in `feature'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/parser.rb:32:in `d
ocument'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:30:in `block in parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:29:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:29:in `parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:21:in `compile'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:75:in `run!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in `execute!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/bin/cucumber:9:in `<top (required)>'
C:/Ruby26/bin/cucumber:23:in `load'
C:/Ruby26/bin/cucumber:23:in `<main>'
undefined method `keys' for #<Cucumber::Messages::GherkinDocument::Feature:0x07f5db90> (NoMethodErr
or)
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:81:
in `rubify_keys'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:32:
in `initialize'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:125
:in `initialize'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:106
:in `new'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:106
:in `feature'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/ast_builder.rb:17:
in `feature'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core/gherkin/parser.rb:32:in `d
ocument'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:30:in `block in parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:29:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:29:in `parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-3.2.1/lib/cucumber/core.rb:21:in `compile'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:75:in `run!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in `execute!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/bin/cucumber:9:in `<top (required)>'
C:/Ruby26/bin/cucumber:23:in `load'
C:/Ruby26/bin/cucumber:23:in `<main>'
Thing I want is to run different scenarios in different processes to minimize tests running time.
Cucumber version 3.2.1
Ruby version 2.6.0
parallel_tests 3.0
cuke_modeler 3.1.0
cucumber-gherkin 14.0.1
Update
After updating cucumber to 4.1 I get another error
Empty stack (RuntimeError)
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:132:in `pop'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:77:in `push_
expression'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:24:in `parse
'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:85:in `match_single_tag_express
ion?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `block in match_tags?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `all?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `match_tags?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/filters/tag_filter.rb:11:in `test_case'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:28:in `describe_to'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/compiler.rb:27:in `pickle'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:27:in `block in document'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:38:in `yield'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:38:in `block (
3 levels) in messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:37:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:37:in `block (
2 levels) in messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:79:in `yield'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:79:in `block (
2 levels) in sources'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:78:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:78:in `block i
n sources'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `block i
n messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `document'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:33:in `block in parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:32:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:32:in `parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:24:in `compile'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:79:in `run!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/cli/main.rb:29:in `execute!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/bin/cucumber:9:in `<top (required)>'
C:/Ruby26/bin/cucumber:23:in `load'
C:/Ruby26/bin/cucumber:23:in `<main>'
Empty stack (RuntimeError)
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:132:in `pop'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:77:in `push_
expression'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:24:in `parse
'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:85:in `match_single_tag_express
ion?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `block in match_tags?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `all?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `match_tags?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/filters/tag_filter.rb:11:in `test_case'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:28:in `describe_to'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/compiler.rb:27:in `pickle'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:27:in `block in document'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:38:in `yield'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:38:in `block (
3 levels) in messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:37:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:37:in `block (
2 levels) in messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:79:in `yield'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:79:in `block (
2 levels) in sources'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:78:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:78:in `block i
n sources'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `block i
n messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `document'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:33:in `block in parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:32:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:32:in `parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:24:in `compile'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:79:in `run!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/cli/main.rb:29:in `execute!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/bin/cucumber:9:in `<top (required)>'
C:/Ruby26/bin/cucumber:23:in `load'
C:/Ruby26/bin/cucumber:23:in `<main>'
Empty stack (RuntimeError)
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:132:in `pop'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:77:in `push_
expression'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-tag-expressions-2.0.4/lib/cucumber/tag_expressions/parser.rb:24:in `parse
'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:85:in `match_single_tag_express
ion?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `block in match_tags?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `all?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:47:in `match_tags?'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/filters/tag_filter.rb:11:in `test_case'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/test/case.rb:28:in `describe_to'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/compiler.rb:27:in `pickle'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:27:in `block in document'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:38:in `yield'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:38:in `block (
3 levels) in messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:37:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:37:in `block (
2 levels) in messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:79:in `yield'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:79:in `block (
2 levels) in sources'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:78:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:78:in `block i
n sources'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-gherkin-14.0.1/lib/gherkin/stream/parser_message_stream.rb:25:in `block i
n messages'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core/gherkin/parser.rb:21:in `document'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:33:in `block in parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:32:in `each'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:32:in `parse'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-core-7.1.0/lib/cucumber/core.rb:24:in `compile'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/runtime.rb:79:in `run!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/lib/cucumber/cli/main.rb:29:in `execute!'
C:/Ruby26/lib/ruby/gems/2.6.0/gems/cucumber-4.1.0/bin/cucumber:9:in `<top (required)>'
C:/Ruby26/bin/cucumber:23:in `load'
C:/Ruby26/bin/cucumber:23:in `<main>'
I've solved the problem. Seems that something went wrong with dependencies and versions.
Combination of:
cucumber (3.1.2)
parallel_tests (2.32.0)
NO cuke_modeler AT ALL
works fine for me!
Your original combination of dependencies was transitively including both the gherkin gem and the cucumber-gherkin gem, which cannot co-exist (see https://github.com/cucumber/cucumber/issues/1063). Upgrading your cucumber from 3.x to 4.x as you did should have solved the problem but, presumably, you still had gherkin in your dependency tree somewhere (without seeing your Gemfile.lock, it's difficult to tell).
Regarding your final dependency set, I can say with great confidence (I wrote the dang thing after all) that the presence of the cuke_modeler gem would not, on its own, cause a problem and that it has been both used and tested with both cucumber and parallel_tests. Additionally, cuke_modeler can work with either gherkin or cucumber-gherkin. You just have to be sure to use cuke_modeler 2.x if you are using gherkin and to use cuke_modeler 3.x if you are using cucumber-gherkin. If adding cuke_modeler back into your final set of dependencies causes a problem, I would again start by looking at your transitive dependencies and see if the gherkin/cucumber-gherkin conflict is present.

Web application could not be started undefined method

When I installed redmine-3.3 & 3.4 , I am not getting redmine page
I am facing this Error
Web application could not be started
undefined method `require_sudo_mode' for EmailAddressesController:Class (NoMethodError)
/usr/share/redmine/app/controllers/email_addresses_controller.rb:21:in `<class:EmailAddressesController>'
/usr/share/redmine/app/controllers/email_addresses_controller.rb:18:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:251:in `require'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:251:in `block in require'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:236:in `load_dependency'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:251:in `require'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:359:in `require_or_load'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:313:in `depend_on'
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:225:in `require_dependency'
/usr/lib/ruby/vendor_ruby/rails/engine.rb:444:in `block (2 levels) in eager_load!'
/usr/lib/ruby/vendor_ruby/rails/engine.rb:443:in `each'
/usr/lib/ruby/vendor_ruby/rails/engine.rb:443:in `block in eager_load!'
/usr/lib/ruby/vendor_ruby/rails/engine.rb:441:in `each'
/usr/lib/ruby/vendor_ruby/rails/engine.rb:441:in `eager_load!'
/usr/lib/ruby/vendor_ruby/rails/application/finisher.rb:53:in `block in <module:Finisher>'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `instance_exec'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `run'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:55:in `block in run_initializers'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `each'
/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `run_initializers'
/usr/lib/ruby/vendor_ruby/rails/application.rb:136:in `initialize!'
/usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb:30:in `method_missing'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
config.ru:3:in `require'
config.ru:3:in `block in <main>'
/usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `instance_eval'
/usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `eval'
/usr/share/passenger/helper-scripts/rack-preloader.rb:112:in `preload_app'
/usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
Application root /usr/share/redmine Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV) production Ruby interpreter
command /usr/bin/ruby.. .... ..
Can you give me suggestions?
Please ensure you'r connected with your database and did you missing any required gem.
require_sudo_mode. If the error comes because of this you definitely missing this gem.
This type of error comes under database not connected issue.If you are fix that this would be start.Thanks..!

Delayed Job Delayed::PerformableMethod undefined method "delayed_task" for #<Class:0x0000000b4dcd20>

I am using delayed jobs and I think I have a problem with serialization. We are using ruby 2.2.2.
In my model I have a callback that fires on save and creates a delayed job for my model. like this:
after_create :update_queue
def update_queue
self.class.delay(run_at: 1.minutes.from_now, delayed_reference_id: self.id, delayed_reference_type: "Payment", queue: "qbo_payments").delayed_task(self.id)
end
def self.delayed_task
# Do some stuff
end
However I am getting the error:
undefined method `delayed_task' for #<Class:0x0000000f93f9b8>
~/shared/bundle/ruby/2.2.0/gems/activerecord-4.2.0/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
~/shared/bundle/ruby/2.2.0/gems/attr_encrypted-3.0.3/lib/attr_encrypted.rb:295:in `method_missing'
~/shared/bundle/ruby/2.2.0/gems/attr_encrypted-3.0.3/lib/attr_encrypted/adapters/active_record.rb:129:in `method_missing_with_attr_encrypted'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/performable_method.rb:26:in `perform'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:84:in `block in invoke_job'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:81:in `invoke_job'
~/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb:127:in `block in invoke_job'
~/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:363:in `perform_action_with_newrelic_trace'
~/shared/bundle/ruby/2.2.0/gems/newrelic_rpm-3.16.0.318/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb:126:in `invoke_job'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block (2 levels) in run'
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/timeout.rb:89:in `block in timeout'
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/timeout.rb:99:in `call'
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/timeout.rb:99:in `timeout'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:230:in `block in run'
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:229:in `run'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:306:in `block in reserve_and_run_one_job'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:306:in `reserve_and_run_one_job'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:213:in `block in work_off'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:212:in `times'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:212:in `work_off'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:175:in `block (4 levels) in start'
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:174:in `block (3 levels) in start'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:173:in `block (2 levels) in start'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:172:in `loop'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:172:in `block in start'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/plugins/clear_locks.rb:7:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/plugins/clear_locks.rb:7:in `block (2 levels) in <class:ClearLocks>'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:79:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:79:in `block (2 levels) in add'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:61:in `block in initialize'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:79:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:79:in `block in add'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `call'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:66:in `execute'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/lifecycle.rb:40:in `run_callbacks'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/worker.rb:171:in `start'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/command.rb:132:in `run'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/command.rb:120:in `block in run_process'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/application.rb:265:in `call'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/application.rb:265:in `block in start_proc'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/daemonize.rb:84:in `call'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/daemonize.rb:84:in `call_as_daemon'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/application.rb:269:in `start_proc'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/application.rb:295:in `start'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/controller.rb:69:in `run'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons.rb:193:in `block in run_proc'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/cmdline.rb:88:in `call'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons/cmdline.rb:88:in `catch_exceptions'
~/shared/bundle/ruby/2.2.0/gems/daemons-1.2.3/lib/daemons.rb:192:in `run_proc'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/command.rb:118:in `run_process'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/command.rb:99:in `block in daemonize'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/command.rb:97:in `times'
~/shared/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/command.rb:97:in `daemonize'
script/delayed_job:5:in `<main>'"
What I have tried
After a bit of google research I found 2 fixes. The first and more widely accepted fix is to add:
require 'yaml'
YAML::ENGINE.yamler = 'syck'
#https://github.com/collectiveidea/delayed_job/issues/199
However, syck is no longer supported for ruby 2.2.2
The second solution, which only seemed to exacerbate the problem, was to add "bundle exec" to my delayed_job startup script like this:
run "cd #{current_path}; bundle exec script/delayed_job start #{rails_env}"
This will work !
after_create :update_queue
def update_queue
self.delay(run_at: 1.minutes.from_now, delayed_reference_id: self.id, delayed_reference_type: "Payment", queue: "qbo_payments").delayed_task()
end
def delayed_task
self.class.delayed_task(self.id)
end
def self.delayed_task
# Do some stuff
end

undefined method `perform' for nil:NilClass

I'm trying to update font-awesome to last release using .scss.
When i try to compile using campass it throws this error:
>>> Change detected at 17:51:13 to: ui/_font_awesome.scss
NoMethodError on line ["323"] of /usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb: undefined method `perform' for nil:NilClass
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:321:in `map'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:321:in `run_interp_no_strip'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:331:in `run_interp'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:295:in `visit_directive'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:37:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:20:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:146:in `block in visit_import'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:146:in `map'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:146:in `visit_import'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:37:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:20:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:146:in `block in visit_import'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:146:in `map'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:146:in `visit_import'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:37:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:20:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:53:in `block in visit_children'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:53:in `map'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:53:in `visit_children'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:29:in `block in visit_children'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:41:in `with_environment'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:28:in `visit_children'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:37:in `block in visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:49:in `visit_root'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/base.rb:37:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:20:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/visitors/perform.rb:7:in `visit'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/tree/root_node.rb:20:in `render'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/engine.rb:305:in `_render'
/usr/local/lib/ruby/gems/1.9.1/gems/sass-3.2.0.alpha.64/lib/sass/engine.rb:252:in `render'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:140:in `block (2 levels) in compile'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:126:in `timed'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:139:in `block in compile'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/logger.rb:45:in `red'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:138:in `compile'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:118:in `compile_if_required'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:103:in `block (2 levels) in run'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:101:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:101:in `block in run'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:126:in `timed'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/compiler.rb:100:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/commands/watch_project.rb:147:in `recompile'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/path.rb:73:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/path.rb:73:in `run_callback'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/path.rb:55:in `callback_action'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/path.rb:35:in `update'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/state/directory.rb:39:in `block in modified'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/state/directory.rb:37:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/state/directory.rb:37:in `modified'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/state/directory.rb:18:in `refresh'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/backends/inotify.rb:12:in `block in add_handler'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/notifier.rb:200:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/notifier.rb:200:in `block in watch'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/watcher.rb:41:in `[]'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/watcher.rb:41:in `callback!'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/event.rb:128:in `callback!'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/notifier.rb:233:in `block in process'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/notifier.rb:233:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/notifier.rb:233:in `process'
/usr/local/lib/ruby/gems/1.9.1/gems/rb-inotify-0.8.8/lib/rb-inotify/notifier.rb:216:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/backends/inotify.rb:20:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm/monitor.rb:26:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/fssm-0.2.8.1/lib/fssm.rb:70:in `monitor'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/commands/watch_project.rb:87:in `perform'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/commands/base.rb:18:in `execute'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/commands/project_base.rb:19:in `execute'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/exec/sub_command_ui.rb:43:in `perform!'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/lib/compass/exec/sub_command_ui.rb:15:in `run!'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/bin/compass:29:in `block in <top (required)>'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/bin/compass:43:in `call'
/usr/local/lib/ruby/gems/1.9.1/gems/compass-0.12.1/bin/compass:43:in `<top (required)>'
/usr/local/bin/compass:19:in `load'
/usr/local/bin/compass:19:in `<main>'
I've spent all afternoon searching to find someone with same problem but didn't find anything...
Any guess about what could be the problem?
Ty!
Check any directives you have added to your sass files recently (#include, #import, #extend) and verify that there are no typos.
You may get this error when sass tries to execute a directive it does not recognize.
eg. say you typed #includ when you meant #include

Error when monkey patching ActionDispatch::Routing in Rails 3.1 with autoload_path

Similar to the Gem tasteful-routes (https://github.com/icelab/tasteful-routes/blob/master/lib/tasteful_routes/mapper.rb) I wanted to be able to add some methods as routing helpers.
I have a file lib/action_dispatch/routing/mapper.rb which contains
puts "In mapper.rb"
module ActionDispatch::Routing
class Mapper
module NorthStar
def star(controller)
puts "Testing!"
end
end
include NorthStar
end
end
To autoload this I placed the following in config/application.rb
config.autoload_paths += Dir["#{config.root}/lib/**/"]
When I try to run Rails, I run into an issue.
20 ~/Dropbox/Development/RailsPlayground/site$ rails s
=> Booting WEBrick
=> Rails 3.1.0.rc3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
In mapper.rb
Exiting
/Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.1.0.rc3/lib/sprockets/railtie.rb:40:in `block (2 levels) in <class:Railtie>': undefined method `mount' for #<ActionDispatch::Routing::Mapper:0x00000100933b30> (NoMethodError)
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.1.0.rc3/lib/action_dispatch/routing/route_set.rb:257:in `instance_exec'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.1.0.rc3/lib/action_dispatch/routing/route_set.rb:257:in `eval_block'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.1.0.rc3/lib/action_dispatch/routing/route_set.rb:276:in `block in clear!'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.1.0.rc3/lib/action_dispatch/routing/route_set.rb:276:in `each'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/actionpack-3.1.0.rc3/lib/action_dispatch/routing/route_set.rb:276:in `clear!'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/routes_reloader.rb:24:in `block in clear!'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/routes_reloader.rb:22:in `each'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/routes_reloader.rb:22:in `clear!'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/routes_reloader.rb:12:in `reload!'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/routes_reloader.rb:7:in `block in initialize'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.1.0.rc3/lib/active_support/file_update_checker.rb:32:in `call'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.1.0.rc3/lib/active_support/file_update_checker.rb:32:in `execute_if_updated'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/finisher.rb:63:in `block (2 levels) in <module:Finisher>'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/finisher.rb:64:in `call'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application/finisher.rb:64:in `block in <module:Finisher>'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/initializable.rb:25:in `instance_exec'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/initializable.rb:25:in `run'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/initializable.rb:50:in `block in run_initializers'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/initializable.rb:49:in `each'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/initializable.rb:49:in `run_initializers'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/application.rb:96:in `initialize!'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/basicxman/Dropbox/Development/RailsPlayground/site/config/environment.rb:5:in `<top (required)>'
from /Users/basicxman/Dropbox/Development/RailsPlayground/site/config.ru:4:in `require'
from /Users/basicxman/Dropbox/Development/RailsPlayground/site/config.ru:4:in `block in <main>'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/rack-1.3.0/lib/rack/builder.rb:51:in `instance_eval'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/rack-1.3.0/lib/rack/builder.rb:51:in `initialize'
from /Users/basicxman/Dropbox/Development/RailsPlayground/site/config.ru:1:in `new'
from /Users/basicxman/Dropbox/Development/RailsPlayground/site/config.ru:1:in `<main>'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/rack-1.3.0/lib/rack/builder.rb:40:in `eval'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/rack-1.3.0/lib/rack/builder.rb:40:in `parse_file'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/rack-1.3.0/lib/rack/server.rb:200:in `app'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/commands/server.rb:46:in `app'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/rack-1.3.0/lib/rack/server.rb:301:in `wrapped_app'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/rack-1.3.0/lib/rack/server.rb:252:in `start'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/commands/server.rb:70:in `start'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/commands.rb:54:in `block in <top (required)>'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/commands.rb:49:in `tap'
from /Users/basicxman/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc3/lib/rails/commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Resources