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
Don't work: 'php' could not be spawned. #11
Comments
Like say the readme in the package u need have php in ur environment path to run it. What OS u have? |
Ok I understand that i must declarate path but i don't where in settings? in file autocomplet-plus but in which?. I start use atom from 24 hours. Sorry for problem. |
u need to config in ur operation system the environment path if u have windows u can do this: Editing Environmental Variables In all versions of Windows: Right click the My Computer icon and open the Properties dialogue. Go to "Advanced" or "Advances System Variables" and then to "Environment Variables" and in the "System variables" section select "Path" and click the Edit button. At the end of the path statement, add the text ";C:\put-the-path-of-ur-php-folder\bin" Note the first character is a semi-colon, this is a separator, it separates different parts of the path statement, do not forget to put it in, and do not put it at the end of the line. There are no spaces in the path statement. Save the file by clicking on OK. Close and exit the My Computer Properties dialogue. |
Since many other linters support a configuration where one may enter the full path of |
My development environment is on Windows and I've installed this package. As soon as I try typing anything inside a PHP file I get the titled error, more specifically, "'php' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.". This is followed by an error in the console, "Uncaught Error: spawn php ENOENT". I have verified this is the package causing the problem as the problem disappears as soon as I disable only this package. In addition I have verified that the directory for PHP is in my path, and has been loaded by Atom, by checking the process.env.PATH variable while loaded. I also have verified that it is functioning on my system with the command "php -v", which I can run from any directory. Sorry to dredge up an old topic, but it's the exact same situation, so I felt it was appropriate here. |
Hi Arak what version of window u are using? |
Windows 8.1 |
umm that is rare, im testing in a windows 8.1 and works fine. this happen to u in every php file or maybe in one in special. |
The problem appears to have gone away with the latest update (just updated 30 minutes ago). So I guess we can say this is solved. |
Hello ArakTaiRoth I am using Windows 8.1 and getting this error after installing automplete-php package. 'php' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process. Can you please guide me how to fix that. Thanks. |
@manan88 Again I strongly suggest that instead of relying on PATH, a simple text box be added to configuration so the end-user can point to whichever php.exe they choose, and have this package default to PATH settings when nothing is entered in the text box. |
@jeroldhaas Sorry but I am not technical but can you guide me step by step to resolve this error. I will thankful if you support me :) I have installed fresh step of Atom and after that I have download package(autocomplete-php). |
@jeroldhaas Thanks for the great support. Now I am getting php automplete :) 👍 |
@wasikuss that would be optimal, yes, with a default to |
My system is win10, I add them to the PATH system environment variable, but it still not work |
@hao203 It's better now to configure the package by entering the path to php executable in package settings, since that option has been added. |
Hi @Azakur4 , I too am having the same issue but I am running xubuntu 14.04 LTS. How would I configure it so this error stops occurring? |
@DAV9854 make sure your |
Thanks @jeroldhaas, I am now able to run this error free! |
@jeroldhaas Thanks for the great support,it's useful!!! :) |
I am using XAMPP 7.0.9 with ubuntu 16.04 system. Is there any help possible to resolve the same issue? |
@jeroldhaas I appreciate the thoroughness of your response. I have found that many answers and explanations and or READMEs are very lacking at least from the perspective of beginners or newbs. Please continue being a great help and giving clear explanations for e.g. with pictures like you did responding to @manan88 |
To test if its working
|
Спасибо. Очень помогли с решением данной проблемы. |
Thank you for posting this. This was a really frustrating thing to deal with. I lost about an hour trying to figure it out on my own. :-) Awesome solution. |
Thank you @jeroldhaas , I followed all your steps on my pc and it is works perfectly. |
Thanks!!! @rahuls360 |
I have the same issue on Ubuntu 18.04. However, I could not able to do what you have said about execution permissions. In other words, I don't know how to do it? |
I had funny problem. I install your package And when i go to php files and start writing a have problem:
'php' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.
Can't you tell step by step install process. Maybe I should add or change something in files autocomplete?
The text was updated successfully, but these errors were encountered: