Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpfmt: cannot find php bin #19

Closed
bardware opened this issue Mar 18, 2018 · 2 comments
Closed

phpfmt: cannot find php bin #19

bardware opened this issue Mar 18, 2018 · 2 comments

Comments

@bardware
Copy link

Hi,

I don't have PHP directory on my PATH when I start code. I Add this setting to my user settings: "phpfmt.php_bin": "C:/Program Files/php/7_2-nts/php.exe", yet your plugin keeps complaing phpfmt: cannot find php bin.
Why is that? Does the plugin try to evaluate the path to php.exe somehow?

Best,
Bernhard

@kokororin
Copy link
Owner

kokororin commented Mar 22, 2018

No, it just means the path is calling php error.
path like Program Files with spaces may not work well.
You can try "phpfmt.php_bin": "'C:/Program Files/php/7_2-nts/php.exe'".
See last comment in #1.

@RicardoBer
Copy link

RicardoBer commented Apr 4, 2018

Form Windows:

After al lot of trys, very simple, I can't understand all the blogs about

install phpfmt from F1 command or plugins UI vs tool

Then add to your settings this lines if you intall php in Program Files:

"phpfmt.php_bin": "C:\\Progra~1\\PHP\\php.exe", "php.validate.executablePath": "C:\\Progra~1\\PHP\\php.exe",

Any way, for know path without spaces (generate problems) open cmd and type dir /x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants