-
Notifications
You must be signed in to change notification settings - Fork 1
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]: The system cannot find the path specified #651
Comments
I have fixed that but we are going to test this to see if there are any side effects that we don't know about. So it'll be in a release soon! :) |
I have got the same problem, just with a danish character. Just letting you know if your are looking into that area :) My path is "C:\Users\AndersMøllerAndersen" |
Same problem with Croatian character and space, "C:\Users\Domagoj Škender", can't access PHP, Herd, Composer or Laravel commands via Powershell |
Changed the path with %USERPROFILE% variable in the bat files, now laravel, php and composer commands work via CLI, but herd commands still don't: "The system cannot find the path specified." |
Platform
Windows
Operating system version
Windows 11 Home Single Language
System architecture
Intel (x86)
Herd Version
1.0.1
PHP Version
8.3
Bug description
The next bug is simple to fix, I do it my self.
When I install Herd on my Windows machine, everytime I try to run the command
herd
, orphp
, etc, I always recieve the message:The system cannot find the path specified
. I'm not even an expert on windows but I found that the problem is releated with the name of my current user (folder) containt an accent mark and a space.Let say, e.g.
C:\User\José Perengano
, so the problem was in thephp.bat
file (and all the other.bat
files that contain the full path), I just replace the base part with the variable%USERPROFILE%
and the path looks like this"%USERPROFILE%\.config\herd\bin\php83\php.exe" %*
.I tried to solve the problem just scaping the space, but that doesn't work so I choose to use the system variable, and just to be clear, this was a fresh installation, I do not touch anything before.
Steps to reproduce
Create a local user on a Windows Machine, and the user folder should have to contain a space, and an accent mark
Relevant log output
The text was updated successfully, but these errors were encountered: