phpactor / vscode-phpactor

Phpactor VS Code Extension
MIT License
106 stars 8 forks source link

vs code extension is not working #115

Closed DhiaBen20 closed 2 months ago

DhiaBen20 commented 2 months ago

I am getting this error after installing the vs code extension even though i installed phpactor and added it to my path

[Error - 3:21:39 AM] Starting client failed
Launching server using command php failed.
zobo commented 2 months ago

The latest version of vscode-phpactor comes bundeled with phpactor phar. It tries to run php (path to extension data)/phpactor.phar.

The error indicates that perhaps vscode was not able to find PHP in the path. These are the steps that the extension makes to resolve path to php

First one set is used. If you have php in a special location and not in path, add the setting phpactor.execuablePath.

Try to also set verbose logging via setting phpactor.trace.server to see if there is any other logs available.

DhiaBen20 commented 2 months ago

I encountered this issue on Pop!_OS, and it wasn't just this particular problem. PHP CS Fixer didn't work either, and every time I opened a PHP file, VS Code would prompt me to set php.validate.executablePath, which was quite strange. So, I decided to delete Pop!_OS and installed Debian instead, and now everything works fine.