grosser / rspec-instafail

Show failing specs instantly
MIT License
283 stars 34 forks source link

Getting NameError: uninitialized constant RSpec::Core::Formatters::ConsoleCodes after upgrade to 1.0.0 #27

Closed wojtha closed 8 years ago

wojtha commented 8 years ago

Getting NameError: uninitialized constant RSpec::Core::Formatters::ConsoleCodes after upgrade to 1.0.0. Downgrading back to 0.5.0 resolves the issue.

/ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/notifications.rb:199:in `fully_formatted': uninitialized constant RSpec::Core::Formatters::ConsoleCodes (NameError)
    from /ruby/gems/2.3.0/gems/rspec-instafail-1.0.0/lib/rspec/instafail/rspec_3.rb:14:in `example_failed'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:189:in `block in notify'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:188:in `each'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:188:in `notify'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:140:in `example_failed'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:452:in `finish'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example.rb:410:in `fail_with_exception'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:550:in `block in run'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:591:in `each'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:591:in `for_filtered_examp
    les'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:550:in `rescue in run'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/example_group.rb:556:in `run'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `block (3 levels) in run_s
    pecs'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `map'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:119:in `block (2 levels) in run_s
    pecs'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1680:in `with_suite_hooks'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:118:in `block in run_specs'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/reporter.rb:77:in `report'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:117:in `run_specs'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:93:in `run'
    from /ruby/gems/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in `run'
    from /ruby/gems/2.3.0/gems/zeus-0.15.4/lib/zeus/rails.rb:216:in `test'
    from /ruby/gems/2.3.0/gems/zeus-0.15.4/lib/zeus.rb:148:in `block in command'
    from /ruby/gems/2.3.0/gems/zeus-0.15.4/lib/zeus.rb:135:in `fork'
    from /ruby/gems/2.3.0/gems/zeus-0.15.4/lib/zeus.rb:135:in `command'
    from /ruby/gems/2.3.0/gems/zeus-0.15.4/lib/zeus.rb:50:in `go'
    from -e:1:in `<main>'
grosser commented 8 years ago

try adding --progress to your .rspec and see if that fixes it :(

wojtha commented 8 years ago

Hmm, nope, getting invalid option: --progress (defined in ./.rspec) when set.

I am at RSpec 3.4.4.

my .rspec file look like this:

--color
--format RSpec::Instafail
--progress
wojtha commented 8 years ago

Oh. You probably mean this --format progress

With progress formatter in .rspec all operates normally.

--color
--format progress

I've also tried running just rspec outside the zeus preloader and it fails as well with --format RSpec::Instafail.

grosser commented 8 years ago

so with format progress zeus and non-zeus work, right ?

does adding a require for the missing module solve it too ?

On Thu, May 26, 2016 at 7:16 AM, Vojtěch Kusý notifications@github.com wrote:

Oh. You probably mean this --format progress

With progress formatter in .rspec all operates normally.

--color --format progress

I've also tried running just rspec outside the zeus preloader and it fails as well.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/grosser/rspec-instafail/issues/27#issuecomment-221883611

wojtha commented 8 years ago

Cannot reproduce this anymore but have another issue

ghost commented 8 years ago

thanks a lot for giving solution.

anicholson commented 7 years ago

I just hit this error (same message, same place) today.