-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Pressing return in PHPStorm terminal (macOS) doesn't work #66
Comments
Thanks for reporting @davidwdan. What kind of system are you using, what kind of error are you seeing and how can this be reproduced? I don't have a Mac to test against, but it's my understanding that only legacy "Mac OS Classic" used CR instead of LF? Can anybody else confirm these issues? |
There isn't an error, it just doesn't recognize the I did a little more testing and this is only an issue if I'm using the terminal with PHPStorm. |
Thanks for confirming back! This is indeed an interesting find if PHPStorm's terminal only uses CR instead of LF or CRLF here. Can you try running the examples and see how they behave? Also, does this affect only the latest v1.2.0 version or can you also test this against a later version? What is the value of Now that #65 is in (for upcoming v2.0.0 though), I wonder what should be emitted for the |
The demos work in v1.0.0 and v1.1.0 but not v1.2.0 or dev-master.
|
Ping @davidwdan, what is the status here? Can you give some instructions on how to reproduce this and/or if you've found a way to avoid / work around this? I don't have a Mac to test against, can anybody else confirm that all examples are apparently broken on Mac? |
I haven't had a chance to look into this any more. I should have some time in the next couple of days. |
Closing this due to a lack of feedback, as we can not reproduce this. Please come back with more details if this problem persists and we can reopen this 👍 |
This is still an issue, I just haven't had time to look into it anymore. |
I'm experiencing this on MacOS with the QuickStart example. If I hit Ctrl-J it reads my input, but Enter or Ctrl-M do not submit. This applies regardless of the terminal (I used stock MacOS Terminal as well as iTerm), and regardless of any .bash_profile settings (I ran bash with
As @davidwdan found, changing Readline.php to say |
@mkopinsky Thank you for confirming this issue! |
Can you check if your PHP installation includes Lines 282 to 288 in 8777add
|
Yes, Commenting out those lines fixed the issue - Enter, Ctrl-J, and Ctrl-M are all interpreted as ending the line. |
macOS uses
\r
instead of\n
forreturn
.https://github.com/clue/php-stdio-react/blob/master/src/Readline.php#L47
The text was updated successfully, but these errors were encountered: