Reporter | ReSharper anonymous (resharper) |
---|---|
Created | Mar 15, 2012 11:58:33 PM |
Updated | Mar 16, 2012 12:01:10 AM |
Resolved | Mar 16, 2012 12:01:09 AM |
Priority | Normal |
Type | Exception |
Fix versions | No Fix versions |
State | Duplicate |
Assignee | Kirill Skrygan (kirillskrygan) |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
ReSharper 7 EAP for Visual Studio 11 Beta Version=7.0.2.101, Built=2012-03-15T00:06:38, Configuration=“Csharp PublicMode Vbnet VS1100”
An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.
--- EXCEPTION #1/2 [InvalidCastException]
Message = “Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidCastException
HResult = COR_E_INVALIDCAST=E_NOINTERFACE=80004002
Source = JetBrains.ReSharper.Psi
StackTraceString = “
”
--- Outer —
--- EXCEPTION #2/2 [LoggerException]
Message = “An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.LastExtension = cs
Data.PlatformSccRevision = CompiledWithoutBuildServer
Data.ProductSccRevision = CompiledWithoutBuildServer
Data.VsVersion = 11.0.50214.1
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
”
An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.
--- EXCEPTION #1/2 [InvalidCastException]
Message = “Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidCastException
HResult = COR_E_INVALIDCAST=E_NOINTERFACE=80004002
Source = JetBrains.ReSharper.Psi
StackTraceString = “
at JetBrains.ReSharper.Psi.ExtensionsAPI.SharedImplUtil.CalcAccessibilityDomain(ITypeMember member, AccessRights accessRights) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\ExtensionsAPI\SharedImplUtil.cs:line 30 at JetBrains.ReSharper.Psi.Impl.Special.DefaultConstructor.get_AccessibilityDomain() in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\special\DefaultConstructor.cs:line 175 at JetBrains.ReSharper.Psi.Impl.Search.CLRDeclaredElementSearcherFactory.GetTypeMemberOwnSearchDomain(ITypeMember typeMember) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\search\CLRDeclaredElementSearcherFactory.cs:line 239 at JetBrains.ReSharper.Psi.Impl.Search.CLRDeclaredElementSearcherFactory.GetTypeMemberSearchDomain(ITypeMember member) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\search\CLRDeclaredElementSearcherFactory.cs:line 268 at JetBrains.ReSharper.Psi.Impl.Search.CLRDeclaredElementSearcherFactory.GetDeclaredElementSearchDomain(IDeclaredElement declaredElement) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\search\CLRDeclaredElementSearcherFactory.cs:line 327 at JetBrains.ReSharper.Psi.Search.DeclaredElementSearchExtensions.<>c__DisplayClass1.<GetSearchDomain>b__0(IDomainSpecificSearcherFactory x) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\Search\DeclaredElementSearchExtensions.cs:line 27 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func) at JetBrains.ReSharper.Psi.Search.SearchDomainExtensions.UnionSearchDomains(IEnumerable`1 domains) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\Search\SearchDomainExtensions.cs:line 35 at JetBrains.ReSharper.Psi.Search.DeclaredElementSearchExtensions.GetSearchDomain(IDeclaredElement declaredElement) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\Search\DeclaredElementSearchExtensions.cs:line 26 at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.ContextSearchBase`1.<HasSearchableCandidates>b__0(IDeclaredElement element) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Navigation\src\ContextNavigation\ContextSearches\BaseSearches\ContextSearchBase.cs:line 50 at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.ContextSearchBase`1.HasSearchableCandidates(IDataContext context) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Navigation\src\ContextNavigation\ContextSearches\BaseSearches\ContextSearchBase.cs:line 50 at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.UsagesContextSearchBase.IsAvailableInternal(IDataContext context) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Navigation\src\ContextNavigation\ContextSearches\BaseSearches\UsagesContextSearchBase.cs:line 68 at JetBrains.ReSharper.Feature.Services.ContextNavigation.ContextSearches.BaseSearches.ContextSearchBase`1.IsAvailable(IDataContext context) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Navigation\src\ContextNavigation\ContextSearches\BaseSearches\ContextSearchBase.cs:line 23 at JetBrains.ReSharper.Features.Finding.NavigateFromHere.ContextNavigationLanguageUtil.<>c__DisplayClass2`1.<GetAvailableContextSearches>b__1(TContextSearch x) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Features\Finding\src\NavigateFromHere\ContextNavigationLanguageUtil.cs:line 28 at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source) at JetBrains.ReSharper.Features.Finding.NavigateFromHere.ContextSearchesCollector`1.GetSearchesExecution(IDataContext dataContext, INavigationExecutionHost host) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Features\Finding\src\NavigateFromHere\ContextSearchesCollector.cs:line 27 at JetBrains.ReSharper.Features.Finding.Usages.FindUsagesProvider.<CreateWorkflow>d__0.MoveNext() in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Features\Finding\src\Usages\FindUsagesProvider.cs:line 25 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at JetBrains.ReSharper.Feature.Services.ActionsMenu.ExtensibleAction`3.GetWorkflowListToExecute(IDataContext dataContext) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Navigation\src\ActionsMenu\ExtensibleAction.cs:line 95 at JetBrains.ReSharper.Feature.Services.ActionsMenu.ExtensibleAction`3.Update(IDataContext context, ActionPresentation presentation, DelegateUpdate nextUpdate) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Navigation\src\ActionsMenu\ExtensibleAction.cs:line 39 at JetBrains.ActionManagement.UpdatableAction.Update(IDataContext context) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\UI\src\ActionSystem\Action\UpdatableAction.cs:line 88
--- Outer —
--- EXCEPTION #2/2 [LoggerException]
Message = “An exception has occurred during action 'FindUsages' update Unable to cast object of type 'TypeParameter' to type 'JetBrains.ReSharper.Psi.ITypeMember'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.LastExtension = cs
Data.PlatformSccRevision = CompiledWithoutBuildServer
Data.ProductSccRevision = CompiledWithoutBuildServer
Data.VsVersion = 11.0.50214.1
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ActionManagement.ActionManager.<>c__DisplayClass9.<UpdateAction>b__8(Lifetime lifetime) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\UI\src\ActionSystem\ActionManager\ActionManager.cs:line 196 at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 F) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\DataFlow\Lifetime\Lifetimes.cs:line 41 at JetBrains.ActionManagement.ActionManager.UpdateAction(IUpdatableAction action, IDataContext dataContext) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\UI\src\ActionSystem\ActionManager\ActionManager.cs:line 196 at JetBrains.VsIntegration.ActionManagement.VsActionManager.UpdateAction(IUpdatableAction action, IDataContext dataContext) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\ActionManagement\VSActionManager.cs:line 1363 at JetBrains.VsIntegration.ActionManagement.VsActionManager.OleCommandTargetQueryStatus_Overridden(CommandID commandid, OLECMDTEXT* pOleText) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\ActionManagement\VSActionManager.cs:line 924 at JetBrains.VsIntegration.ActionManagement.VsActionManager.<>c__DisplayClass28.<OleCommandTargetQueryStatus>b__27() in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\ActionManagement\VSActionManager.cs:line 421 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 266 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 415 at JetBrains.VsIntegration.ActionManagement.VsActionManager.OleCommandTargetQueryStatus(Guid guidCmdSet, OLECMD[] olecmds, OLECMDTEXT* pOleText, VsCommandHandlerStage stage) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\ActionManagement\VSActionManager.cs:line 402 at JetBrains.VsIntegration.ActionManagement.VsActionManagerPriorityCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.QueryStatus(Guid& pguidCmdGroup, UInt32 cCmds, OLECMD[] prgCmds, IntPtr pCmdText) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\ActionManagement\VsActionManagerPriorityCommandTarget.cs:line 71 at Microsoft.VisualStudio.Shell.Interop.IVsUIShell.ShowContextMenu(UInt32 dwCompRole, Guid& rclsidActive, Int32 nMenuId, POINTS[] pos, IOleCommandTarget pCmdTrgtActive) at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.ShowContextMenu(IntPtr location, Int32& result) at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.Undo.UndoManagerCommandFilter.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.IntellisenseCommandFilter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass9.<ExecOldCommandTarget>b__7() in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 189 at JetBrains.DocumentModel.Impl.DocumentBase.ExpectCallbacksFromUnderlyingStore(Action F) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Documents\src\impl\DocumentBase.cs:line 94 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.ExecOldCommandTarget(CommandID commandid, IntPtr pvaIn, UInt32 nCmdexecopt, IntPtr pvaOut) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 182 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 419 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.DisplayContextMenu(Point mousePosition) at Microsoft.VisualStudio.Editor.Implementation.VsMouseProcessor.PreprocessMouseRightButtonUp(MouseButtonEventArgs e) at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.<>c__DisplayClass4b.<UIElement_MouseRightButtonUp>b__46() at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call) at Microsoft.VisualStudio.Text.Utilities.WpfMouseProcessor.UIElement_MouseRightButtonUp(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted) at System.Windows.Input.InputManager.ProcessStagingArea() at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)