Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError: undefined method `green' for "ok":String #1426

Closed
vesaoikonen opened this issue Apr 30, 2019 · 2 comments
Closed

NoMethodError: undefined method `green' for "ok":String #1426

vesaoikonen opened this issue Apr 30, 2019 · 2 comments

Comments

@vesaoikonen
Copy link

@vesaoikonen vesaoikonen commented Apr 30, 2019

Steps to reproduce

nanoc compile
nanoc check ilinks

Expected behavior

Site compiled in 3.87s.
Loading site… done
Running check internal_links… ok

Actual behavior

Loading site… done
Running check internal_links…
Captain! We’ve been hit!

... 13 lines omitted (see crash.log for details)
9. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/cli/error_handler.rb:15:in handle_while' 8. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/cli/error_handler.rb:57:in handle_while'
7. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/cli/error_handler.rb:15:in block in handle_while' 6. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/cli/command_runner.rb:14:in block in call'
5. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/cli/commands/check.rb:31:in run' 4. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/checking/runner.rb:52:in run_specific'
3. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/checking/runner.rb:70:in run_check_classes' 2. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/checking/runner.rb:98:in run_checks'

  1. from /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/checking/runner.rb:98:in each' /var/lib/gems/2.5.0/gems/nanoc-4.11.4/lib/nanoc/checking/runner.rb:109:in block in run_checks'

NoMethodError: undefined method `color' for "ok":String

A detailed crash log has been written to ./crash.log.

Solution

Edit runner.rb, add
require 'colored'
on line 92.

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Apr 30, 2019

Thanks for reporting ! This is a duplicate of #1423, which is fixed but not yet released. A release is coming in the next few minutes…

@ddfreyne
Copy link
Member

@ddfreyne ddfreyne commented Apr 30, 2019

This is now in the Nanoc 4.11.5 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants