Skip to content
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

Hang using get or prompt in REPL #5831

Open
p6rt opened this issue Nov 27, 2016 · 7 comments
Open

Hang using get or prompt in REPL #5831

p6rt opened this issue Nov 27, 2016 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Nov 27, 2016

Migrated from rt.perl.org#130192 (status was 'open')

Searchable as RT130192$

@p6rt
Copy link
Author

p6rt commented Aug 2, 2016

From m.nooning@verizon.net

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.

  > my $color = prompt "Name a color​: ";
  Name a color​:

I tried the above in more than one prompt. Same results.

@p6rt
Copy link
Author

p6rt commented Aug 17, 2016

From @zoffixznet

Confirmed with 2016.04.

Of note​: this only happens in REPL

@p6rt
Copy link
Author

p6rt commented Aug 17, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 27, 2016

From rnbrgn@yahoo.com

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 

@p6rt
Copy link
Author

p6rt commented Dec 16, 2016

From @zoffixznet

On Sun, 27 Nov 2016 13​:30​:23 -0800, rnbrgn@​yahoo.com wrote​:

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

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>

@p6rt
Copy link
Author

p6rt commented Dec 16, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Feb 2, 2017

From @zoffixznet

Seems there's a related if not a dupe ticket for this​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant