francodacosta / composer-sublime

composer plugin for Sublime Text 2
Other
46 stars 4 forks source link

composer commands via standard OS CLI? #7

Open sunlix opened 10 years ago

sunlix commented 10 years ago

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?

francodacosta commented 10 years ago

@sunlix Hi,

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

sunlix commented 10 years ago

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.

francodacosta commented 10 years ago

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

entr commented 9 years ago

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'
tutkun commented 7 years ago

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