-
Notifications
You must be signed in to change notification settings - Fork 453
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
Could not find 'php'. The program may not be installed. #1016
Comments
i have the same problem. |
The problem could be that the windows system PATH variable is not correctly passed to atom. Maybe it would be a good idea to have an option in the atom beautify settings where the path to php can be set manually (like the path to php-cs-fixer.phar). However, I am also using the php linter package and there I do not need to set the path to php (although I would have the option to do so). |
i have used php-fmt instead. |
Also getting this error. Attempted to add the debug but it just copied Here's the stack trace:
|
check out issue #1054. Might solve it |
Thank you very much. That indeed solved the problem. The systems environment variable PATH has to be in uppercase. I am a little worried that my change from "path" to "PATH" could have some unwated effects, but it seems that in Windows system variables are case insensitive. I also still think it might be a good idea to have an option in the atom-beautify settings where the path to php can be set manually. |
I found another problem. When I open atom via the shortcut on my desktop, beautification works fine. However, when I right click on a folder in explorer and select "Open with Atom", beautification simply does not happen. There is no error message, I can see the "beautification in progess" window, but the code stays as ugly as it is. |
@joergmold That sounds like it should be a new and unrelated issue. |
I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance. |
When I try to beautify a php file I get the error message "Could not find 'php'. The program may not be installed."
I already set the path to the php-cs-fixer.phar in the package settings. I also set the path to php in my windows system path variable. If I type "php -v" on the command line i get my php version and if I type "where php" i get the path to php. So php seems to work properly.
I am also using the php linter atom package and there is no problem with finding php.
The text was updated successfully, but these errors were encountered: