{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/28846","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/28846/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/28846/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/28846/events","html_url":"https://github.com/dotnet/roslyn/issues/28846","id":344739911,"node_id":"MDU6SXNzdWUzNDQ3Mzk5MTE=","number":28846,"title":"Exception in ExtractMethodCodeRefactoringProvider: Matrix does not contain Key 'C6'","user":{"login":"bratukham","id":1413357,"node_id":"MDQ6VXNlcjE0MTMzNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1413357?v=4","gravatar_id":"","url":"https://api.github.com/users/bratukham","html_url":"https://github.com/bratukham","followers_url":"https://api.github.com/users/bratukham/followers","following_url":"https://api.github.com/users/bratukham/following{/other_user}","gists_url":"https://api.github.com/users/bratukham/gists{/gist_id}","starred_url":"https://api.github.com/users/bratukham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bratukham/subscriptions","organizations_url":"https://api.github.com/users/bratukham/orgs","repos_url":"https://api.github.com/users/bratukham/repos","events_url":"https://api.github.com/users/bratukham/events{/privacy}","received_events_url":"https://api.github.com/users/bratukham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T08:13:42Z","updated_at":"2018-07-26T08:13:42Z","closed_at":null,"author_association":"NONE","body":"**Version Used**:  Visual Studio Professional 2017 (v15.7.5)\r\n\r\nWhenever I select the following part of code:\r\n![image](https://user-images.githubusercontent.com/1413357/43249830-12fc41fa-90bc-11e8-9df3-3464dac3ab28.png)\r\n\r\nThe following exception is thrown:\r\n![image](https://user-images.githubusercontent.com/1413357/43249862-26fd0496-90bc-11e8-896d-19803e437c2e.png)\r\n\r\n```\r\nSystem.InvalidOperationException : Matrix does not contain Key 'C6'.\r\n   at Roslyn.Utilities.Contract.ThrowIfFalse(Boolean condition,String message)\r\n   at Microsoft.CodeAnalysis.ExtractMethod.ExtractMethodMatrix.GetVariableStyle(Boolean captured,Boolean dataFlowIn,Boolean dataFlowOut,Boolean alwaysAssigned,Boolean variableDeclared,Boolean readInside,Boolean writtenInside,Boolean readOutside,Boolean writtenOutside,Boolean unsafeAddressTaken)\r\n   at Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.Analyzer.GetVariableStyle(Dictionary`2 symbolMap,ISymbol symbol,SemanticModel model,ITypeSymbol type,Boolean captured,Boolean dataFlowIn,Boolean dataFlowOut,Boolean alwaysAssigned,Boolean variableDeclared,Boolean readInside,Boolean writtenInside,Boolean readOutside,Boolean writtenOutside,Boolean unsafeAddressTaken)\r\n   at Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.Analyzer.GenerateVariableInfoMap(SemanticModel model,DataFlowAnalysis dataFlowAnalysisData,Dictionary`2 symbolMap)\r\n   at async Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.Analyzer.AnalyzeAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.ExtractMethod.MethodExtractor.ExtractMethodAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.ExtractMethod.AbstractExtractMethodService`3.ExtractMethodAsync[TValidator,TExtractor,TResult](<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.CodeRefactorings.ExtractMethod.ExtractMethodCodeRefactoringProvider.GetCodeActionAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.CodeRefactorings.ExtractMethod.ExtractMethodCodeRefactoringProvider.ComputeRefactoringsAsync(<Unknown Parameters>)\r\n   at async Microsoft.CodeAnalysis.CodeRefactorings.CodeRefactoringService.GetRefactoringFromProviderAsync(<Unknown Parameters>)\r\n```\r\n\r\n**I've recorded the video showing the error in action. Please contact me to get this record.**"}}
{"actor":{"display_login":"bratukham"}}