Skip Menu |

This queue is for tickets about the Perldoc-Server CPAN distribution.

Report information
The Basics
Id: 49488
Status: resolved
Priority: 0/
Queue: Perldoc-Server

People
Owner: Nobody in particular
Requestors: CONO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.05
Fixed in: 0.07



Subject: Bug w/ Capture::Tiny in ...::Ajax::PerlSyntax
I have this message: [error] Caught exception in Perldoc::Server::Controller::Ajax::PerlSyntax->index "Can't locate object method "FILENO" via package "FCGI::Stream" at /usr/local/lib/perl5/site_perl/5.10.0/Capture/Tiny.pm line 78." Yeah, I know, it's a bug of FCGI::Stream, they have not FILENO. But I think we can fix it localy. When I commented Capture::Tiny, it works, but produce messages at console: ## Please see file SCALAR I read documentation of Perl::Tidy and found solution: 7c7 < use Capture::Tiny qw/capture/; --- Show quoted text
> #use Capture::Tiny qw/capture/;
10a11 Show quoted text
> use File::Spec;
38c39 < capture { --- Show quoted text
> # capture {
43a45 Show quoted text
> stderr => File::Spec->devnull(),
45c47 < }; --- Show quoted text
> # };
If u need an output of Perl::Tidy, u can open $filehandle to \$buffer and put it into stderr => $filehandle.