-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
More reliable extensions #995
Comments
Some exceptions I saw around the time Rider finally hung for me
|
I also experience the issue with "System.UnauthorizedAccessException: Access to the path 'CSharpier.dll' is denied.". When I open the first solution csharpier works fine, but i get this error as soon as I open a second solution. Formatting in the first solution still works fine. I use visual studio 17.8.3 on windows and csharpier 0.26.5 installed globally. |
Based on the problem with #989, it makes sense to add better error handling. The code in csharpier probably needs to use a try/catch around the call to format a file. If the work to get GRPC working is done, it would be easier to report the failure back to the extension.
Maybe it is also possible to detect the crashing/hung csharpier process better on the extension side. I can re-introduce the problem and try to come up with a better way to deal with a similar situation in the future.
C:\Users\bela\AppData\Local\Temp\SourceGeneratedDocuments\F4DCBEE912DC99E14C52B9BC\CSharpier.Tests.Generators\CSharpier.Tests.Generators.FormattingTestsGenerator
System.UnauthorizedAccessException: Access to the path 'CSharpier.dll' is denied.
#1048 a bit, it seems that if one IDE is using csharpier, then another one can't delete it. But why would it delete it if it can be run?The text was updated successfully, but these errors were encountered: