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

[Bug]: herd, php and composer commands are not recognized #715

Closed
AnaelBonnafous opened this issue May 7, 2024 · 4 comments
Closed

[Bug]: herd, php and composer commands are not recognized #715

AnaelBonnafous opened this issue May 7, 2024 · 4 comments
Labels
needs more information Further information is requested windows

Comments

@AnaelBonnafous
Copy link

Platform

Windows

Operating system version

Windows 11 (23H2 22631.3447)

System architecture

Windows

Herd Version

1.1.0

PHP Version

No response

Bug description

herd, php and composer commands are not recognized when used globally : 'Path not found', but .phar files are here.

I have C:\Users\<user>\.config\herd\bin added to my user paths as you can see :

image

My Windows username is 'Anaël', so maybe it has to be related with special char and wrong path resolution ?

Steps to reproduce

Fresh install of Herd 1.1.0 on Windows 11 with an user that have special char in name.

Relevant log output

No response

@issuelabeler issuelabeler bot added the windows label May 7, 2024
@mpociot
Copy link
Member

mpociot commented May 8, 2024

Which shell are you using there?
herd, php and composer are all .bat files.
Does it work by running php.bat -v?

@mpociot mpociot added the needs more information Further information is requested label May 10, 2024
@AnaelBonnafous
Copy link
Author

I'm using Cmder as my main terminal.
Okay I see, all .bat files are here too.
No, I got the same output, but it work when running php.exe -v

@mpociot
Copy link
Member

mpociot commented May 13, 2024

This is a duplicate of #651

Before this is patched, you can manually modify the .bat files and replace your username with %USERPROFILE%

@mpociot mpociot closed this as completed May 13, 2024
@AnaelBonnafous
Copy link
Author

Thanks you, this fix works !
I just have to do it for the php.bat file each time I change the active php version but that's okay
Waiting for the patch and other new features, good continuation to you and your team 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information Further information is requested windows
Projects
None yet
Development

No branches or pull requests

2 participants