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]: "No usable PHP version found" #1249

Open
MPGs007 opened this issue Jan 24, 2025 · 1 comment
Open

[Bug]: "No usable PHP version found" #1249

MPGs007 opened this issue Jan 24, 2025 · 1 comment
Labels

Comments

@MPGs007
Copy link

MPGs007 commented Jan 24, 2025

Platform

Windows

Operating system version

Windows 10 Pro 22H2 19045.5371

System architecture

Windows

Herd Version

1.14.0

PHP Version

No response

Bug description

I'm on windows - using VS code and since installing PHP 8.4 through herd get constant error via the _laravel_ide vendor Barry Intelliphense I think

025-01-24 09:31:57.818 [error] ""No usable PHP version found"" "c:\Users\noelm\Herd\mpg\vendor_laravel_ide\discover-de1f506da4a5c2d0d4253f2c83847947.php"
2025-01-24 09:31:57.819 [error] Eloquent Attributes and Relations

'""No' is not recognized as an internal or external command,
operable program or batch file.

Since the install unable to run herd commands in terminal but PHP version is shown
PS C:\Users\noelm\Herd\mpg> herd
"No usable PHP version found"
PS C:\Users\noelm\Herd\mpg> php -v
PHP 8.3.16 (cli) (built: Jan 14 2025 20:07:09) (NTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.3.16, Copyright (c) Zend Technologies
with Zend OPcache v8.3.16, Copyright (c), by Zend Technologies
PS C:\Users\noelm\Herd\mpg> herd list
"No usable PHP version found"

I did check my find-usable-php.php
all seems fine

= 0) { if (file_exists($binPath . '84' . DIRECTORY_SEPARATOR . 'php.exe')) { echo $binPath . '84' . DIRECTORY_SEPARATOR . 'php.exe'; } elseif (file_exists($binPath . '83' . DIRECTORY_SEPARATOR . 'php.exe')) { echo $binPath . '83' . DIRECTORY_SEPARATOR . 'php.exe'; } elseif (file_exists($binPath . '82' . DIRECTORY_SEPARATOR . 'php.exe')) { echo $binPath . '82' . DIRECTORY_SEPARATOR . 'php.exe'; } elseif (file_exists($binPath . '81' . DIRECTORY_SEPARATOR . 'php.exe')) { echo $binPath . '81' . DIRECTORY_SEPARATOR . 'php.exe'; } return; } if (file_exists($binPath . '83' . DIRECTORY_SEPARATOR . 'php.exe')) { echo $binPath . '83' . DIRECTORY_SEPARATOR . 'php.exe'; return; } echo $binPath . '82' . DIRECTORY_SEPARATOR . 'php.exe'; -

I think it is an issue with the settings.json php.executablePath or php.validate.executablePath but I can't find anywhere that tells me the correct values for VS code to use herd PHP - any help on correct setting so I can check would be appreciated - moved from MAMP windows to Herd to use latest PHP as MAMP windows stops at 8.2

Everything was working fine up to a week ago when I installed 8.4 it was working fine with with 8.3 PHP installed via herd

Steps to reproduce

Open a fully working laravel project in VS Code through Herd, upgrade PHP in Herd to 8.4
Herd commands in cli stop working and no useable PHP is found although version is there - intelliphense goes nuts with errors as cant find PHP

Relevant log output

@issuelabeler issuelabeler bot added the windows label Jan 24, 2025
@MPGs007
Copy link
Author

MPGs007 commented Jan 24, 2025

Have changed my path back to php installed locally - can find PHP and use it elsewhere just not when loading site via herd in VS code
025-01-24 15:37:54.912 [info] Checking herd PHP installation: herd which-php
2025-01-24 15:37:54.912 [info] Using herd PHP installation: "No usable PHP version found"
2025-01-24 15:37:54.912 [error] Error:
Translation namespaces

'""No' is not recognized as an internal or external command,
operable program or batch file.

the lack of response in 8 different help areas and various discord channels has left me without anywhere to turn - I appreciate not being an expert I'm probably using the wrong terminology but I'm just trying to get back to a stable dev environment where my system works - I was about to buy herd pro but this lack of support for indie devs using vs code and windows doesn't give me a lot of confidence. If ANYONE reads this can someone suggest who I can actually talk to so I can get back to coding please as this has been wasted week so far. Only option is to uninstall herd and go back to MAMP I guess.

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

1 participant