-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 (private method `puts' called for #<Cucumber::Formatter::Interceptor::Pipe:0x00007fc8a5bc0c08>) #1445
Comments
Thanks for the report. I'm trying to investigate on what may cause this issue. Do you have a full stack-trace by any chance or is it the same than when you use the method to reproduce the issue ? |
Hi @vincent-psarga I don't have full stack-trace.
When I run cucumber in CI. The above error ( |
@haonv88 I think what vincent is saying is in your screenshot it says |
Hi @luke-hill There are no other lines for the traceback. I think it's easy to reproduce, you can do the same as the screenshot to see the error. |
In fact, what I'd like to understand is how cucumber ends up trying to call I'm wondering if there's a step definition or something else trying to |
There are many places in my gem files which call |
Yes that's what I was looking for. I think the issue was introduced in this commit and, as I understand it, we were calling I've pushed a commit fixing that in #1449 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective. |
Describe the bug
When using the JUnit Formatter for --format , I got error
NoMethodError (private method
puts' called for #Cucumber::Formatter::Interceptor::Pipe:0x00007fc8a5bc0c08)`To Reproduce
Steps to reproduce the behavior:
NoMethodError (private method
puts' called for #Cucumber::Formatter::Interceptor::Pipe:0x00007fc8a5bc0c08)`Expected behavior
Should not raise error.
Context & Motivation
As I research, in cucumber-4.1.0/lib/cucumber/formatter/interceptor.rb:34
$stderr.puts("test") will invoke method
@pipe.send(method, *args, &blk) will log the error and return nil, then it keeps calling
super
and raise errorScreenshots
Your Environment
The text was updated successfully, but these errors were encountered: