{"action":"closed","issue":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/780","labels_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/780/comments","events_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/issues/780/events","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/780","id":73140464,"number":780,"title":"SA1642SA1643CodeFixProvider fails (and crashes VS)","user":{"login":"AArnott","id":3548,"avatar_url":"https://avatars.githubusercontent.com/u/3548?v=3","gravatar_id":"","url":"https://api.github.com/users/AArnott","html_url":"https://github.com/AArnott","followers_url":"https://api.github.com/users/AArnott/followers","following_url":"https://api.github.com/users/AArnott/following{/other_user}","gists_url":"https://api.github.com/users/AArnott/gists{/gist_id}","starred_url":"https://api.github.com/users/AArnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AArnott/subscriptions","organizations_url":"https://api.github.com/users/AArnott/orgs","repos_url":"https://api.github.com/users/AArnott/repos","events_url":"https://api.github.com/users/AArnott/events{/privacy}","received_events_url":"https://api.github.com/users/AArnott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/labels/pull%20request","name":"pull request","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"sharwell","id":1408396,"avatar_url":"https://avatars.githubusercontent.com/u/1408396?v=3","gravatar_id":"","url":"https://api.github.com/users/sharwell","html_url":"https://github.com/sharwell","followers_url":"https://api.github.com/users/sharwell/followers","following_url":"https://api.github.com/users/sharwell/following{/other_user}","gists_url":"https://api.github.com/users/sharwell/gists{/gist_id}","starred_url":"https://api.github.com/users/sharwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharwell/subscriptions","organizations_url":"https://api.github.com/users/sharwell/orgs","repos_url":"https://api.github.com/users/sharwell/repos","events_url":"https://api.github.com/users/sharwell/events{/privacy}","received_events_url":"https://api.github.com/users/sharwell/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/milestones/8","html_url":"https://github.com/DotNetAnalyzers/StyleCopAnalyzers/milestones/1.0.0%20Alpha%207","labels_url":"https://api.github.com/repos/DotNetAnalyzers/StyleCopAnalyzers/milestones/8/labels","id":1093740,"number":8,"title":"1.0.0 Alpha 7","description":"","creator":{"login":"sharwell","id":1408396,"avatar_url":"https://avatars.githubusercontent.com/u/1408396?v=3","gravatar_id":"","url":"https://api.github.com/users/sharwell","html_url":"https://github.com/sharwell","followers_url":"https://api.github.com/users/sharwell/followers","following_url":"https://api.github.com/users/sharwell/following{/other_user}","gists_url":"https://api.github.com/users/sharwell/gists{/gist_id}","starred_url":"https://api.github.com/users/sharwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharwell/subscriptions","organizations_url":"https://api.github.com/users/sharwell/orgs","repos_url":"https://api.github.com/users/sharwell/repos","events_url":"https://api.github.com/users/sharwell/events{/privacy}","received_events_url":"https://api.github.com/users/sharwell/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":36,"state":"open","created_at":"2015-05-03T01:14:11Z","updated_at":"2015-05-11T05:07:28Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-04T22:05:33Z","updated_at":"2015-05-11T05:07:28Z","closed_at":"2015-05-11T05:07:28Z","body":"In a project with StyleCop.Analyzers.1.0.0-alpha005 installed, define this class:\r\n\r\n```csharp\r\n    internal abstract class CustomizableBlockSubscriberBase<TSource, TTarget, TSubscribedElement>\r\n        where TSource : class\r\n        where TTarget : class\r\n    {\r\n        /// <summary>\r\n        /// Initializes a new instance of the <see cref=\"ProjectBuildSnapshotService\"/> class.\r\n        /// </summary>\r\n        protected CustomizableBlockSubscriberBase()\r\n        {\r\n        }\r\n    }\r\n```\r\n\r\nPress Ctrl+. on the xml doc comment that gets a diagnostic for having a bad constructor message.\r\n\r\nVS crashes, after throwing the exception below. Note that I have filed no less than 3 bugs with VS since we shouldn't be crashing anyway (including dotnet/roslyn#2496 and 2 more internally) but we should of course get StyleCop.Analyzers itself fixed as well.\r\n\r\n> $exception\t{\"separatorToken\"}\tSystem.Exception {System.ArgumentException}\r\n    Microsoft.CodeAnalysis.dll!Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax>.ReplaceSeparator(Microsoft.CodeAnalysis.SyntaxToken separatorToken, Microsoft.CodeAnalysis.SyntaxToken newSeparator) Line 529\tC#\r\n    StyleCop.Analyzers!StyleCop.Analyzers.DocumentationRules.SA1642SA1643CodeFixProvider.ParameterToArgumentListSyntax(Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterListSyntax typeParameters)\tUnknown\r\n    StyleCop.Analyzers!StyleCop.Analyzers.DocumentationRules.SA1642SA1643CodeFixProvider.BuildStandardText(Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterListSyntax typeParameters, string preText, string postText)\tUnknown\r\n    StyleCop.Analyzers!StyleCop.Analyzers.DocumentationRules.SA1642SA1643CodeFixProvider.GetTransformedDocumentAsync(Microsoft.CodeAnalysis.Document document, Microsoft.CodeAnalysis.SyntaxNode root, Microsoft.CodeAnalysis.CSharp.Syntax.XmlElementSyntax node)\tUnknown\r\n    StyleCop.Analyzers!StyleCop.Analyzers.DocumentationRules.SA1642SA1643CodeFixProvider.RegisterCodeFixesAsync.AnonymousMethod__0(System.Threading.CancellationToken token)\tUnknown\r\n    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.CodeActions.CodeAction.DocumentChangeAction.GetChangedDocumentAsync(System.Threading.CancellationToken cancellationToken) Line 308\tC#\r\n    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.CodeActions.CodeAction.GetChangedSolutionAsync(System.Threading.CancellationToken cancellationToken) Line 111\tC#\r\n    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.CodeActions.CodeAction.ComputeOperationsAsync(System.Threading.CancellationToken cancellationToken) Line 87\tC#\r\n    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.CodeActions.CodeAction.ComputePreviewOperationsAsync(System.Threading.CancellationToken cancellationToken) Line 102\tC#\r\n    Microsoft.CodeAnalysis.Workspaces.dll!Microsoft.CodeAnalysis.CodeActions.CodeAction.GetPreviewOperationsAsync(System.Threading.CancellationToken cancellationToken) Line 72\tC#\r\n    Microsoft.CodeAnalysis.EditorFeatures.dll!Microsoft.CodeAnalysis.Editor.Implementation.Suggestions.SuggestedAction.GetPreviewOperationsAsync.AnonymousMethod__0()\tC#\r\n    mscorlib.dll!System.Threading.Tasks.Task<System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.CodeActions.CodeActionOperation>>>.InnerInvoke() Line 680\tC#\r\n    mscorlib.dll!System.Threading.Tasks.Task.Execute() Line 2498\tC#\r\n    mscorlib.dll!System.Threading.Tasks.Task.ExecutionContextCallback(object obj) Line 2861\tC#\r\n    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 954\tC#\r\n    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 902\tC#\r\n    mscorlib.dll!System.Threading.Tasks.Task.ExecuteWithThreadLocal(ref System.Threading.Tasks.Task currentTaskSlot) Line 2827\tC#\r\n    mscorlib.dll!System.Threading.Tasks.Task.ExecuteEntry(bool bPreventDoubleExecution) Line 2767\tC#\r\n    mscorlib.dll!System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() Line 2704\tC#\r\n    mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() Line 820\tC#\r\n    mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() Line 1161\tC#\r\n"}}