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

Fails on MS Windows as js-beautify cmd exits with no direct output #32

Open
he-la opened this issue Feb 17, 2018 · 0 comments
Open

Fails on MS Windows as js-beautify cmd exits with no direct output #32

he-la opened this issue Feb 17, 2018 · 0 comments

Comments

@he-la
Copy link

he-la commented Feb 17, 2018

On MS Windows, calling the beautify functions simply deletes all content of the buffer. I believe this is because js-beautify is a shell script that opens a node.js process on the js-beautify module. Thus, the script itself has no direct output. This behaviour can also be observed by simply invoking js-beautify from M-x shell or similar methods.

For the record, this bug also exists in the package prettier-js, and probably others.

I have tried to fix the issue by invoking node.exe directly. Unfortunately, this process somehow never terminates when called from emacs.

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

1 participant