{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/12005","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/12005/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/12005/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/12005/events","html_url":"https://github.com/dotnet/roslyn/issues/12005","id":160257178,"number":12005,"title":"Using Roslyn for doing code modifications from a console app, gives sporadic exceptions","user":{"login":"mterwoord","id":114143,"avatar_url":"https://avatars.githubusercontent.com/u/114143?v=3","gravatar_id":"","url":"https://api.github.com/users/mterwoord","html_url":"https://github.com/mterwoord","followers_url":"https://api.github.com/users/mterwoord/followers","following_url":"https://api.github.com/users/mterwoord/following{/other_user}","gists_url":"https://api.github.com/users/mterwoord/gists{/gist_id}","starred_url":"https://api.github.com/users/mterwoord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mterwoord/subscriptions","organizations_url":"https://api.github.com/users/mterwoord/orgs","repos_url":"https://api.github.com/users/mterwoord/repos","events_url":"https://api.github.com/users/mterwoord/events{/privacy}","received_events_url":"https://api.github.com/users/mterwoord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-14T18:54:43Z","updated_at":"2016-06-16T16:44:25Z","closed_at":null,"body":"**Version Used**: \r\nNuget version 1.2.2\r\n\r\n**Steps to Reproduce**:\r\n\r\nThis is going to be complex. \r\n- Grab CosmosOS/Cosmos@d144745. This is the source code i'm running the console app on\r\n- Grab CosmosOS/RoslynRefactorings@5d0fc1b. This is the console app.\r\n\r\nThe console app assumes the cosmos repository is cloned at ```c:\\Data\\Sources\\OpenSource\\Cosmos```\r\nThis can be changed in Program.cs\r\n\r\n**Expected Behavior**:\r\nWhen running the console app, it's supposed to output a whole lot of dots to the console (meaning it succeeded modifying a single occurrence), and then exit because it's done. \r\n\r\n**Actual Behavior**:\r\nSporadically, I'm seeing the following error:\r\n\r\n```\r\nSystem.AggregateException: One or more errors occurred. ---> System.InvalidCastException: Kan een object van het type Microsoft.CodeAnalysis.Text.CompositeText niet converteren naar het type Microsoft.CodeAnalysis.Text.ChangedText.\r\n   at Microsoft.CodeAnalysis.Text.ChangedText.WithChanges(IEnumerable`1 changes)\r\n   at Microsoft.CodeAnalysis.Workspace.ApplyProjectChanges(ProjectChanges projectChanges)\r\n   at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.ApplyProjectChanges(ProjectChanges projectChanges)\r\n   at Microsoft.CodeAnalysis.Workspace.TryApplyChanges(Solution newSolution)\r\n   at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.TryApplyChanges(Solution newSolution)\r\n   at RoslynTest.Program.<DoMainAsync>d__5.MoveNext() in C:\\Data\\Sources\\OpenSource\\CosmosRoslynRefactorings\\RegistersToEnumRefactoring\\Program.cs:line 84\r\n   --- End of inner exception stack trace ---\r\n   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout)\r\n   at System.Threading.Tasks.Task.WaitAll(Task[] tasks)\r\n   at RoslynTest.Program.Main(String[] args) in C:\\Data\\Sources\\OpenSource\\CosmosRoslynRefactorings\\RegistersToEnumRefactoring\\Program.cs:line 33\r\n---> (Inner Exception #0) System.InvalidCastException: Kan een object van het type Microsoft.CodeAnalysis.Text.CompositeText niet converteren naar het type Microsoft.CodeAnalysis.Text.ChangedText.\r\n   at Microsoft.CodeAnalysis.Text.ChangedText.WithChanges(IEnumerable`1 changes)\r\n   at Microsoft.CodeAnalysis.Workspace.ApplyProjectChanges(ProjectChanges projectChanges)\r\n   at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.ApplyProjectChanges(ProjectChanges projectChanges)\r\n   at Microsoft.CodeAnalysis.Workspace.TryApplyChanges(Solution newSolution)\r\n   at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.TryApplyChanges(Solution newSolution)\r\n   at RoslynTest.Program.<DoMainAsync>d__5.MoveNext() in C:\\Data\\Sources\\OpenSource\\CosmosRoslynRefactorings\\RegistersToEnumRefactoring\\Program.cs:line 84<---```\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/226543436","html_url":"https://github.com/dotnet/roslyn/issues/12005#issuecomment-226543436","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/12005","id":226543436,"user":{"login":"Pilchie","id":312835,"avatar_url":"https://avatars.githubusercontent.com/u/312835?v=3","gravatar_id":"","url":"https://api.github.com/users/Pilchie","html_url":"https://github.com/Pilchie","followers_url":"https://api.github.com/users/Pilchie/followers","following_url":"https://api.github.com/users/Pilchie/following{/other_user}","gists_url":"https://api.github.com/users/Pilchie/gists{/gist_id}","starred_url":"https://api.github.com/users/Pilchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pilchie/subscriptions","organizations_url":"https://api.github.com/users/Pilchie/orgs","repos_url":"https://api.github.com/users/Pilchie/repos","events_url":"https://api.github.com/users/Pilchie/events{/privacy}","received_events_url":"https://api.github.com/users/Pilchie/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T16:44:25Z","updated_at":"2016-06-16T16:44:25Z","body":"Yes this looks like a duplicate of #10452 - @mattwar any update on that one?"}}
{"actor":{"display_login":"Pilchie"}}