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

posix_isatty() is not available in Windows Environments #1544

Open
joshkoenig opened this issue Jan 20, 2017 · 8 comments
Open

posix_isatty() is not available in Windows Environments #1544

joshkoenig opened this issue Jan 20, 2017 · 8 comments

Comments

@joshkoenig
Copy link
Member

via @dan-ddb who is using Windows12 Server:

I am receiving an error when trying to run a drush command (via terminus):

PHP Fatal error: Uncaught Error: Call to undefined function Pantheon\Terminus\Helpers\posix_isatty() in E:\producemarketguide.com\terminus\vendor\pantheon-systems\terminus\src\Helpers\LocalMachineHelper.php:51

It appears these functions are not available on windows:
http://ca3.php.net/manual/en/intro.posix.php

Is this really an effective solution? It seems to cause issues for windows users.

@greg-1-anderson
Copy link
Member

Addressed in #1545

@dan-ddb
Copy link

dan-ddb commented Jun 7, 2017

There still appears to be an issue with the latest Terminus I installed on windows via composer. In Terminus 1.3.0 I cannot perform a drush call with terminus. I receive a message like the following:

[notice] Command: mysite.dev -- drush cr [Exit: 0]

Running the same command on Terminus 1.0.0-alpha installed on another machine results in a proper 'drush cr' call - drush clears the cache and returns a message.

@greg-1-anderson
Copy link
Member

Try again with dev-master; I believe this has been fixed. Not sure if the fix is in the latest release (1.4.0).

@abrahaa4
Copy link

I was trying to run the terminus site:mass-update command and I get the error "call to undefined function posix_isatty()." I am using the latest terminus version 1.5.1-dev. Can someone help me resolve this. Thanks
pastedimage

@greg-1-anderson
Copy link
Member

The error above appears to be an unguarded posix_isatty (bug) in the Terminus Mass Update plugin.

@greg-1-anderson
Copy link
Member

I created an issue in the appropriate plugin project.

@abrahaa4
Copy link

Thanks Greg

@greg-1-anderson
Copy link
Member

The issue in the Terminus Mass Update plugin is pantheon-systems/terminus-mass-update#7. It is still open.

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

No branches or pull requests

4 participants