{"action":"closed","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/2700","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/2700/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/2700/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/2700/events","html_url":"https://github.com/dotnet/roslyn/issues/2700","id":75800786,"number":2700,"title":"VS2015 RC: IntelliSense randomly breaks, complaining about missing references","user":{"login":"Suchiman","id":7110884,"avatar_url":"https://avatars.githubusercontent.com/u/7110884?v=3","gravatar_id":"","url":"https://api.github.com/users/Suchiman","html_url":"https://github.com/Suchiman","followers_url":"https://api.github.com/users/Suchiman/followers","following_url":"https://api.github.com/users/Suchiman/following{/other_user}","gists_url":"https://api.github.com/users/Suchiman/gists{/gist_id}","starred_url":"https://api.github.com/users/Suchiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Suchiman/subscriptions","organizations_url":"https://api.github.com/users/Suchiman/orgs","repos_url":"https://api.github.com/users/Suchiman/repos","events_url":"https://api.github.com/users/Suchiman/events{/privacy}","received_events_url":"https://api.github.com/users/Suchiman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-IDE","name":"Area-IDE","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T01:18:18Z","updated_at":"2015-05-13T17:04:25Z","closed_at":"2015-05-13T17:04:25Z","body":"In VS 2015 RC (did also happen in CTP 6, not sure if it started in CTP 6 or in the previous one) IntelliSense breaks apparently randomly, telling me that i must add references to system assemblies. This doesn't seem to affect nuget packages or my own libraries. Compiling still works fine but i get a ton of:\r\n```\r\nError CS0012: The type \"Attribute\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"Dictionary<,>\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"Enum\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"Expression<>\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Linq.Expressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"HttpStatusCode\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Net.Primitives, Version=3.9.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"IDisposable\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"IEnumerable\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"IEnumerable<>\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"IOrderedEnumerable<>\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"MulticastDelegate\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"Object\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"Stream\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"Task<>\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS0012: The type \"Uri\" is defined in an assembly that is not referenced. You must add a reference to assembly \"System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". \r\nError CS1579: foreach statement cannot operate on variables of type \"System.Collections.Generic.Dictionary\" because \"System.Collections.Generic.Dictionary\" does not contain a public definition for 'GetEnumerator' \r\nError CS1579: foreach statement cannot operate on variables of type \"System.Collections.Generic.IEnumerable\" because \"System.Collections.Generic.IEnumerable\" does not contain a public definition for 'GetEnumerator' \r\nError CS1660: Cannot convert lambda expression to type 'TraceListener' because it is not a delegate type.\r\n```\r\nWhile i can't remember having gotten any error notification in CTP 6, VS 2015 RC told me that a plugin crashed, ActivityLog.xml shows:\r\n```\r\nSystem.IndexOutOfRangeException: Index was outside the bounds of the array.\r\n at Microsoft.CodeAnalysis.CSharp.CodeFixes.AddMissingReference.AddMissingReferenceCodeFixProvider.<RegisterCodeFixesAsync>d__3.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.<PerformActionAsync>d__2.MoveNext()\r\n```\r\nThe messagebox, accompanied by broken IntelliSense happened while i've switched a tab from XAML(WPF) to a CS file after VS spent some time being minimized.\r\nThe only way to restore IntelliSense is to restart VS, closing all tabs and reopening them doesn't help."}}