bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.57k stars 93 forks source link

Can't fing a php.exe #2849

Closed LauraEglite closed 2 months ago

LauraEglite commented 2 months ago

PHP is managed internally in Visual Studio Code. I got an error in VS Code: Cannot validate since a PHP installation could not be found. Use the setting 'php.validate.executablePath' to configure the PHP executable. I can not find a path in my Windows 10. How I can add a path in VS Code? Also, I am working with php project and this error appeared, I can not see preview for my WordPress site. The One Fullsuit 43mm Zipfree - Black - 2024-04-09T094625 319 This is caused by php path issue?

Screenshots If applicable, add screenshots to help explain your problem.

Platform and version Windows 10, VisualStudio Code, Wordpress, PHP

bmewburn commented 2 months ago

That notice is from the built-in PHP Language Features extension. You can disable it completely or configure it as needed, see https://code.visualstudio.com/docs/languages/php .

To enable wordpress symbols in your workspace with intelephense you can either.

  1. Have the wordpress src in your workspace folder. Or
  2. Link to wordpress src folder with the intelephense.environment.includePaths setting. Or
  3. Add wordpress to the intelephense.stubs setting.
LauraEglite commented 2 months ago

Thank you for your assistance. I tried to delete that code from settings, but it comes back. It says I need to write path in it. That path in link you provided doesnt work and I dont use XAMPP, I use Local Sites. Is this php path error related with blank screen in live server at all? It might be a different problem...

otrd., 2024. g. 9. apr., plkst. 12:03 — lietotājs Ben Mewburn (< @.***>) rakstīja:

That notice is from the built-in PHP Language Features extension. You can disable it completely or configure it as needed, see https://code.visualstudio.com/docs/languages/php .

To enable wordpress symbols in your workspace with intelephense you can either.

  1. Have the wordpress src in your workspace folder. Or
  2. Link to wordpress src folder with the intelephense.environment.includePaths setting. Or
  3. Add wordpress to the intelephense.stubs setting.

— Reply to this email directly, view it on GitHub https://github.com/bmewburn/vscode-intelephense/issues/2849#issuecomment-2044499534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT7QJF2H3Y7M3IA7MJJRPVDY4OVEJAVCNFSM6AAAAABF57AHLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGQ4TSNJTGQ . You are receiving this because you authored the thread.Message ID: @.***>