Skip to content

{stacktrace} to pascal case crashed #25

@CADbloke

Description

@CADbloke

I got the pascal case warning for {stackTrace} in ....

Microsoft Visual Studio Community 2017
Version 15.4.0
VisualStudio.15.Release/15.4.0+27004.2002
Microsoft .NET Framework
Version 4.7.02046

Resharper 2017.21

Codez ..

Log.Fatal(crashAndBurn,
                              messageTemplate: "{DwgFileName} Crashed and burned. {stackTrace}",
                              propertyValue0: dwgName,
                              propertyValue1: crashAndBurn.StackTrace);

Tried to alt-right click fix and it crashed

Burn ..

System.InvalidCastException : Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Syntax.LiteralExpressionSyntax' to type 'Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax'.
   at SerilogAnalyzer.SerilogAnalyzerPascalCaseCodeFixProvider.<>c__DisplayClass5_0.<RegisterCodeFixesAsync>b__0(CancellationToken c)
   at Microsoft.CodeAnalysis.CodeActions.CodeAction.SolutionChangeAction.GetChangedSolutionAsync(CancellationToken cancellationToken)
   at async Microsoft.CodeAnalysis.CodeActions.CodeAction.ComputeOperationsAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.CodeActions.CodeAction.ComputePreviewOperationsAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetPreviewOperationsAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.GetPreviewResultAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedActionWithNestedFlavors.PreviewChangesSuggestedAction.CreateAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedActionWithNestedFlavors.GetPreviewChangesFlavor(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedActionWithNestedFlavors.CreateAllFlavors(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)

Hope this helps.
cheers
Ewen

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions