sergot / io-capture-simple Goto Github PK
View Code? Open in Web Editor NEWIO can be captured.
IO can be captured.
Running zef install IO::Capture::Simple
fails due not finding IO::Capture::Simple
.
% zef install IO::Capture::Simple
===> Searching for: IO::Capture::Simple
===> Testing: IO::Capture::Simple
[IO::Capture::Simple] ===SORRY!=== Error while compiling /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stderr.t
[IO::Capture::Simple] Could not find IO::Capture::Simple in:
[IO::Capture::Simple] file#/home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab
[IO::Capture::Simple] inst#/home/matias/.raku
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/site
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/vendor
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/core
[IO::Capture::Simple] ap#
[IO::Capture::Simple] nqp#
[IO::Capture::Simple] perl5#
[IO::Capture::Simple] at /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stderr.t:1
[IO::Capture::Simple] ===SORRY!=== Error while compiling /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stdout.t
[IO::Capture::Simple] Could not find IO::Capture::Simple in:
[IO::Capture::Simple] file#/home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab
[IO::Capture::Simple] inst#/home/matias/.raku
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/site
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/vendor
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/core
[IO::Capture::Simple] ap#
[IO::Capture::Simple] nqp#
[IO::Capture::Simple] perl5#
[IO::Capture::Simple] at /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/stdout.t:1
[IO::Capture::Simple] ===SORRY!=== Error while compiling /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/test-io-capture/01-basic.t
[IO::Capture::Simple] Could not find Test::IO::Capture in:
[IO::Capture::Simple] file#/home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab
[IO::Capture::Simple] inst#/home/matias/.raku
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/site
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/vendor
[IO::Capture::Simple] inst#/home/matias/.rakudobrew/versions/moar-2020.01/install/share/perl6/core
[IO::Capture::Simple] ap#
[IO::Capture::Simple] nqp#
[IO::Capture::Simple] perl5#
[IO::Capture::Simple] at /home/matias/.zef/store/IO-Capture-Simple.git/cdbe43ed040adfd6a2abbc1a1e5b9f022ec210ab/t/test-io-capture/01-basic.t:1
===> Testing [FAIL]: IO::Capture::Simple
Aborting due to test failure: IO::Capture::Simple (use --force-test to override)
This only happens installing from a remote source. It installs fine locally:
% git clone https://github.com/sergot/IO-Capture-Simple.git
Cloning into 'IO-Capture-Simple'...
remote: Enumerating objects: 167, done.
remote: Total 167 (delta 0), reused 0 (delta 0), pack-reused 167
Receiving objects: 100% (167/167), 17.70 KiB | 341.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
[/tmp]
% cd IO-Capture-Simple/
[/tmp/IO-Capture-Simple]
% zef install .
===> Testing: IO::Capture::Simple
===> Testing [OK] for IO::Capture::Simple
===> Installing: IO::Capture::Simple
The module is unable to catch output from programs executed, or output from language bindings (things that use module NativeCall).
Example:
perl6 -e "use IO::Capture::Simple; my \$out = capture { shell \"echo cant catch me\"; };"
Hi,
Hope you don't mind, I have made a fork of the module to https://github.com/JJ/raku-io-capture-simple and intend to maintain it from now on. Quite grateful for your work, whose code keeps on working (although the META6 didn't).
I tried examples/e2.p6
on the latest rakudo and i got the following:
No such method 'flush' for invocant of type '<anon>'
in sub prompt at src/gen/m-CORE.setting:15843
in block <unit> at e2.p6:5
Perl 6 version
$ perl6 --version
This is perl6 version 2014.09-223-g93fe76e built on MoarVM version 2014.09-54-g03ac9a7
==> Testing IO::Capture::Simple
t/stderr.t .................... ok
t/stdout.t .................... ok
===SORRY!=== Error while compiling /root/piko/Discord/.panda-work/1450971440_3/lib/Test/IO/Capture.pm
Malformed parameter
at /root/piko/Discord/.panda-work/1450971440_3/lib/Test/IO/Capture.pm:6
------> nts-stdout-ok (Callable $code, $expected⏏ as Str, $reason = '')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.