question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rider and VS test runner - value cannot be null task in TestOutputMessage..ctor

See original GitHub issue

I took the latest since this fix (https://github.com/machine/machine.specifications/issues/432) and I get the this error in both VS and Rider:

2021.05.03 13:34:15.127   ERROR TestRunner: TestExecutionSink System.ArgumentNullException: Value cannot be null. Parameter name: task at JetBrains.ReSharper.TestRunner.Abstractions.Objects.TestOutputMessage..ctor(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Abstractions\Objects\Server\TestOutputMessage.cs:line 16 at JetBrains.ReSharper.TestRunner.Implementation.TestExecutionSink.TestOutput(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Merged\Implementation\UnitTestRemoteAgent.cs:line 261

--- EXCEPTION #1/1 [LoggerException]
Message = “
  TestRunner: TestExecutionSink  System.ArgumentNullException: Value cannot be null.
  Parameter name: task
     at JetBrains.ReSharper.TestRunner.Abstractions.Objects.TestOutputMessage..ctor(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Abstractions\Objects\Server\TestOutputMessage.cs:line 16
     at JetBrains.ReSharper.TestRunner.Implementation.TestExecutionSink.TestOutput(RemoteTask task, String text, TestOutputType outputType) in C:\BuildAgent\work\1b668fe37ef92293\ReSharperTestRunner\src\TestRunner.Merged\Implementation\UnitTestRemoteAgent.cs:line 261
”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.ILoggerEx.LogMessage(ILogger this, LoggingLevel level, String message)
     at JetBrains.ReSharper.UnitTestFramework.TestRunner.Handlers.TestRunnerAgentLoggingHandler.Execute(LogMessage message)
     at lambda_method(Closure , IAutoRegisterInProtocol )
     at JetBrains.ReSharper.UnitTestFramework.TestRunner.ServerEndpoint.<>c__DisplayClass9_2.<TryRegisterHandler>b__3()
     at System.Threading.Tasks.Task`1.InnerInvoke()
     at System.Threading.Tasks.Task.Execute()
     at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
     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.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
     at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
     at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
     at System.Threading.ThreadPoolWorkQueue.Dispatch()
     at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
”

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
robertcoltheartcommented, May 18, 2021

This is released as v2021.1.2. It may take up to 2 business days for Jetbrains to approve.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Value cannot be null. Parameter name: solution : RIDER-36432
Message = “Value cannot be null.” ExceptionPath = Root.InnerException ClassName = System.ArgumentNullException. Data.ThreadLocalDebugInfo = “Update project ...
Read more >
Value cannot be null in unit test - C# - Stack Overflow
The Logger is a dependency of your OrderController and you don't want to test its functionality within a unit test for your controller....
Read more >
Rider does not detect a value cannot be null with [return
Rider does not detect a value cannot be null with [return: NotNull] attribute on async methods.
Read more >
CRR Test Runner - Running tests results in 'Value cannot ...
CRR Test Runner - Running tests results in 'Value cannot be null' (Parameter name: testContainer) exception; no tests are ran.
Read more >
Azure Pipelines: Value cannot be null. Parameter name: key
After adding the below piece of code in azure-pipelines.yml I'm getting this error - "Value cannot be null. Parameter name: key". resources:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found