atom / ide-php

PHP language support for Atom-IDE
MIT License
264 stars 41 forks source link

Linux Mint: No Paths to PHP Work #168

Open FibroJedi opened 2 years ago

FibroJedi commented 2 years ago

Atom Version: 1.58.0 (x64) System: Linux Mint 20

Error: IDE-PHP could not launch your PHP runtime. spawn /usr/bin/php ENOENT

I've been going round in circles across various places before finally posting here - about 3hrs lost so far. I cannot get PHP linting to work because the path cannot be found.

PHP Version PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies

(Without amending the version of PHP, my version above has no other updates)

Result of which php Command /usr/bin/php

Result of whereis php Command php: /usr/bin/php7.4 /usr/bin/php /usr/lib/php /etc/php /usr/share/php7.4-mbstring /usr/share/php7.4-gd /usr/share/php7.4-json /usr/share/php7.4-mysql /usr/share/php7.4-bz2 /usr/share/php7.4-opcache /usr/share/php7.4-xml /usr/share/php7.4-zip /usr/share/php7.4-readline /usr/share/php7.4-curl /usr/share/php7.4-common /usr/share/php /usr/share/man/man1/php.1.gz

Therefore the paths I've tried in the "PHP Path" field in Settings are:

And all of these result in the above error: spawn /whatever/path/to/php ENOENT

Please help! Thanks.

PS /usr/local/bin/ has no php file/folder in it image

pillolola commented 1 year ago

same problem, i've installed php and i'm sure these file php and php7.4 are presents in /usr/bin, but if I put /usr/bin/php or /usr/bin/php7.4 same error "IDE-PHP could not launch your PHP runtime" I'm on Linux Mint

FibroJedi commented 1 year ago

The atom project has been forked as atom is being/has been sunsetted.

The active Pulsar (the new brand) development is over here. There's no "release" but there are active development versions. Once you get one of those working, see if your error persists and file a bug report over there if not.

I have PHP working fine on Pulsar. Hope this helps.

pillolola commented 1 year ago

thank you for the advice. I' ve install it, but how can run it? if I reboot the pc and run "yarn start" command the terminal response is "Command 'yarn' not found, but can be installed with: sudo apt install cmdtest". only if I run "nvm install 16" after the terminal recognise the "yarn start" command and start the program. how can fix this problem?