Skip Menu |
Report information
Id: 130192
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: m.nooning [at] verizon.net
rnbrgn [at] yahoo.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



From: Malcolm <m.nooning [...] verizon.net>
To: rakudobug [...] perl.org
Subject: Perl 6 prompt hangs on Windows 7
Date: Tue, 02 Aug 2016 16:30:31 -0400
Download (untitled) / with headers
text/plain 411b
I downloaded my first (the latest I assume) Rakudo today on my windows 7 64 bit PC,
rakudo-star-2016.07-x86_64 (JIT)

I entered the code below and got the indicated response.  I cannot type anything in, and none of the Ctrl-C, Ctrl-D, Ctrl-Z work.  I have to kill the window entirely.

Show quoted text
> my $color = prompt "Name a color: ";
Name a color:
I tried the above in more than one prompt.  Same results.

Subject: [BUG][REPL] Perl 6 prompt hangs on Windows 7
Confirmed with 2016.04. Of note: this only happens in REPL
Subject: using get and prompt in REPL
From: Rene Bourgoin <rnbrgn [...] yahoo.com>
To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
Date: Sun, 27 Nov 2016 21:30:01 +0000 (UTC)
Download (untitled)
multipart/alternative 2.7k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 443b
I've downloaded Rakudo Star 2016.11  for Windows.

I have an issue while using the functions "get" and "prompt" under the REPL environment.

>my $name;
>$name = get;  # once you press enter here,  the REPL hangs and doesn't except keyboard entries.
    The REPL hangs and you have to kill the window,

Prompt does the same thing.

The script will work fine when saved to a file and run via  perl6.bat script.pl6.

using windows 10.





thanks
 
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 3.3k
On Sun, 27 Nov 2016 13:30:23 -0800, rnbrgn@yahoo.com wrote: Show quoted text
> I've downloaded Rakudo Star 2016.11  for Windows. > I have an issue while using the functions "get" and "prompt" under the > REPL environment.
> > my $name;>$name = get;  # once you press enter here,  the REPL hangs > > and doesn't except keyboard entries.    The REPL hangs and you have > > to kill the window,
> Prompt does the same thing. > The script will work fine when saved to a file and run via  perl6.bat > script.pl6. > using windows 10.
Show quoted text
> thanks
This appears to be something in the way Rakudo Star is built. If I install Rakudo Star 2016.11, I get the hang, but if build a 2016.11 Rakudo, then I get no hang. (tried it also with a 2016.04 Star and building an earlier commit too; same result: Star hangs, built from source doesn't). I'm on Windows 10, using its standard "Command Prompt" to build things: C:\Users\zoffi>gmake -v GNU Make 4.1 Built for x86_64-w64-mingw32 Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. C:\Users\zoffi>gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=C:/Strawberry/c/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.2/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../../../src/gcc-4.9.2/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-sjlj-exceptions --disable-isl-version-check --disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/opt/build/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/opt/build/prerequisites/x86_64-w64-mingw32-static --with-mpc=/opt/build/prerequisites/x86_64-w64-mingw32-static --with-isl=/opt/build/prerequisites/x86_64-w64-mingw32-static --with-cloog=/opt/build/prerequisites/x86_64-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='x86_64-posix-sjlj, built by strawberryperl.com project' CFLAGS='-O2 -pipe -I/opt/build/x86_64-492-posix-sjlj-rt_v402/mingw64/opt/include -I/opt/build/prerequisites/x86_64-zlib-static/include -I/opt/build/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/opt/build/x86_64-492-posix-sjlj-rt_v402/mingw64/opt/include -I/opt/build/prerequisites/x86_64-zlib-static/include -I/opt/build/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/opt/build/x86_64-492-posix-sjlj-rt_v402/mingw64/opt/lib -L/opt/build/prerequisites/x86_64-zlib-static/lib -L/opt/build/prerequisites/x86_64-w64-mingw32-static/lib ' Thread model: posix gcc version 4.9.2 (x86_64-posix-sjlj, built by strawberryperl.com project) C:\Users\zoffi>git --version git version 2.9.0.windows.1 C:\Users\zoffi>
Download (untitled) / with headers
text/plain 104b
Seems there's a related if not a dupe ticket for this: https://rt.perl.org/Ticket/Display.html?id=128632


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org