{"action":"closed","issue":{"url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/426","repository_url":"https://api.github.com/repos/JosefPihrt/Roslynator","labels_url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/426/comments","events_url":"https://api.github.com/repos/JosefPihrt/Roslynator/issues/426/events","html_url":"https://github.com/JosefPihrt/Roslynator/issues/426","id":350881124,"node_id":"MDU6SXNzdWUzNTA4ODExMjQ=","number":426,"title":"RoslynatorCodeRefactoringProvider encountered an error and has been disabled","user":{"login":"nnpcYvIVl","id":8421414,"node_id":"MDQ6VXNlcjg0MjE0MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8421414?v=4","gravatar_id":"","url":"https://api.github.com/users/nnpcYvIVl","html_url":"https://github.com/nnpcYvIVl","followers_url":"https://api.github.com/users/nnpcYvIVl/followers","following_url":"https://api.github.com/users/nnpcYvIVl/following{/other_user}","gists_url":"https://api.github.com/users/nnpcYvIVl/gists{/gist_id}","starred_url":"https://api.github.com/users/nnpcYvIVl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnpcYvIVl/subscriptions","organizations_url":"https://api.github.com/users/nnpcYvIVl/orgs","repos_url":"https://api.github.com/users/nnpcYvIVl/repos","events_url":"https://api.github.com/users/nnpcYvIVl/events{/privacy}","received_events_url":"https://api.github.com/users/nnpcYvIVl/received_events","type":"User","site_admin":false},"labels":[{"id":711300406,"node_id":"MDU6TGFiZWw3MTEzMDA0MDY=","url":"https://api.github.com/repos/JosefPihrt/Roslynator/labels/Area-Refactorings","name":"Area-Refactorings","color":"0000CD","default":false},{"id":364607662,"node_id":"MDU6TGFiZWwzNjQ2MDc2NjI=","url":"https://api.github.com/repos/JosefPihrt/Roslynator/labels/Bug","name":"Bug","color":"ee0701","default":false}],"state":"closed","locked":false,"assignee":{"login":"JosefPihrt","id":11931318,"node_id":"MDQ6VXNlcjExOTMxMzE4","avatar_url":"https://avatars3.githubusercontent.com/u/11931318?v=4","gravatar_id":"","url":"https://api.github.com/users/JosefPihrt","html_url":"https://github.com/JosefPihrt","followers_url":"https://api.github.com/users/JosefPihrt/followers","following_url":"https://api.github.com/users/JosefPihrt/following{/other_user}","gists_url":"https://api.github.com/users/JosefPihrt/gists{/gist_id}","starred_url":"https://api.github.com/users/JosefPihrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosefPihrt/subscriptions","organizations_url":"https://api.github.com/users/JosefPihrt/orgs","repos_url":"https://api.github.com/users/JosefPihrt/repos","events_url":"https://api.github.com/users/JosefPihrt/events{/privacy}","received_events_url":"https://api.github.com/users/JosefPihrt/received_events","type":"User","site_admin":false},"assignees":[{"login":"JosefPihrt","id":11931318,"node_id":"MDQ6VXNlcjExOTMxMzE4","avatar_url":"https://avatars3.githubusercontent.com/u/11931318?v=4","gravatar_id":"","url":"https://api.github.com/users/JosefPihrt","html_url":"https://github.com/JosefPihrt","followers_url":"https://api.github.com/users/JosefPihrt/followers","following_url":"https://api.github.com/users/JosefPihrt/following{/other_user}","gists_url":"https://api.github.com/users/JosefPihrt/gists{/gist_id}","starred_url":"https://api.github.com/users/JosefPihrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JosefPihrt/subscriptions","organizations_url":"https://api.github.com/users/JosefPihrt/orgs","repos_url":"https://api.github.com/users/JosefPihrt/repos","events_url":"https://api.github.com/users/JosefPihrt/events{/privacy}","received_events_url":"https://api.github.com/users/JosefPihrt/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-15T16:43:13Z","updated_at":"2018-08-22T16:39:49Z","closed_at":"2018-08-22T16:39:49Z","author_association":"CONTRIBUTOR","body":"Clicking Ctrl+. on ```<string>``` causes RoslynatorCodeRefactoringProvider encountered an error and has been disabled.\r\n\r\n```csharp\r\nusing System.Linq;\r\n\r\nnamespace RoslynatorCodeRefactoringProvider\r\n{\r\n    public class Class\r\n    {\r\n        private static void Method()\r\n        {\r\n            new string[] { \"1\", \"2\", \"3\" }.ToList<string>();\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n```\r\nSystem.InvalidCastException : Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Syntax.PredefinedTypeSyntax' to type 'Microsoft.CodeAnalysis.CSharp.Syntax.SimpleNameSyntax'.\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitMemberAccessExpression(MemberAccessExpressionSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.MemberAccessExpressionSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitInvocationExpression(InvocationExpressionSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.InvocationExpressionSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitEqualsValueClause(EqualsValueClauseSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.EqualsValueClauseSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitVariableDeclarator(VariableDeclaratorSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SeparatedSyntaxList`1 list)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitVariableDeclaration(VariableDeclarationSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitLocalDeclarationStatement(LocalDeclarationStatementSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.LocalDeclarationStatementSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList`1 list)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitBlock(BlockSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitMethodDeclaration(MethodDeclarationSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.MethodDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList`1 list)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitClassDeclaration(ClassDeclarationSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList`1 list)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitNamespaceDeclaration(NamespaceDeclarationSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitListElement[TNode](TNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitList[TNode](SyntaxList`1 list)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.VisitCompilationUnit(CompilationUnitSyntax node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax.Accept[TResult](CSharpSyntaxVisitor`1 visitor)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxRewriter.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replacer`1.Visit(SyntaxNode node)\r\n   at Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxReplacer.Replace[TNode](SyntaxNode root,IEnumerable`1 nodes,Func`3 computeReplacementNode,IEnumerable`1 tokens,Func`3 computeReplacementToken,IEnumerable`1 trivia,Func`3 computeReplacementTrivia)\r\n   at Microsoft.CodeAnalysis.CSharp.CSharpSyntaxNode.ReplaceCore[TNode](IEnumerable`1 nodes,Func`3 computeReplacementNode,IEnumerable`1 tokens,Func`3 computeReplacementToken,IEnumerable`1 trivia,Func`3 computeReplacementTrivia)\r\n   at Microsoft.CodeAnalysis.SyntaxNodeExtensions.ReplaceNode[TRoot](TRoot root,SyntaxNode oldNode,SyntaxNode newNode)\r\n   at async Roslynator.WorkspaceExtensions.ReplaceNodeAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetChangedSolutionAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.CodeActions.CodeAction.ComputeOperationsAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetPreviewOperationsAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.GetPreviewResultAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedActionWithNestedFlavors.<>c__DisplayClass11_0.<GetPreviewAsync>b__0(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)\r\n```   "}}
{"actor":{"display_login":"JosefPihrt"}}