You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which is pretty annoying... If I run the prettier instance manually I do get the error, but I also get the stdout output with that JSON AST representation, because there's a console.log(JSON.stringify(node, null, 4)) in the plugin.js:457, which is interpreted by the formatter as the new file contents. At least redirect that output to stderr so it doesn't confuse the tooling.
The text was updated successfully, but these errors were encountered:
Was going to report the same problem. I'm guessing that vscode treats stdout differently since more people aren't reporting this? I use the vim plugin w0rp/ale to call prettier via eslint-plugin-prettier. Removing the console.log in node_modules fixes the problem temporarily.
I hope no editors are relying on this output so it can be a quick fix. Would create a PR but it's just one line and I don't yet understand why the author put it there, so...
I've started using the new TypeScript support, and accidentally wrote following code:
Notice that is said
let export
instead ofexport let
.When reformatted by my formatter - the code was destroyed (replaced with following:
Which is pretty annoying... If I run the prettier instance manually I do get the error, but I also get the stdout output with that JSON AST representation, because there's a
console.log(JSON.stringify(node, null, 4))
in the plugin.js:457, which is interpreted by the formatter as the new file contents. At least redirect that output tostderr
so it doesn't confuse the tooling.The text was updated successfully, but these errors were encountered: