-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CLI broken when output path is not set #933
Comments
I recieve this same problem. It happens to me when I am using the web-beautify-js tool in spacemacs, which uses js-beautify via CLI to pipe the input into the emacs buffer, this was working until recently, then stopped after I updated node js to 6.0.0. I have updated the application since then and I still recieve this problem. |
I will back port to an older version of node to see if this is resolved. |
Now that you mention it, yes, it's broken by node 6.0.0. Works fine under 5.11.0. By the way, I also noticed this problem when the |
I just downgraded to 4.4.4, the latest stable version of node, and it does indeed work. |
@riatzukiza, @zmwangx - Thanks for tracking this down to version issues. I'll update the test environments to include nodejs 6.x and see if this can be tracked down. |
Fix in #939. |
Update. Only broken in node 6.0.0 or later.
I'm running the latest master (bdb91a2).
On the command line:
Expected: beautified result printed to stdout. Instead:
There's no such error when a custom output path is specified using
-o, --outfile
.The problem appears to be
config.outfile
beingundefined
.The text was updated successfully, but these errors were encountered: