beyondcode / beyondcode/herd-community
[Bug]: The system cannot find the path specified
- Dominant language
- No language data
- Stars
- 122
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### 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
```shell
The system cannot find the path specified
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.