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

mkmf adds Logging module v 1.0.12 #174

Closed
arielvalentin opened this issue May 21, 2016 · 3 comments
Closed

mkmf adds Logging module v 1.0.12 #174

arielvalentin opened this issue May 21, 2016 · 3 comments
Labels

Comments

@arielvalentin
Copy link

I tried upgrading to the latest version of screenshot but run into this error when running cucumber tests:
undefined method 'html_safe' for #<IO:<STDOUT>> (ActionView::Template::Error)

The error comes from this block of code:

  6      - if defined?(message) && message.present?
  7           .short
  8             = sanitize_and_auto_link(message.html_safe, truncate: true, length: 50)

Which, AFAICT comes from MakeMakefile::Logging.message http://www.rubydoc.info/stdlib/mkmf/2.0.0/MakeMakefile/Logging

Does the library require use of mkmf in cucumber?

@mattheworiordan
Copy link
Owner

@arielvalentin sorry to hear that. mkmf was introduced when imgcat support was added, see 29d6f1b. However, looking at that commit now, it's not obvious why mkmf is needed at all. Have you tried just removing the require to see what happens? I am going to ask the author of that commit why he included mkmf, but as far as I can tell, it is not needed...

@mattheworiordan
Copy link
Owner

FYI, I believe 012208c fixes this issue now. Pleas reopen if that is not the case.

@arielvalentin
Copy link
Author

This fix works great!

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

No branches or pull requests

2 participants