calebporzio / simple-php-cs-fixer

A VS Code extension for simple php-cs-fixer integration
24 stars 8 forks source link

Strange Error #6

Open ben182 opened 6 years ago

ben182 commented 6 years ago

Hey,

I get this error when I want to fix a file ERR spawn php-cs-fixer ENOENT: Error: spawn php-cs-fixer ENOENT at exports._errnoException (util.js:1050:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) at onErrorNT (internal/child_process.js:367:16) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9)

I am on windows

janpio commented 6 years ago

I am getting the same error:

ERR spawn php-cs-fixer ENOENT: Error: spawn php-cs-fixer ENOENT
    at exports._errnoException (util.js:1050:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:367:16)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Did you ever fix this? Starting to investigate now myself.

janpio commented 6 years ago

Running php-cs-fixer in the project folder in the command line works, I also removed all configuration I already created to see if this changes anything - it doesn't.

janpio commented 6 years ago

Runnign VS Code as admin didn't change anything (inspired by #2).