-
-
Notifications
You must be signed in to change notification settings - Fork 99
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 stopped responding for 9 seconds. Disabling the extension CSharpier 1.5.1 might help. #1182
Comments
I released a new version of the extension today that I hope will address these problems, or at least make them easier to track down. The latest (1.5.2) version has a new option "Use CSharpier Server", could you try the new version with that on to see if it resolves the issue? You'll get a windows firewall popup about dotnet-csharpier needing internet access, which it doesn't. The extension communicates with the cli over http with this new version. I resolved the firewall warning in that in #1184 but it hasn't been released yet. |
It's still happening, but there's a lot more logs now. This is without the new "Use CSharpier Server" option enabled
I will try the Server option now.... Here is the logs with Server option also. I have no Visual Studio warning using Server option:
|
I just got over a full minute hang on reformat using the Server option. Here's the log
|
Ok yeah, still getting the "Visual Studio stopped responding" message sometimes while using the Server option. "Visual Studio stopped responding for 7 seconds. Disabling the extension CSharpier 1.5.2 might help. Disable this extension Manage performance Don't report this extension again "
|
I'm thinking there is either something in some of your files that csharpier can't handle. If it is all files in the project, then maybe something in an .editorconfig. If you create a new file with a basic class in your project, can that be formatted? |
I created a new "ASP.NET Core Web API" project with Identity. Closed VS, opened the project, and got the error again "Visual Studio stopped responding for 9 seconds. Disabling the extension CSharpier 1.5.2" So it's not the code from my other project or editorconfig. I double checked and no editorconfig is present in the new webapp
|
The logging from the extension side doesn't really give me any indication of what the problem is. I hope to add logging to the csharpier side, but I don't know how soon that will happen. The only other thing I can think of is for you to debug csharpier.
|
I'll give it a try but the issue usually doesn't happen when I format a file, it usually happens when I first open Visual Studio. So I think the method of attaching to a process is too late because I think the issue is in the process start/warmup Also I notice in Task Manager one As of right now I have 0 Visual Studio open, but 5 dotnet-csharpier in Task Manager. Perhaps this is intended behaviour to make next launch faster, not sure, just thought I'd mention it |
@belav I get this too every time I open VS, We're using 0.28.2 in this project. How should I go about investigating the issue? |
any updates on this? the only solution I found is uninstalling/reinstalling Csharpier (and everytime I open up a solution...) |
Multiple times a day I get this message. "Visual Studio stopped responding for 9 seconds. Disabling the extension CSharpier 1.5.1 might help."
Here is the CSharpier output:
Visual Studio info
The text was updated successfully, but these errors were encountered: