-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Solution does not open properly after 0.26.0 update #989
Comments
There is a report of the Rider plugin running into a similar issue - #926 (comment) I haven't been able to recreate the issue yet, but my guess is that it may have something to do with the new editorconfig support. Do you have any editorconfig files in your solution? What about any .csharpierrc files? It sounds like it freezer while trying to load, is that correct? Are you able to get the output window for csharpier open to see if anything is output there? Is there a folder at |
Also can you see if the event viewer has any info? I believe the problem could be this error that I am seeing.
|
After updating to csharpier 26 (from 25.x) this happens to me as well. Using neovim with conform Plugin on arch linux. |
I got this all morning too, but when changing the editorconfig files externally to better use spelling exclusions in VS17.7.6, I got even harder complete freezes (for minutes, having to kill all VS). I didn't manage to reduce down to find what extra lines copied from dotnet's project-system .editorconfig causes that. Especially since the sort usings isn't the same convention as what is configured currently as the project settings (group usings and system first options, both in editorconfig), I think I'll revert to 0.25 for now |
I managed to get a log since Visual Studio wasn't completely hung, but not that useful:
And later:
|
Same issue for me using Rider. It appears to freeze Rider completely & I have to force quit it. (I'm using the extension)
Here is the content that I pasted with that lead up to the freeze: public class TrailDto
{
public int Id { get; set; }
public string Name { get; set; } = "";
public string Description { get; set; } = "";
public string Location { get; set; } = "";
public int TimeInMinutes { get; set; }
public int Length { get; set; }
public List<RouteInstruction> Route { get; set; } =
➥new List<RouteInstruction>();
public class RouteInstruction
{
public int Stage { get; set; }
public string Description { get; set; } = "";
}
} |
I think I found it. From the task manager, I created a dump, and it generated me a dotnet-csharpier.DMP minidump file. It can be opened in Visual Studio, and it looks like you are at a debugging at a breakpoint. It may not be exactly at the last of the failures (since the process seems to close and retry often), but it was somewhere in the middle. I was able to see that Ini file parser threw an exception since there was multiple sections with the same name and here, the As these comments, it should be valid: I'm not sure if that minidump contains private project information, so I'm not trying to post it publicly, but I kept it. |
@echoix thanks for doing the work to track this done! It was a quick fix now that I know what the problem was. I also made sure any other failures with parsing an editorconfig will not cause a hard fail. I'll get a new version of csharpier out shortly with this included. |
You're welcome! It would have been even better and easier if the ini parser https://github.com/rickyah/ini-parser had debug symbols embedded and/or sourcelink enabled, but we still got a message. It's great that you found a way to fix and test some incomplete/invalid editorconfig files, and duplicated sections. I cannot imagine how it cannot fix the hard VS hang. However, I'm not convinced it will fix the first issue, where VS offers us to disable the extension since it hangs. After finding that the duplicated sections hard hang VS, and removing them, I still often encountered long hangs of at least 12 seconds at each time the banner showed, that I was only notified once per VS restart (per reboot but only for the IDE, not the computer). It was near the beginning of the execution of the IDE, but not at startup, and I could do a little bit of things before it hangs. I don't think it would hang by itself if I didn't do any actions (or saves). It also seemed linked to after I edited the editorconfig in Notepad++, and then really close next to that it would happen (only once). I never got to create a dump while it was hanging (once finished hanging, that's when the yellow banner appears). When I realized it was hanging, I was too slow to go in task manager for the dump. But the dotnet-csharpier process (inside the visual studio 2022 group) was often in the 3-8% of 12 cores CPU usage and the other processes came and go so it continued to move. Moreover, when looking at the issues in the repo, like rickyah/ini-parser#243, it made me think: does that mean that the library can either take Did you consider using the .NET version of the editorconfig core library (referenced from https://editorconfig.org/#create-a-plugin) |
@echoix I originally looked at using editorconfig-core-net, but it didn't support IFileSystem and my PR to add that has been sitting so it may also be in low maintenance - editorconfig/editorconfig-core-net#24 Then I realized that they way editorconfig-core-net worked would probably also performance problems. I believe it creates a configuration per file, and with a repo with 10,000 files that could be problematic. I settled on using ini-parser, not realizing the defaults for how it parsed files didn't work with editorconfigs. Ini-parser does support a comment regex, someone else caught that before 0.26.0 was released and as far as I know that is working. There is a test for it here Are you using a global install of csharpier? I did just fix an issue related to that #1000, but I don't believe it was causing VS to hang. I'm hoping to improve a number of things in the extensions with #995 and one of them is going to be logging on the csharpier site to help understand situations like when csharpier seems to be hanging. |
The solution of our main repo does not open properly after we updated from 0.25.0 to 0.26.0. VS freezes and shows an infinite loading circle.
![grafik](https://private-user-images.githubusercontent.com/51155697/281045815-ec6a1c87-e6f0-4fea-bc61-3602a4d8b856.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MjkwMTQsIm5iZiI6MTcyNTQyODcxNCwicGF0aCI6Ii81MTE1NTY5Ny8yODEwNDU4MTUtZWM2YTFjODctZTZmMC00ZmVhLWJjNjEtMzYwMmE0ZDhiODU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDA1NDUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ3Y2NiN2Q2ZDI0MmU2NmVkYjYyZjgxMTQ4Y2RkOWVkOGJlYjM5YWE0NTYxM2U2NGJkZmMzYTE5MTg1Zjk4MjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UqogQDaq-QVRsHPRhnxuPrOjhq9CNWJoUb0OokMKB3U)
Another solution opens with high loading time and a warning message from VS regarding to the CSharpier extension.
If we disable the CSharpier extension everything works just fine.
Are you aware of this problem or have anyone an idea how we can fix it?
The text was updated successfully, but these errors were encountered: