You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[severity:It bothers me. A fix would be nice]
Multiple errors thrown in Visual Studio when opening existing solution. Persists after closing and rebooting Visual Studio and rebooting Windows.
Stack traces for the three errors:
CSharpWrappingCodeRefactoringProvider encountered and error and has been disabled
System.NotSupportedException : Specified method is not supported.
at Microsoft.CodeAnalysis.CSharp.CodeStyle.CSharpCodeStyleOptions.ParseNamespaceDeclaration(String optionString,CodeStyleOption2`1 default)
at Microsoft.CodeAnalysis.CSharp.CodeStyle.CSharpCodeStyleOptions.<>c__DisplayClass76_2. <.cctor>b__7(String str)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key,Func`2 valueFactory)
at Microsoft.CodeAnalysis.Options.EditorConfigValueSerializer`1.TryParseValue(String value,T& result)
at Microsoft.CodeAnalysis.AnalyzerConfigOptionsExtensions.TryGetEditorConfigOption[T](AnalyzerConfigOptions analyzerConfigOptions,IOption2 option,T& value)
at Microsoft.CodeAnalysis.Diagnostics.StructuredAnalyzerConfigOptions.TryGetOption[T](OptionKey2 optionKey,T& value)
at Microsoft.CodeAnalysis.Options.Extensions.GetOption[T](IOptionsReader options,Option2`1 option,T defaultValue)
at Microsoft.CodeAnalysis.CSharp.Formatting.CSharpSyntaxFormattingOptions.. ctor(IOptionsReader options,CSharpSyntaxFormattingOptions fallbackOptions)
at Microsoft.CodeAnalysis.CSharp.Wrapping.CSharpSyntaxWrappingOptionsProviders.GetCSharpSyntaxWrappingOptions(IOptionsReader options,CodeActionOptions fallbackOptions)
at async Microsoft.CodeAnalysis.Wrapping.AbstractWrappingCodeRefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
IntroduceVariableCodeRefactoringProvider encountered and error and has been disabled
System.NotSupportedException : Specified method is not supported.
at Microsoft.CodeAnalysis.CSharp.CodeStyle.CSharpCodeStyleOptions.ParseNamespaceDeclaration(String optionString,CodeStyleOption2`1 default)
at Microsoft.CodeAnalysis.CSharp.CodeStyle.CSharpCodeStyleOptions.<>c__DisplayClass76_2. <.cctor>b__7(String str)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key,Func`2 valueFactory)
at Microsoft.CodeAnalysis.Options.EditorConfigValueSerializer`1.TryParseValue(String value,T& result)
at Microsoft.CodeAnalysis.AnalyzerConfigOptionsExtensions.TryGetEditorConfigOption[T](AnalyzerConfigOptions analyzerConfigOptions,IOption2 option,T& value)
at Microsoft.CodeAnalysis.Diagnostics.StructuredAnalyzerConfigOptions.TryGetOption[T](OptionKey2 optionKey,T& value)
at Microsoft.CodeAnalysis.Options.Extensions.GetOption[T](IOptionsReader options,Option2`1 option,T defaultValue)
at Microsoft.CodeAnalysis.CSharp.Formatting.CSharpSyntaxFormattingOptions.. ctor(IOptionsReader options,CSharpSyntaxFormattingOptions fallbackOptions)
at Microsoft.CodeAnalysis.CSharp.Formatting.CSharpSyntaxFormatting.GetFormattingOptions(IOptionsReader options,SyntaxFormattingOptions fallbackOptions)
at Microsoft.CodeAnalysis.CodeCleanup.CodeCleanupOptionsProviders.GetCodeCleanupOptions(IOptionsReader options,LanguageServices languageServices,Nullable`1 allowImportsInHiddenRegions,CodeCleanupOptions fallbackOptions)
at async Microsoft.CodeAnalysis.CodeCleanup.CodeCleanupOptionsProviders.GetCodeCleanupOptionsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeCleanup.CodeCleanupOptionsProviders.GetCodeCleanupOptionsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.IntroduceVariable.IntroduceVariableCodeRefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
UseExpressionBodyCodeRefactoringProvider encountered and error and has been disabled
System.NotSupportedException : Specified method is not supported.
at Microsoft.CodeAnalysis.CSharp.CodeStyle.CSharpCodeStyleOptions.ParseNamespaceDeclaration(String optionString,CodeStyleOption2`1 default)
at Microsoft.CodeAnalysis.CSharp.CodeStyle.CSharpCodeStyleOptions.<>c__DisplayClass76_2. <.cctor>b__7(String str)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key,Func`2 valueFactory)
at Microsoft.CodeAnalysis.Options.EditorConfigValueSerializer`1.TryParseValue(String value,T& result)
at Microsoft.CodeAnalysis.AnalyzerConfigOptionsExtensions.TryGetEditorConfigOption[T](AnalyzerConfigOptions analyzerConfigOptions,IOption2 option,T& value)
at Microsoft.CodeAnalysis.Diagnostics.StructuredAnalyzerConfigOptions.TryGetOption[T](OptionKey2 optionKey,T& value)
at Microsoft.CodeAnalysis.Options.Extensions.GetOption[T](IOptionsReader options,Option2`1 option,T defaultValue)
at Microsoft.CodeAnalysis.CSharp.CodeGeneration.CSharpCodeGenerationOptions.. ctor(IOptionsReader options,CSharpCodeGenerationOptions fallbackOptions)
at Microsoft.CodeAnalysis.CSharp.CodeGeneration.CSharpCodeGenerationService.GetCodeGenerationOptions(IOptionsReader options,CodeGenerationOptions fallbackOptions)
at async Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationOptionsProviders.GetCodeGenerationOptionsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationOptionsProviders.GetCodeGenerationOptionsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CSharp.UseExpressionBody.UseExpressionBodyCodeRefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)
Original Comments
Feedback Bot on 1/24/2024, 08:47 PM:
(private comment, text removed)
Wenwen Fan [MSFT] on 1/25/2024, 02:17 AM:
(private comment, text removed)
Jason Taylor on 1/28/2024, 05:24 PM:
(private comment, text removed)
Feedback Bot on 1/29/2024, 00:44 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered:
EditorConfig option 'csharp_style_namespace_declarations' contains unrecognized value 'invalid'
This is just an example. I'm not perfectly happy with this wording, so if someone finds a better phrasing that would be fine. The format string should be usable for multiple .editorconfig parsing situations, and this is not the only location where we throw a NotSupportedException without a specific string today.
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice]
Multiple errors thrown in Visual Studio when opening existing solution. Persists after closing and rebooting Visual Studio and rebooting Windows.
Stack traces for the three errors:
CSharpWrappingCodeRefactoringProvider encountered and error and has been disabled
IntroduceVariableCodeRefactoringProvider encountered and error and has been disabled
UseExpressionBodyCodeRefactoringProvider encountered and error and has been disabled
Original Comments
Feedback Bot on 1/24/2024, 08:47 PM:
(private comment, text removed)
Wenwen Fan [MSFT] on 1/25/2024, 02:17 AM:
(private comment, text removed)
Jason Taylor on 1/28/2024, 05:24 PM:
(private comment, text removed)
Feedback Bot on 1/29/2024, 00:44 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: