Open marss72 opened 2 months ago
I repaired the Visual Studio 2022 and uninstalled the Preview version. Also deleted CSharpier before first turning the repaired version on and installing the extension - the same error keeps showing.
I haven't updated the troubleshooting steps to include information for the new csharpier server. I believe there should be a server.log
file next to the file at C:\Users\admin\AppData\Local\CSharpier\0.29.1\dotnet-csharpier
. Hopefully that shows why the process is unable to start the server.
As a workaround there is an option to disable csharpier server. I'm also considering making the extension automatically fall back to disabling csharpier server, but ideally I'd get the problems in csharpier server resolved and I can't resolve them if they aren't reported.
Yes, I've been checking the settings and turned the CSharpier server off and everything works fine now. An automatic fallback would be a great idea.
About the server.log
, there is no such file in that directory.
I have the same problem using Rider and as @marss72 mentioned. It works again by disabling the CSharpier server. It's a little strange because the first time I installed the plugin it worked but the next day, it stopped working.
I have the same problem using Rider and as @marss72 mentioned.
The issue stopped somehow for me since I installed Rider. I haven't used Visual Studio in longer coding sessions (> 2 hours) since that moment.
It's a little strange because the first time I installed the plugin it worked but the next day, it stopped working.
The same thing happened to me too. Everything worked fine, but after a few days, this error started happening.
Environments
Log Output
Steps to reproduce I don't know if there are any steps. But, this issue started appearing right after I switched from Visual Studio 2022 Preview (due to some issues (not csharpier)) to the stable version. Since this switch, the issue now appears on both versions.
Expected behavior After starting Visual Studio 2022, CSharpier process and extension will load successfully and formatting will be available.
Actual behavior Sometimes (usually once every day, doesn't seem to have any "pattern"), CSharpier process will fail to load and formatting is not available with the following Visual Studio message:
As I said, this usually gets fixed by just restarting the IDE - but this is just a temporary fix and the error appears again after some time (a few hours usually), or sometimes (not always) on another IDE restart.
I tried the steps in Editor Troubleshooting at least twice: reinstalling CSharpier (also with deleting the
%localappdata%\CSharpier
), reinstalling the extension and checking for updates. Did not help. I will let you know if I manage to fix it without re-installing the whole IDE (I will reinstall soon if this issue does not stop.)