Upgrading to the latest version of the extension seems to have uninstalled the extension, and trying to re-install the extension from the marketplace does nothing – the "Install" button changes to "Installing" for a few seconds, and then gets reverted back to "Install". Restarting VSCode does not fix the problem.
If there's some way to enable debug logging for extension installation, I can add the logs here.
Maybe toggle developer tool.
It may be worth looking into ´.vscode/extensions/´
The developer tools' console had an error which said: "An unknown error occurred. Please see the log."
The ~/.vscode/extenstions folder had an esbenp.prettier-vscode-0.19.0 folder in it that only contained node_modules. I removed the esbenp.prettier-vscode-0.19.0 folder, tried reinstalling the extension, and now it went through ok. The problem is now resolved for me – let's hope that it's a freak occurrence that doesn't happen to others.
Great you fixed it. It would be great if you could find the logs tho
Do you have any idea where the logs are located? I can't find anything under ~/.vscode.
Sadly .... I've no idea...
Having the same issue, haven't resolve it yet. I've tried installing from the command-line and I'm seeing several "self signed cert" errors (I'm running through a proxy). Strict SSL is off, so it should work fine (other extensions are fine).
Not sure if this helps, but the install fails on vscode with this:
[ { Error: ENOENT: no such file or directory, open 'f:\vscode\extensions\esbenp.prettier-vscode-0.19.0\package.json'
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'f:\\vscode\\extensions\\esbenp.prettier-vscode-0.19.0\\package.json' } ]
I use an alternative extensions dir (specified in the command line).
I ended up resolving this by using a non-network drive as the alternative extensions dir. Not sure why this extension is sensitive to that.
I've a strange feeling. I think it's one of the rare release I've built on Windows ... (WSL)
Same issue just happened here too on mac. @vsaarinen your solution solved it for me!
New release 0.19.1 built the same way as 0.19.0.
Let's see if this happens again 😕
Seems fixed.
@vsaarinen thanks that worked
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
The developer tools' console had an error which said: "An unknown error occurred. Please see the log."
The
~/.vscode/extenstionsfolder had anesbenp.prettier-vscode-0.19.0folder in it that only containednode_modules. I removed theesbenp.prettier-vscode-0.19.0folder, tried reinstalling the extension, and now it went through ok. The problem is now resolved for me – let's hope that it's a freak occurrence that doesn't happen to others.