This queue is for tickets about the IO-Prompt CPAN distribution.

Report information
The Basics
Id:
19934
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
cpan [...] fabiani.net
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
v0.99.4
Fixed in:
(no value)



Subject: IO::Prompt and Windows - bad tests/incompatibilities
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1150455806-16967-40"
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 1090
In perldoc IO::Prompt:
Show quoted text
>INCOMPATIBILITIES > None reported.
So I installed it under WindowsXP (see attached log; I used MS Visual C++ 6) Next, I gave it a try with: [code] #! /usr/bin/perl use strict; use warnings; use IO::Prompt; use Carp; while( prompt "next: " ) { ### line 7 print "You said '$_'\n"; } [/code] It can't open /dev/tty (well, that doesn't exist under windows) and complains about: "Cannot write to terminal: No such file or directory at io_prompt.pl line 7". But nmake test succeeded. In perldoc:
Show quoted text
> "Cannot write to terminal: %s" > "Cannot read from terminal: %s" > "prompt()" attempted to access the terminal but couldn't. This
may
Show quoted text
> mean your environment has no "/dev/tty" available, in which
case
Show quoted text
> there isn't much you can do with this module. Sorry.
Proposed Bugfixes: 1. write to perldoc -> incompatibilities that an operating system with /dev/tty is required 2. add some tests (load and 2 times pod seems to be not enough, one which tries to open /dev/tty would really be helpful). Best regards, Martin Fabiani (aka Strat)
Subject: IO-Prompt.log.txt
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1150455806-16967-39"
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Length: 0
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 0
Content-Type: text/plain; charset="utf-8"; name="IO-Prompt.log.txt"
Content-Disposition: inline; filename="IO-Prompt.log.txt"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 4382
============================================================== Log of installation ============================================================== E:\tmp>dir Datenträger in Laufwerk E: ist Data Volumeseriennummer: 3BD6-9744 Verzeichnis von E:\tmp 16.06.2006 12:40 <DIR> . 16.06.2006 12:40 <DIR> .. 13.05.2006 13:39 18.589 bg.xls 01.05.2006 11:21 <DIR> forum.session 16.06.2006 12:40 14.164 IO-Prompt-v0.99.4.tar.gz 16.06.2006 12:37 139 io_prompt.pl 3 Datei(en) 32.892 Bytes 3 Verzeichnis(se), 57.058.103.296 Bytes frei E:\tmp>tar xvzf IO-Prompt-v0.99.4.tar.gz IO-Prompt-v0.99.4/ IO-Prompt-v0.99.4/Build.PL IO-Prompt-v0.99.4/Changes IO-Prompt-v0.99.4/examples/ IO-Prompt-v0.99.4/examples/clear.pl IO-Prompt-v0.99.4/examples/cmdline.pl IO-Prompt-v0.99.4/examples/data.pl IO-Prompt-v0.99.4/examples/default.pl IO-Prompt-v0.99.4/examples/hand.pl IO-Prompt-v0.99.4/examples/interactive.pl IO-Prompt-v0.99.4/examples/lingua.pl IO-Prompt-v0.99.4/examples/menu.pl IO-Prompt-v0.99.4/examples/nonl.pl IO-Prompt-v0.99.4/examples/num.pl IO-Prompt-v0.99.4/examples/passwd.pl IO-Prompt-v0.99.4/examples/record.pl IO-Prompt-v0.99.4/examples/require.pl IO-Prompt-v0.99.4/examples/to.pl IO-Prompt-v0.99.4/examples/tty.pl IO-Prompt-v0.99.4/examples/underscore.pl IO-Prompt-v0.99.4/examples/while_until.pl IO-Prompt-v0.99.4/examples/yesno.pl IO-Prompt-v0.99.4/lib/ IO-Prompt-v0.99.4/lib/IO/ IO-Prompt-v0.99.4/lib/IO/Prompt.pm IO-Prompt-v0.99.4/Makefile.PL IO-Prompt-v0.99.4/MANIFEST IO-Prompt-v0.99.4/META.yml IO-Prompt-v0.99.4/README IO-Prompt-v0.99.4/t/ IO-Prompt-v0.99.4/t/00.load.t IO-Prompt-v0.99.4/t/pod-coverage.t IO-Prompt-v0.99.4/t/pod.t E:\tmp>cd IO-Prompt-v0.99.4 E:\tmp\IO-Prompt-v0.99.4>dir Datenträger in Laufwerk E: ist Data Volumeseriennummer: 3BD6-9744 Verzeichnis von E:\tmp\IO-Prompt-v0.99.4 17.02.2006 06:59 <DIR> . 17.02.2006 06:59 <DIR> .. 02.08.2005 01:56 532 Build.PL 17.02.2006 06:59 785 Changes 17.02.2006 06:59 <DIR> examples 17.02.2006 06:59 <DIR> lib 02.08.2005 01:56 610 Makefile.PL 25.05.2005 04:31 480 MANIFEST 17.02.2006 06:59 527 META.yml 17.02.2006 06:59 1.083 README 17.02.2006 06:59 <DIR> t 6 Datei(en) 4.017 Bytes 5 Verzeichnis(se), 57.058.041.856 Bytes frei E:\tmp\IO-Prompt-v0.99.4>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for IO::Prompt E:\tmp\IO-Prompt-v0.99.4>nmake Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cp lib/IO/Prompt.pm blib\lib\IO\Prompt.pm E:\tmp\IO-Prompt-v0.99.4>nmake test Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. D:\wamp\perl817\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harnes s(0, 'blib\lib', 'blib\arch')" t/*.t t/00.load.........ok 1/1# Testing IO::Prompt v0.99.4 t/00.load.........ok t/pod-coverage....Too late to run CHECK block at E:\tmp\IO-Prompt-v0.99.4\blib\l ib/IO/Prompt.pm line 315. t/pod-coverage....ok t/pod.............ok All tests successful. Files=3, Tests=3, 1 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) E:\tmp\IO-Prompt-v0.99.4>nmake install Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. Installing D:\wamp\perl817\site\lib\IO\Prompt.pm Appending installation info to D:\wamp\perl817\lib/perllocal.pod E:\tmp\IO-Prompt-v0.99.4> ============================================================== Testscript io_prompt.pl ============================================================== #! /usr/bin/perl use strict; use warnings; use IO::Prompt; use Carp; while( prompt "next: " ) { print "You said '$_'\n"; } ============================================================== Errormessage ============================================================== E:\tmp>perl io_prompt.pl Cannot write to terminal: No such file or directory at io_prompt.pl line 7


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.