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

Cannot Install Pest on some shells #272

Closed
rajabilal555 opened this issue Aug 16, 2023 · 4 comments
Closed

Cannot Install Pest on some shells #272

rajabilal555 opened this issue Aug 16, 2023 · 4 comments
Labels

Comments

@rajabilal555
Copy link
Contributor

Installer Version

5.0.2

Description

When selecting no Starter Kit on the initial prompt, pest fails to installs on Windows Powershell.
Investigating this led me to the composer docs on the caret symbol where I discovered that it has to be escaped on Windows powershell.

Screenshot 2023-08-15 223235
https://getcomposer.org/doc/articles/versions.md#caret-version

Error:

image

Steps To Reproduce

Step 1: On "Would you like to install a starter kit?" Select none for No starter kit.

Step 2: On "Which testing framework do you prefer?" Enter 1 for PEST

image

@crynobone crynobone added the bug label Aug 16, 2023
@crynobone
Copy link
Member

Can you test using the following:

composer require --dev "pestphp/pest:^2.0" "pestphp/pest-plugin-laravel:^2.0"

@rajabilal555
Copy link
Contributor Author

Can you test using the following:

composer require --dev "pestphp/pest:^2.0" "pestphp/pest-plugin-laravel:^2.0"

@crynobone That also does not work

image

@rajabilal555
Copy link
Contributor Author

Since the other starter kit options do install pest correctly, I checked the breeze installer and they are using the Process constructor which handles escape characters instead of the fromShellCommandline that is used by this repo.

@driesvints
Copy link
Member

We have a PR up so let's continue the discussion there. Thanks!

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

No branches or pull requests

3 participants