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

Replace existing file fails using python beautifier #686

Closed
surfer190 opened this issue May 4, 2015 · 4 comments
Closed

Replace existing file fails using python beautifier #686

surfer190 opened this issue May 4, 2015 · 4 comments
Milestone

Comments

@surfer190
Copy link

Trying to pretty print a Gruntfile.js:

So based on:

Usage: jsbeautifier.py [options] <infile>

I used:

jsbeautify -o Gruntfile.js Gruntfile.js

Result:

[Errno 2] No such file or directory: ''

@bitwiseman
Copy link
Member

Try -r instead and just the one file name.

@surfer190
Copy link
Author

I used: js-beautify -r Gruntfile.js

returned:

[Errno 2] No such file or directory: ''

@surfer190
Copy link
Author

@bitwiseman I was using the python version. Changed to javascript version and it worked

@bitwiseman bitwiseman added this to the v1.5.6 milestone May 27, 2015
@bitwiseman
Copy link
Member

Thanks!

@bitwiseman bitwiseman changed the title How do you output to a file? Replace existing file fails using python beautifier May 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants