Format Document and Format Selection have no effect. The first time I try to format after reloading the window, I get a message box that says There is no document formatter for 'javascript'-files installed. The behavior persists after uninstalling, deleting ~/.vscode/extensions/esbenp.prettier-vscode-[version], restarting vscode, and installing. There are no errors under Help -> Developer Tools -> Console, and nothing that mentions prettier. Is there anything else I can do to diagnose the issue?
Looks like there are a number of people with this issue in #288
Formatting .html files work fine.
I'm having the same issues. .json and .html files are the only files where formatting is currently working. For everything else, when trying to format from the command palette, I get the same error. When trying to format on save, all fail silently.
I tried uninstalling and reinstalling and restarting several times and nothing works. I'm not sure how this just happened because everything was fine yesterday and I have not changed or updated anything.
@meowwwls do .js files work in other windows, or in other projects? The issue has somehow gone away for me
@lorensr Thanks for mentioning other windows, because it does seem to work if I open the file(s) in a new window.
Had this problem when I opened vscode and it reopened the previous workspace I had open, and then I created a new .js file and tried to format it.
EDIT
I just closed vscode and then when I did a little window popped up briefly saying that is was updating vscode. Perhaps this has something to do with the vscode updater?
I confirm this happen after a new file is created
Had this problem when I opened vscode and it reopened the previous workspace I had open, and then I created a new
.jsfile and tried to format it.EDIT
I just closed vscode and then when I did a little window popped up briefly saying that is was updating vscode. Perhaps this has something to do with the vscode updater?
I can confirm, I had updates in the pipe while had this issue. I installed and restarted the vsc and voila - all goods again!
IS this still an issue ?
vscode 1.33 changed things in the formatting area :-)
This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.
just re-installed stand formatter , and the issue resolved. As you might know , run the folllowing command
npm install -g standard
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Had this problem when I opened vscode and it reopened the previous workspace I had open, and then I created a new
.jsfile and tried to format it.EDIT
I just closed vscode and then when I did a little window popped up briefly saying that is was updating vscode. Perhaps this has something to do with the vscode updater?