composer-sublime icon indicating copy to clipboard operation
composer-sublime copied to clipboard

composer commands via standard OS CLI?

Open sunlix opened this issue 10 years ago • 5 comments

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 avatar May 05 '14 19:05 sunlix

@sunlix Hi,

Have you tried giving the full path to the composer command ?

francodacosta avatar Oct 03 '14 12:10 francodacosta

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 avatar Oct 06 '14 21:10 sunlix

@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 ?

francodacosta avatar Oct 06 '14 21:10 francodacosta

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'

entr avatar May 28 '15 11:05 entr

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...

tutkun avatar Apr 27 '17 12:04 tutkun