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

Format error: [WinError 2] The system cannot find the file specified #268

Closed
riverofjanuary opened this issue Nov 10, 2016 · 10 comments
Closed

Comments

@riverofjanuary
Copy link

Getting this error when using the Format Code command on any file. Installed the very latest version via package control with no problems.

@mickyyman
Copy link

Exact same problem.

@jjdias
Copy link

jjdias commented Nov 22, 2016

Anyone got a solution yet?

@riverofjanuary
Copy link
Author

Just uninstalled it. Seems like a crappy addon...

@thecotne
Copy link
Collaborator

@mickyyman @jjdias post os and sublime version and sublime console output

@invasoria
Copy link

I was having the same problem only while trying to format PHP code on Windows 10, Sublime Text Build 3126.

Fixed it by configuring the correct path to the PHP executable in the package settings. This line to be exact:

"php_path": "/your/path/goes/here", // Path for PHP executable, e.g. "/usr/lib/php" or "C:/Program Files/PHP/php.exe". If empty, uses command "php" from system environments

@riverofjanuary
Copy link
Author

One of my problems was that another modal dialog was open (in my case, the nagware to buy ST3). I didn't see it, but once I closed it the command worked.

@sellmark
Copy link

@invasoria Thanks Ivan, that really works.
You need to install PHP if you don't have one on your Windows 10.

@thecotne
Copy link
Collaborator

closing since it's not real issue

@gozzzart
Copy link

to all good body very careful about those trying to tell us they are part of good groups

@Orange-Moose
Copy link

Deleting JSLint package solved the problem for me.

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

8 participants