{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/2535","repository_url":"https://api.github.com/repos/Microsoft/PTVS","labels_url":"https://api.github.com/repos/Microsoft/PTVS/issues/2535/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/PTVS/issues/2535/comments","events_url":"https://api.github.com/repos/Microsoft/PTVS/issues/2535/events","html_url":"https://github.com/Microsoft/PTVS/issues/2535","id":228089406,"number":2535,"title":"Failed on opening .pyproj","user":{"login":"Baldstrom","id":9986091,"avatar_url":"https://avatars0.githubusercontent.com/u/9986091?v=3","gravatar_id":"","url":"https://api.github.com/users/Baldstrom","html_url":"https://github.com/Baldstrom","followers_url":"https://api.github.com/users/Baldstrom/followers","following_url":"https://api.github.com/users/Baldstrom/following{/other_user}","gists_url":"https://api.github.com/users/Baldstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Baldstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baldstrom/subscriptions","organizations_url":"https://api.github.com/users/Baldstrom/orgs","repos_url":"https://api.github.com/users/Baldstrom/repos","events_url":"https://api.github.com/users/Baldstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Baldstrom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-11T19:01:01Z","updated_at":"2017-05-12T21:09:25Z","closed_at":null,"body":"Attempted to open python project in VS2017 Preview and an error occurred. After the error, I can no longer open any project or try to close VS without seeing this:\r\n```\r\nExpected 1 export(s) with contract name \"Microsoft.Internal.VisualStudio.PlatformUI.SolutionAttachedCollectionService\" but found 0 after applying applicable constraints.\r\n```\r\nThis is the initial Error: \r\n(FYI System restart did not fix the issue, but opening up the Experimental Instance of VS2017 Preview did work)\r\n```\r\nBuild: 3.0.17114.1\r\n\r\nSystem.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name \"Microsoft.Internal.VisualStudio.PlatformUI.ISolutionAttachedCollectionService\" but found 0 after applying applicable constraints.\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T,TMetadataView](String contractName)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T](String contractName)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T]()\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExportedValue[T]()\r\n   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()\r\n   at Microsoft.Internal.VisualStudio.PlatformUI.PivotNavigatorServices.get_AttachedCollectionService()\r\n   at Microsoft.VisualStudio.PlatformUI.SolutionNavigatorPane.RefillNavigator()\r\n   at Microsoft.VisualStudio.PlatformUI.SolutionNavigatorPane.OnAfterInvalidateItems(Object sender, HierarchyItemEventArgs eventArgs)\r\n   at Microsoft.VisualStudio.PlatformUI.ExtensionMethods.RaiseEvent[TEventArgs](EventHandler`1 eventHandler, Object source, TEventArgs args)\r\n   at Microsoft.VisualStudio.PlatformUI.HierarchyEventSink.OnInvalidateItems(UInt32 itemidParent)\r\n   at Microsoft.VisualStudio.PlatformUI.HierarchyEventSink.<>c__DisplayClass31_0.<Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents.OnInvalidateItems>b__0()\r\n   at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke[TResult](Func`1 method)\r\n   at Microsoft.VisualStudio.PlatformUI.HierarchyEventSink.Microsoft.VisualStudio.Shell.Interop.IVsHierarchyEvents.OnInvalidateItems(UInt32 itemidParent)\r\n   at Microsoft.VisualStudioTools.Project.ProjectNode.OnInvalidateItems(HierarchyNode parent)\r\n   at Microsoft.PythonTools.Project.InterpretersNode.<>c__DisplayClass24_0.<RefreshPackagesAsync>b__0()\r\n   at System.Threading.Tasks.Task.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\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.PythonTools.Project.InterpretersNode.<RefreshPackagesAsync>d__24.MoveNext()\r\n   --- End of inner exception stack trace ---\r\n   at System.AggregateException.Handle(Func`2 predicate)\r\n   at Microsoft.PythonTools.Infrastructure.TaskExtensions.<>c__6`1.<SilenceException>b__6_0(Task t)\r\n   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()\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.PythonTools.Infrastructure.VSTaskExtensions.<HandleAllExceptions>d__5.MoveNext()\r\n---> (Inner Exception #0) Microsoft.VisualStudio.Composition.CompositionFailedException: Expected 1 export(s) with contract name \"Microsoft.Internal.VisualStudio.PlatformUI.ISolutionAttachedCollectionService\" but found 0 after applying applicable constraints.\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExports(ImportDefinition importDefinition)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExports[T,TMetadataView](String contractName, ImportCardinality cardinality)\r\n   at Microsoft.VisualStudio.Composition.ExportProvider.GetExport[T"},"comment":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/comments/301186651","html_url":"https://github.com/Microsoft/PTVS/issues/2535#issuecomment-301186651","issue_url":"https://api.github.com/repos/Microsoft/PTVS/issues/2535","id":301186651,"user":{"login":"Baldstrom","id":9986091,"avatar_url":"https://avatars0.githubusercontent.com/u/9986091?v=3","gravatar_id":"","url":"https://api.github.com/users/Baldstrom","html_url":"https://github.com/Baldstrom","followers_url":"https://api.github.com/users/Baldstrom/followers","following_url":"https://api.github.com/users/Baldstrom/following{/other_user}","gists_url":"https://api.github.com/users/Baldstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Baldstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baldstrom/subscriptions","organizations_url":"https://api.github.com/users/Baldstrom/orgs","repos_url":"https://api.github.com/users/Baldstrom/repos","events_url":"https://api.github.com/users/Baldstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Baldstrom/received_events","type":"User","site_admin":false},"created_at":"2017-05-12T21:09:25Z","updated_at":"2017-05-12T21:09:25Z","body":"So, before I deleted that folder, I opened up VS again just to see what was up, and I got this error message:\r\n\r\n![ptvs_error_editor_package](https://cloud.githubusercontent.com/assets/9986091/26016669/dc189b6c-371a-11e7-8f12-de5bb21bd823.png)\r\n\r\nThen I deleted the ComponentModelCache, which didn't work, so I deleted the MEF Cache Backup and the ComponentModelCache which also didn't fix the issue. However, I haven't had the above error since. Also what is weird is that I have not seen the very initial error since yesterday.\r\n\r\nBut it's still locked up with this message:\r\n\r\n```\r\nExpected 1 export(s) with contract name \"Microsoft.Internal.VisualStudio.PlatformUI.SolutionAttachedCollectionService\" but found 0 after applying applicable constraints.\r\n```\r\n\r\nLet me know if you have any other ideas or need any information, for now I am going to continue using the experimental instance.\r\n\r\nShould I update my VS preview to the latest build? It should not be very far behind, I  just installed it on Monday I believe."}}
{"actor":{"display_login":"Baldstrom"}}