Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: The system cannot find the path specified

Aperta
#651 9 commenti 5 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php

Direzione di ricerca

Esamina php.bat e gli altri file .bat che contengono il percorso utente completo, quindi riproduci l’installazione con un nome utente Windows contenente uno spazio e un carattere accentato. Verifica che comandi come herd e php vengano eseguiti correttamente senza l’errore relativo al percorso e che i percorsi generati utilizzino l’approccio indicato basato sulla variabile del profilo utente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

windows
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
Lingua principale
Nessun dato sulla lingua
Stelle
123
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di beyondcode/herd-community

Tutte le issue di beyondcode/herd-community

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.