Quantcast
Channel: Crunchify
Viewing all articles
Browse latest Browse all 1037

How to fix atom-autocomplete-php Incomplete Error because of missing composer.phar in Atom.io?

$
0
0

atom-autocomplete-php Incomplete Error because of missing composer.phar

Atom.io is one of the best development IDE for Java and PHP WordPress. With more than hundreds of plugins/packages it became very popular in no time after launch.

While setting up top plugins on Atom.io I faced wired issue yesterday.

atom-autocomplete-php – Incorrect setup!

Either PHP or Composer is not correctly set up and as a result PHP autocompletion will not work. Please visit the settings screen to correct this error. If you are not specifying an absolute path for PHP or Composer, make sure they are in your PATH. Feel free to look package’s README for configuration examples.

How to install and setup Composer on Mac OS X

Step-1.

bash-3.2$ php composer-setup.php --filename=composer
All settings correct for using Composer
Downloading...

Composer (version 1.4.2) successfully installed to: /Users/appshah/composer
Use it: php composer

You will see composer.phar file created under user directory.

-rwxr-xr-x   1 appshah  staff  1838958 Jun 14 09:57 composer.phar

Step-2.

  • Go to Atom IDE
  • Click on Preferences...
  • Click on Packages Tab
  • Click on Settings link for atom-autocomplete-php package

Step-3.

  • Look for setting for Command to use Composer.
  • Add /Users/appshah/composer.phar as a value. Make sure you change to your username.

And you are all set. You will see Green message box saying you have successfully installed composer.

successfully install composer on Mac OS X

Would love to know what you think. Chime in and share it as a comment. Don’t forget to share this guide!

The post How to fix atom-autocomplete-php Incomplete Error because of missing composer.phar in Atom.io? appeared first on Crunchify.

Author: App Shah


Viewing all articles
Browse latest Browse all 1037

Trending Articles