-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Visual Studio 17.8.0 hangs with version 1.4.8 #1026
Comments
If you are using CSharpier 0.26.* (which would happen if you are clicking install globally/locally) then this is probably the same issue that is occurring across all of the IDEs. I'm hoping to be able to track it down soon. As a workaround you can install csharpier 0.25.0 outside of the plugin. |
I have a few questions, I think most other people are experiencing complete freezes that VS doesn't recover from. Does VS go back to normal after a few seconds or is it a complete freeze? |
VS doesn't recover, it remains like that. But it isn't like "Not Responding" freeze, being greyed out, more like there is an invisible dialog window preventing clicks and scrolling. Clicking VS icon in the taskbar doesn't do anything either. I can't do anything past VS opening the solution, not seeing output, not opening a file or format an existing one. The only way to uninstall the plugin was to open VS without code. I downgraded to 0.25.0 and the plugin seems fine again. |
I believe I know a way to resolve the problem, see #926 (comment) for more details |
That didn't solve the issue, but while going through issue I saw that duplicate lines in .editorconfig might cause problems so I checked it and had some duplicates. I removed them and things seem fine now, csharpier installed globally, v0.26.2 and the VS plugin v1.4.8. |
I'm facing the same issue with v0.26.2 and the VS plugin v1.4.8. This ticket should be re-opened. |
Seems to be fixed with version v0.26.3 :) |
This is not fixed. VS hangs regularly on my machine and for colleagues. If that happens I can see CPU spikes forced by CSharpier: If I wait for a long time (or kill the CSharpier task in Task Manager) I'm ending with #1072. I tried the troubleshooting guide multiple times, but it doesn't help. This is from log:
And VS is showing me: |
Started happening again, slightly differently for me as well, every time I open Visual Studio I get a message that it stopped responding for about 15-20 seconds, afterwards it seems fine. |
For me sometimes it's still working after the 'stopped responding' message. I very often open Visual Studio and VS Studio Code at the same time. I think in this case CSharpier is broken in Visual Studio after the message. But this is only a feeling... In Visual Studio Code I don't get any issues so far. |
Happening to me too. No .editorconfig file, I enable debug log messages and get this:
|
I resolved a number of issues with the new 1.5.0 version of the extension. It also has better logging and notification when it is unable to start the CSharpier process. Let me know if there are still issues! |
I've updated the plugin to 1.5.0 with the tool at 0.26.6 and had no issues after opening a few solutions. |
Thanks so much, it no longer hangs (extension version 1.5.0, tool version 0.26.7). However I am getting this on every load of visual studio:
|
I believe I have the occasional NRE fixed and am releasing 1.5.1 for that. The initial hang some people are seeing is probably csharpier being installed in the background. I think this could be avoided by converting a lot of this code to async, but it should be only occuring once when using a new version of csharpier so I'm not sure it is worth the effort. I've managed to reproduce getting CSharpier to hang and restart itself.
Rider had a similar problem, but the fix in Rider (java based) doesn't seem to apply to VS. I'll dig into that a bit more. @IT-CASADO are you seeing the "Visual Studio stopped responding for X seconds" message regularly? It also seems like the initial warming of csharpier is hanging for you, which I have not seem before. The warming process is a simple c# class, so I can't see why it would be causing things to hang. I do have a reworking of the communication between the extensions and csharpier using GRPC almost ready, and I am hoping that will resolve some of the flakeiness with piping input/output to csharpier. |
For me, it's happening every time I open Visual Studio and afterwards open a C# file in the solution. So to reproduce:
In contrast to @parched 's assumption, there are no compile errors in my solution. |
I did a fresh install of Windows 11 build 22621.2715, installed CSharpier plugin 1.4.8 and Visual Studio hangs after a few seconds after opening a solution.
I can reproduce this every time with CSharpier being the only plugin installed. Once I uninstall it and add my usual ones everything works fine.
The text was updated successfully, but these errors were encountered: