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]: The system cannot find the path specified #651

Open
asciito opened this issue Apr 16, 2024 · 3 comments
Open

[Bug]: The system cannot find the path specified #651

asciito opened this issue Apr 16, 2024 · 3 comments
Labels

Comments

@asciito
Copy link

asciito commented Apr 16, 2024

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, or php, 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 the php.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 system cannot find the path specified
@sschlein
Copy link
Member

sschlein commented Jun 4, 2024

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! :)

@andersmandersen
Copy link

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"

@issuelabeler issuelabeler bot added the macOS label Jul 5, 2024
@mpociot mpociot removed the macOS label Aug 9, 2024
@domagoj-skender-appliment

Same problem with Croatian character and space, "C:\Users\Domagoj Škender", can't access PHP, Herd, Composer or Laravel commands via Powershell

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

5 participants