composer-sublime
composer-sublime copied to clipboard
composer commands via standard OS CLI?
Hey,
maybe it is damn easy but my composer commands did not execute...
I've sync my ST3 3062 settings through google drive to my Mac and Windows-Notebook. So I want to use composer through the CLI because of different file systems.
I've configure my composer like this:
{
"composer_command": "composer"
}
but it is not execute. (File did not found) I do not want to place a single composer.phar to each project, so the CLI way is wanted.
Is there any way to reach any cross OS configuration?
@sunlix Hi,
Have you tried giving the full path to the composer command ?
Hi,
yes I tried. But I do not want to assign the full path 'cause the specific OS path are different.
Windows: C:...
Mac OS: /Users/...
On both systems the composer command works through the common CLI.
@sunlix I have the feeling that sublime executes commands under a limited shell and i'm not sure your user PATH env variable is set
can you try copying or symlinking composer to /bin on osx ?
I am trying
{
"composer_command": "/usr/bin/env composer"
}
but getting
-- COMPOSER --
executing: /usr/bin/env composer validate -n -v
Error: [Errno 2] No such file or directory: '/usr/bin/env composer'
For OS-X: SublimeText -> Preferences -> Package Settings -> Composer -> Settings - User:
full path of the composer file
{ "composer_command": "/usr/local/bin/composer" }
It's working...