Reporter | Lilia Shamsutdinova (Lilia.Shamsutdinova) |
---|---|
Created | Mar 23, 2018 4:12:31 PM |
Updated | Apr 19, 2018 5:29:48 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Critical |
State | Submitted |
Type | Bug |
Fix version | Backlog |
Affected versions | 2018.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
JetBrains ReSharper Ultimate 2018.1 EAP 4 D Build 12.0.20180322.125946-eap04d.
private void Test(List<dynamic> books)
{
var bookList = from book in books
select new { book.Author, book.Title };
}
- Invoke Refactor This -> Replace Anonymous type on
new
. - Set "TT" as Name. Click Next.
Actual Result:
Conflicts dialog occurred (see screenshot).
Expected result:
No conflicts or errors. Refactoring should complete successfully.
NOTE:
If on Conflicts dialog click Next then the following exceptions occure:
Object reference not set to an instance of an object.
--- EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = JetBrains.ReSharper.NewRefactorings
StackTraceString = “
at JetBrains.ReSharper.Refactorings.Anotype2DeclaredType.Search.AnotypeUsageSearchRequest.get_SearchTargets()
at JetBrains.ReSharper.Feature.Services.Navigation.Descriptors.SearchDescriptor..ctor(SearchRequest request, StructuredPresenter2 customPresenter) at JetBrains.ReSharper.Refactorings.Anotype2DeclaredType.Anonymous2DeclaredWorkflow.SuccessfulFinish(IProgressIndicator pi) at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.<ProcessTransactionResult>b__44_2(IProgressIndicator pi) at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper
1.ExecuteAction(IProgressIndicator pi)
”
--- Outer ---
--- EXCEPTION #2/2 [LoggerException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.LastExtension = cs
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 4 D Build 112.0.20180322.104208-eap04d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 4 D Build 2018.1.20180322.111944-eap04d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 4 D Build 2018.1.20180322.112018-eap04d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 4 D Build 2018.1.20180322.122542-eap04d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.1 EAP 4 D Build 2018.1.20180322.105304-eap04d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.1 EAP 4 D Build 2018.1.20180322.105258-eap04d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.1 EAP 4 D Build 2018.1.20180322.111934-eap04d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
git::refs/heads/wave12-rider-cpp-plugin::33498cc06d76e868977e6e4821c44fa592fbb32e
”
Data.VsVersion = 15.6.27428.2015
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.Feature.Services.Refactorings.FunctionWrapper1.ExecuteAction(IProgressIndicator pi) at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunStartTaskCallTaskAction(IProperty
1 isDone, ProgressIndicator progressIndicator, TaskThreadAffinity taskThreadAffinity, Action1 FTask, JetDispatcher dispatcherPrimary) at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.RunCore(TaskThreadAffinity taskThreadAffinity, Action
1 FTask, Func3 FAttachUi, ProgressIndicator progressIndicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState) at JetBrains.UI.SrcView.Progress.UITaskExecutorRun.Run(TaskThreadAffinity taskThreadAffinity, Action
1 task, Func3 FAttachUi, ProgressIndicator indicator, IWin32Window parentWindow, IThreading threading, WorkerThreadShop workerThreadShop, Boolean enforceModalityState) at JetBrains.PsiFeatures.UIInteractive.Refactorings.RefactoringsTaskExecutor.JetBrains.Application.Progress.ITaskExecutor.ExecuteTask(String name, TaskCancelable cancelable, Action
1 task)
at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.RunWithProgress[TResult](Func`2 action, String taskName, TResult& result)
at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.ProcessTransactionResult(TransactionCommitResult transactionResult)
at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.TryExecuteRefactoring()
at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.InitPage(IRefactoringPage page)
at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.NextPage(IRefactoringPage currentPage)
at JetBrains.ReSharper.Feature.Services.Refactorings.WorkflowExecuter.MoveToNextPage()
at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.<NextClick>b__18_0()
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action, TaskPriority priority)
at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.WorkflowHostWithWizardForm.NextClick(Object sender, EventArgs e)
at JetBrains.PsiFeatures.UIInteractive.Refactorings.CommonUI.RefactoringWizardForm.myContinueButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
”
The AnotypeUsageSearchDescriptor lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.
--- EXCEPTION #1/3 [InvalidOperationException]
Message = “The AnotypeUsageSearchDescriptor lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
--- Outer ---
--- EXCEPTION #2/3 [FinallyException]
Message = “The AnotypeUsageSearchDescriptor lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.”
ExceptionPath = Root.InnerException
ClassName = JetBrains.DataFlow.Disposable+FinallyException
Data.CreationStackTrace = “-=[ Stack trace logging disabled. ]=-”
Data.ObjectId = AnotypeUsageSearchDescriptor
InnerException = “Exception #1 at Root.InnerException.InnerException”
HResult = COR_E_APPLICATION=80131600
ObjectId = AnotypeUsageSearchDescriptor
CreationStackTrace = “-=[ Stack trace logging disabled. ]=-”
--- Outer ---
--- EXCEPTION #3/3 [LoggerException]
Message = “The AnotypeUsageSearchDescriptor lifetime has been emergency terminated on the finalizer thread upon being lost by its owner.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2018.1 EAP 4 D Build 112.0.20180322.104208-eap04d”
Data.SubProducts.#0 = “JetBrains dotCover 2018.1 EAP 4 D Build 2018.1.20180322.111944-eap04d”
Data.SubProducts.#1 = “JetBrains dotTrace 2018.1 EAP 4 D Build 2018.1.20180322.112018-eap04d”
Data.SubProducts.#2 = “JetBrains ReSharper C++ 2018.1 EAP 4 D Build 2018.1.20180322.122542-eap04d”
Data.SubProducts.#3 = “JetBrains TeamCity Add-in 2018.1 EAP 4 D Build 2018.1.20180322.105304-eap04d”
Data.SubProducts.#4 = “JetBrains ReSharper 2018.1 EAP 4 D Build 2018.1.20180322.105258-eap04d”
Data.SubProducts.#5 = “JetBrains dotMemory 2018.1 EAP 4 D Build 2018.1.20180322.111934-eap04d”
Data.SccRevisionEnv = “
Platform\Core\Shell,
Platform\VisualStudio:
git::refs/heads/wave12-rider-cpp-plugin::33498cc06d76e868977e6e4821c44fa592fbb32e
”
Data.VsVersion = 15.6.27428.2015
InnerException = “Exception #2 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.DataFlow.Disposable.FinallyException.LogMissedDispose(String id, String message, String sOriginatingStackTrace)
at JetBrains.DataFlow.Disposable.FinalizableDisposable.Finalize()
”