Replies: 1 comment 1 reply
-
|
It's hard to see exceptions in Rider and VS if they happen outside a test - Because they only really render errors in a test ouput window, which is obviously scoped to that test. That being said, we shouldn't be causing an Rpc exception either - I think the exception is bubbling all the way up, when instead it should be caught and we should "Complete" the MTP test session with "IsSuccess = false" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When running tests from TestExplorer in Rider and exception is thrown in [Before(TestSession)] method there is no Exception visible in logs. There is only JetBrains exception as below. Is it possible to see actual exception ?
`Last runner error: Exception of type 'JetBrains.JsonRpc.JsonRpcInternalErrorException' was thrown.
--- EXCEPTION #1/2 [JsonRpcInternalErrorException]
StackTraceString = “
at JetBrains.JsonRpc.JsonRpc.InvokeAsync[TResult](String method, IReadOnlyList
1 args, CancellationToken ct) in InvokeAsync.il:line IL_0268 mvid 4CB9 at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.ThrowIf[TResult,TException](Task1 task, Task signallingTask, Func1 exceptionFactory) in ThrowIf.il:line IL_0000 mvid 9DBA at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.CancelIf[TResult](Task1 task, CancellationToken ct) in CancelIf.il:line IL_0000 mvid 9DBAat JetBrains.ReSharper.UnitTesting.VsTest.Provider.TestingPlatform.TestingPlatformRunStrategy.Run(IUnitTestRun run) in Run.il:line IL_01A6 mvid 8028
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort) in StartCore.il:line IL_0000 mvid 9DBA or StartCore.il:line IL_01E7 mvid 9DBA
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.<>c.b__37_0(ExceptionDispatchInfo e) in UnitTestRun.il:line IL_0000 mvid 9DBA
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort) in StartCore.il:line IL_0000 mvid 9DBA or StartCore.il:line IL_01E7 mvid 9DBA
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.Start(CancellationToken onCancel, CancellationToken onAbort) in Start.il:line IL_0182 mvid 9DBA
”
ExceptionPath = Root.InnerException
ClassName = JetBrains.JsonRpc.JsonRpcInternalErrorException
HResult = COR_E_EXCEPTION=80131500
Source = System.Private.CoreLib
--- Outer ---
--- EXCEPTION #2/2 [LoggerException]
Message = “Exception of type 'JetBrains.JsonRpc.JsonRpcInternalErrorException' was thrown.”
InnerException = “Exception #1 at Root.InnerException”
StackTraceString = “
at JetBrains.Util.ILoggerEx.Error(ILogger logger, Exception exception, ExceptionOrigin origin, String comment) in Error.il:line IL_0000 mvid 594E
at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.Start(CancellationToken onCancel, CancellationToken onAbort) in Start.il:line IL_0182 mvid 9DBA
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid 5342at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext() in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid 5342
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.SetException(Exception exception, Task1& taskField) in SetException.il:line IL_0025 mvid 5342at JetBrains.ReSharper.UnitTestFramework.Execution.Launch.UnitTestRun.StartCore(CancellationToken onCancel, CancellationToken onAbort) in StartCore.il:line IL_0000 mvid 9DBA
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.ExecutionContextCallback(Object s) in ExecutionContextCallback.il:line IL_0000 mvid 5342at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext() in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid 5342
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.SetException(Exception exception, Task1& taskField) in SetException.il:line IL_0025 mvid 5342at JetBrains.ReSharper.UnitTesting.VsTest.Provider.TestingPlatform.TestingPlatformRunStrategy.Run(IUnitTestRun run) in Run.il:line IL_01A6 mvid 8028
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid 5342
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.SetException(Exception exception, Task1& taskField) in SetException.il:line IL_0025 mvid 5342at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.CancelIf[TResult](Task
1 task, CancellationToken ct) in CancelIf.il:line IL_0000 mvid 9DBA at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342 at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342 at System.Threading.Tasks.Task1.TrySetResult(TResult result) in TrySetResult.il:line IL_004B mvid 5342at System.Threading.Tasks.Task.TwoTaskWhenAnyPromise
1.Invoke(Task completingTask) in Invoke.il:line IL_0088 mvid 5342 at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342 at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid 5342 at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid 5342 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.SetException(Exception exception, Task1& taskField) in SetException.il:line IL_0025 mvid 5342 at JetBrains.ReSharper.UnitTestFramework.Common.Extensions.TaskExtensions.ThrowIf[TResult,TException](Task1 task, Task signallingTask, Func1 exceptionFactory) in ThrowIf.il:line IL_0000 mvid 9DBA at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342 at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342 at System.Threading.Tasks.Task1.TrySetResult(TResult result) in TrySetResult.il:line IL_004B mvid 5342at System.Threading.Tasks.Task.TwoTaskWhenAnyPromise
1.Invoke(Task completingTask) in Invoke.il:line IL_0088 mvid 5342 at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342 at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid 5342 at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid 5342 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.SetException(Exception exception, Task1& taskField) in SetException.il:line IL_0025 mvid 5342 at JetBrains.JsonRpc.JsonRpc.InvokeAsync[TResult](String method, IReadOnlyList1 args, CancellationToken ct) in InvokeAsync.il:line IL_0268 mvid 4CB9at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342
at System.Threading.Tasks.Task.FinishSlow(Boolean userDelegateExecute) in FinishSlow.il:line IL_0003 mvid 5342
at System.Threading.Tasks.Task.TrySetException(Object exceptionObject) in TrySetException.il:line IL_0022 mvid 5342
at JetBrains.JsonRpc.JsonRpc.HandleResponseAsync(JsonRpcResponse response) in HandleResponseAsync.il:line IL_0000 mvid 4CB9
at JetBrains.JsonRpc.JsonRpc.HandleMessage(JsonRpcMessage message) in HandleMessage.il:line IL_003B mvid 4CB9
at JetBrains.JsonRpc.JsonRpc.HandleMessagesAsync() in HandleMessagesAsync.il:line IL_00D1 mvid 4CB9
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342
at JetBrains.JsonRpc.HeaderDelimitedMessageTransport.ReadAsync(CancellationToken ct) in ReadAsync.il:line IL_0191 mvid 4CB9
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342
at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342
at System.IO.TextReader.ReadBlockAsyncInternal(Memory
1 buffer, CancellationToken cancellationToken) in ReadBlockAsyncInternal.il:line IL_00EE mvid 5342 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342 at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining) in RunOrScheduleAction.il:line IL_003B mvid 5342 at System.Threading.Tasks.Task.RunContinuations(Object continuationObject) in RunContinuations.il:line IL_0065 mvid 5342 or RunContinuations.il:line IL_0090 mvid 5342 at System.Threading.Tasks.Task1.TrySetResult(TResult result) in TrySetResult.il:line IL_004B mvid 5342at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.SetExistingTaskResult(Task1 task, TResult result) in SetExistingTaskResult.il:line IL_001D mvid 5342at System.IO.StreamReader.ReadAsyncInternal(Memory
1 buffer, CancellationToken cancellationToken) in ReadAsyncInternal.il:line IL_0520 mvid 5342 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in RunInternal.il:line IL_0040 mvid 5342 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread) in MoveNext.il:line IL_0000 mvid 5342 or MoveNext.il:line IL_003A mvid 5342 at System.Net.Sockets.SocketAsyncEventArgs.<>c.<.cctor>b__174_0(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped) in SocketAsyncEventArgs.il:line IL_0046 mvid 9433 at System.Threading.PortableThreadPool.IOCompletionPoller.Callback.Invoke(Event e) in Invoke.il:line IL_003A mvid 5342 at System.Threading.ThreadPoolTypedWorkItemQueue2.System.Threading.IThreadPoolWorkItem.Execute()at System.Threading.ThreadPoolWorkQueue.Dispatch() in Dispatch.il:line IL_019C mvid 5342
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in WorkerThreadStart.il:line IL_00A0 mvid 5342
”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
`
Beta Was this translation helpful? Give feedback.
All reactions