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.

`Failed to run test because System.ArgumentNullException`

See original GitHub issue

Issue Description

Failed to run test because "System.ArgumentNullException: Value cannot be null.\nParameter name: workingDirectory\n  at OmniSharp.DotNetTest.TestManager..ctor (Microsoft.CodeAnalysis.Project project, System.String workingDirectory, OmniSharp.Services.IDotNetCliService dotNetCli, NuGet.Versioning.SemanticVersion dotNetCliVersion, OmniSharp.Eventing.IEventEmitter eventEmitter, Microsoft.Extensions.Logging.ILogger logger) [0x0008d] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n  at OmniSharp.DotNetTest.VSTestManager..ctor (Microsoft.CodeAnalysis.Project project, System.String workingDirectory, OmniSharp.Services.IDotNetCliService dotNetCli, NuGet.Versioning.SemanticVersion dotNetCliVersion, OmniSharp.Eventing.IEventEmitter eventEmitter, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) [0x0000f] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n  at OmniSharp.DotNetTest.TestManager.Create (Microsoft.CodeAnalysis.Project project, OmniSharp.Services.IDotNetCliService dotNetCli, OmniSharp.Eventing.IEventEmitter eventEmitter, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) [0x00028] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n  at OmniSharp.DotNetTest.Services.RunTestsInContextService.Handle (OmniSharp.DotNetTest.Models.RunTestsInContextRequest request) [0x00057] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler`2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \n  at OmniSharp.Endpoint.EndpointHandler`2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \n  at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <efbf7d7d11c4474ca79736c53dc8decf>:0 ".

image

Logs

OmniSharp log

Starting OmniSharp server at 9/22/2021, 11:24:55 AM Target: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src

OmniSharp server started. Path: /Users/tanay/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.16-beta.12/run PID: 10370

    Starting OmniSharp on MacOS 11.6 (x64)
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: StandAlone 17.0.0 - "/Users/tanay/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.16-beta.12/omnisharp/.msbuild/Current/Bin"
    MSBUILD_EXE_PATH environment variable set to '/Users/tanay/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.16-beta.12/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
    Registered MSBuild instance: StandAlone 17.0.0 - "/Users/tanay/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.16-beta.12/omnisharp/.msbuild/Current/Bin"
        CscToolExe = csc.exe
        MSBuildToolsPath = /Users/tanay/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.16-beta.12/omnisharp/.msbuild/Current/Bin
        CscToolPath = /Users/tanay/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.16-beta.12/omnisharp/.msbuild/Current/Bin/Roslyn
        BypassFrameworkInstallChecks = true
        MSBuildExtensionsPath = /Users/tanay/.vscode/extensions/ms-dotnettools.csharp-1.23.15/.omnisharp/1.37.16-beta.12/omnisharp/.msbuild
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
    Detecting Cake files in '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src'.
    Could not find any Cake files
    Skip loading projects listed in solution file or under target directory because MsBuild:LoadProjectsOnDemand is true.
    Detecting CSX files in '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src'.
    Could not find any CSX files
    Configuration finished.
    Omnisharp server running using Stdio at location '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src' on host 10288.
    Queue project update for '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj'
    Loading project: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj
    The "ResolvePackageAssets" task failed unexpectedly.

System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(NuGet.Frameworks.NuGetFramework,string) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheWriter…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00050] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) [0x0003a] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00015] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () [0x00000] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () [0x00018] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <b4b09af6266d4115b1fc364f35036db6>:0 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc] in <b4b09af6266d4115b1fc364f35036db6>:0 [warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file ‘/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj’. /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj /Users/tanay/dev/aspnetcore/.dotnet/sdk/7.0.100-alpha.1.21463.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(246,5): Error: The “ResolvePackageAssets” task failed unexpectedly. System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(NuGet.Frameworks.NuGetFramework,string) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheWriter…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00050] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) [0x0003a] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00015] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () [0x00000] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () [0x00018] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <b4b09af6266d4115b1fc364f35036db6>:0 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc] in <b4b09af6266d4115b1fc364f35036db6>:0

    Attempted to update project that is not loaded: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj

Received response for /v2/getcodeactions but could not find request. Received response for /v2/codestructure but could not find request. info: OmniSharp.MSBuild.ProjectManager Queue project update for ‘/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj’ info: OmniSharp.MSBuild.ProjectManager Loading project: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj fail: OmniSharp.MSBuild.ProjectLoader The “ResolvePackageAssets” task failed unexpectedly. System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(NuGet.Frameworks.NuGetFramework,string) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheWriter…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00050] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) [0x0003a] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00015] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () [0x00000] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () [0x00018] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <b4b09af6266d4115b1fc364f35036db6>:0 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc] in <b4b09af6266d4115b1fc364f35036db6>:0 [warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file ‘/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj’. /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj /Users/tanay/dev/aspnetcore/.dotnet/sdk/7.0.100-alpha.1.21463.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(246,5): Error: The “ResolvePackageAssets” task failed unexpectedly. System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(NuGet.Frameworks.NuGetFramework,string) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheWriter…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00050] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) [0x0003a] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00015] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () [0x00000] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () [0x00018] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <b4b09af6266d4115b1fc364f35036db6>:0 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc] in <b4b09af6266d4115b1fc364f35036db6>:0

    Attempted to update project that is not loaded: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.Test.csproj

Received response for /v2/getcodeactions but could not find request. Received response for /v2/codestructure but could not find request. info: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs added to workspace Received response for /v2/codestructure but could not find request. Received response for /quickinfo but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs, Line: 154, Column: 32. Received response for /v2/codestructure but could not find request. info: OmniSharp.OmniSharpWorkspace Miscellaneous file: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentChildContentIntegrationTest.cs added to workspace Received response for /v2/codestructure but could not find request. info: OmniSharp.MSBuild.ProjectManager Queue project update for ‘/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj’ info: OmniSharp.MSBuild.ProjectManager Loading project: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj fail: OmniSharp.MSBuild.ProjectLoader The “ResolvePackageAssets” task failed unexpectedly. System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(NuGet.Frameworks.NuGetFramework,string) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheWriter…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00050] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) [0x0003a] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00015] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () [0x00000] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () [0x00018] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <b4b09af6266d4115b1fc364f35036db6>:0 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc] in <b4b09af6266d4115b1fc364f35036db6>:0 [warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file ‘/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj’. /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj /Users/tanay/dev/aspnetcore/.dotnet/sdk/7.0.100-alpha.1.21463.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(246,5): Error: The “ResolvePackageAssets” task failed unexpectedly. System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(NuGet.Frameworks.NuGetFramework,string) at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheWriter…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00050] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) [0x0003a] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader…ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00015] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () [0x00000] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () [0x00018] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in <adf06f59f16742e9aa16facb67f24e77>:0 at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <b4b09af6266d4115b1fc364f35036db6>:0 at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc] in <b4b09af6266d4115b1fc364f35036db6>:0

    Attempted to update project that is not loaded: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj

Received response for /v2/getcodeactions but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No document found. File: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ConsolidatedMvcViewDocumentClassifierPassTest.cs. Received response for /v2/codestructure but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs, Line: 156, Column: 7. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs, Line: 156, Column: 8. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs, Line: 156, Column: 26. Received response for /v2/getcodeactions but could not find request. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs, Line: 167, Column: 67. [warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService No symbol found. File: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs, Line: 167, Column: 70. Received response for /v2/getcodeactions but could not find request. [warn]: OmniSharp.Stdio.Host ************ Request ************ { “Type”: “request”, “Seq”: 817, “Command”: “/project”, “Arguments”: { “FileName”: “/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs” } } fail: OmniSharp.Stdio.Host ************ Response (15.9988ms) ************ { “Request_seq”: 817, “Command”: “/project”, “Running”: true, “Success”: false, “Message”: “"System.ArgumentNullException: Value cannot be null.\nParameter name: key\n at System.Collections.Generic.Dictionary2[TKey,TValue].FindEntry (TKey key) [0x00008] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 \\n at System.Collections.Generic.Dictionary2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <b18e5763ec3f41e68a8fe16d7f5e0bee>:0 \n at OmniSharp.MSBuild.ProjectFile.ProjectFileInfoCollection.TryGetValue (System.String filePath, OmniSharp.MSBuild.ProjectFile.ProjectFileInfo& fileInfo) [0x00000] in <8b70963e2a3d4d2cb43c57ff89ce343a>:0 \n at OmniSharp.MSBuild.ProjectManager.TryGetProject (System.String projectFilePath, OmniSharp.MSBuild.ProjectFile.ProjectFileInfo& projectFileInfo) [0x00000] in <8b70963e2a3d4d2cb43c57ff89ce343a>:0 \n at OmniSharp.MSBuild.ProjectSystem.OmniSharp.Services.IProjectSystem.GetProjectModelAsync (System.String filePath) [0x0009e] in <8b70963e2a3d4d2cb43c57ff89ce343a>:0 \n at OmniSharp.ProjectInformationService.Handle (OmniSharp.Models.ProjectInformation.ProjectInformationRequest request) [0x000d2] in <b9cc171cef86477e9e90422914e9102c>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <efbf7d7d11c4474ca79736c53dc8decf>:0 "”, “Body”: null, “Seq”: 3894, “Type”: “response” } [warn]: OmniSharp.Stdio.Host ************ Request ************ { “Type”: “request”, “Seq”: 818, “Command”: “/v2/runtestsincontext”, “Arguments”: { “FileName”: “/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs”, “Line”: 152, “Column”: 43 } } fail: OmniSharp.Stdio.Host ************ Response (194.0037ms) ************ { “Request_seq”: 818, “Command”: “/v2/runtestsincontext”, “Running”: true, “Success”: false, “Message”: “"System.ArgumentNullException: Value cannot be null.\nParameter name: workingDirectory\n at OmniSharp.DotNetTest.TestManager…ctor (Microsoft.CodeAnalysis.Project project, System.String workingDirectory, OmniSharp.Services.IDotNetCliService dotNetCli, NuGet.Versioning.SemanticVersion dotNetCliVersion, OmniSharp.Eventing.IEventEmitter eventEmitter, Microsoft.Extensions.Logging.ILogger logger) [0x0008d] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n at OmniSharp.DotNetTest.VSTestManager…ctor (Microsoft.CodeAnalysis.Project project, System.String workingDirectory, OmniSharp.Services.IDotNetCliService dotNetCli, NuGet.Versioning.SemanticVersion dotNetCliVersion, OmniSharp.Eventing.IEventEmitter eventEmitter, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) [0x0000f] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n at OmniSharp.DotNetTest.TestManager.Create (Microsoft.CodeAnalysis.Project project, OmniSharp.Services.IDotNetCliService dotNetCli, OmniSharp.Eventing.IEventEmitter eventEmitter, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) [0x00028] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n at OmniSharp.DotNetTest.Services.RunTestsInContextService.Handle (OmniSharp.DotNetTest.Models.RunTestsInContextRequest request) [0x00057] in <bc4817a07b694c1ca4a4a8d72e072609>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].GetFirstNotEmptyResponseFromHandlers (OmniSharp.Endpoint.Exports.ExportHandler2[TRequest,TResponse][] handlers, TRequest request) [0x00099] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].HandleRequestForLanguage (System.String language, TRequest request, OmniSharp.Protocol.RequestPacket packet) [0x00163] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \\n at OmniSharp.Endpoint.EndpointHandler2[TRequest,TResponse].Process (OmniSharp.Protocol.RequestPacket packet, OmniSharp.Endpoint.LanguageModel model, Newtonsoft.Json.Linq.JToken requestObject) [0x0024b] in <804b0cfa33bd4576a0d8c67e7f0a0186>:0 \n at OmniSharp.Stdio.Host.HandleRequest (System.String json, Microsoft.Extensions.Logging.ILogger logger) [0x000f3] in <efbf7d7d11c4474ca79736c53dc8decf>:0 "”, “Body”: null, “Seq”: 3897, “Type”: “response” } Received response for /quickinfo but could not find request.

C# log

Getting latest OmniSharp version information Downloading package 'Latest OmniSharp Version Information' (1 KB).................... Done!

Environment information

VSCode version: 1.60.1 C# Extension: 1.23.15

Mono Information OmniSharp using built-in mono
Dotnet Information

Host (useful for support): Version: 7.0.0-alpha.1.21472.1 Commit: 2d80343c0f

.NET SDKs installed: 6.0.100-preview.3.21160.5 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-preview.3.21168.19 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-preview.4.21216.8 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-preview.5.21264.3 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-preview.7.21324.2 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-preview.7.21356.3 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-preview.7.21364.4 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-rc.1.21401.2 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-rc.1.21415.3 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-rc.2.21424.34 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-rc.2.21430.28 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 6.0.100-rc.2.21457.23 [/Users/tanay/dev/aspnetcore/.dotnet/sdk] 7.0.100-alpha.1.21463.2 [/Users/tanay/dev/aspnetcore/.dotnet/sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.13 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.14 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-dev [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.3.21158.2 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.3.21168.5 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.4.21215.16 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.5.21263.4 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.7.21322.5 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.7.21355.4 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-preview.7.21363.16 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-rc.1.21381.3 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-rc.1.21413.12 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-rc.2.21420.26 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-rc.2.21430.13 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.0-rc.2.21455.6 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.0-alpha.1.21426.33 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.0-dev [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.25 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.27 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.13 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.14 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.3.21157.6 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.3.21166.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.3.21167.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.4.21201.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.4.21211.7 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.4.21215.2 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.4.21216.6 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.5.21263.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.6.21302.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.7.21321.15 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.7.21325.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.7.21351.2 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.7.21355.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.7.21360.10 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-preview.7.21363.9 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21372.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21372.4 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21374.7 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21375.2 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21376.24 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21378.2 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21378.9 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21401.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21401.3 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21405.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21414.4 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.1.21421.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.2.21423.6 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.2.21424.25 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.2.21430.13 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.2.21457.6 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.0-rc.2.21466.4 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.0-alpha.1.21419.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.0-alpha.1.21425.4 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.0-alpha.1.21430.29 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.0-alpha.1.21457.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.0-alpha.1.21472.1 [/Users/tanay/dev/aspnetcore/.dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
azure-account ms-vscode 0.9.8
blazorwasm-companion ms-dotnettools 1.1.0
csharp ms-dotnettools 1.23.15
EditorConfig EditorConfig 0.16.4
jupyter ms-toolsai 2021.8.2041215044
jupyter-keymap ms-toolsai 1.0.0
markdown-all-in-one yzhang 3.4.0
python ms-python 2021.9.1246542782
vscode-dotnet-runtime ms-dotnettools 1.2.0
vscode-icons vscode-icons-team 11.6.0
vscode-paste-image mushan 1.0.4
vscode-pylance ms-python 2021.9.2
vscode-typescript-tslint-plugin ms-vscode 1.3.3

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
JoeRobichcommented, Sep 22, 2021

This hopefully will be resolved next week when we update our build tools RC2. CC: @nohwnd

Failed to load project file '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj'.
/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj
/Users/tanay/dev/aspnetcore/.dotnet/sdk/7.0.100-alpha.1.21463.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(246,5): Error: The "ResolvePackageAssets" task failed unexpectedly.
System.MissingMethodException: Method not found: NuGet.ProjectModel.LockFileTarget NuGet.ProjectModel.LockFile.GetTarget(NuGet.Frameworks.NuGetFramework,string)
at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheWriter..ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00050] in :0
at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader.CreateReaderFromDisk (Microsoft.NET.Build.Tasks.ResolvePackageAssets task, System.Byte[] settingsHash) [0x0003a] in :0
at Microsoft.NET.Build.Tasks.ResolvePackageAssets+CacheReader..ctor (Microsoft.NET.Build.Tasks.ResolvePackageAssets task) [0x00015] in :0
at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups () [0x00000] in :0
at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore () [0x00018] in :0
at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in :0
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in :0
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc] in :0 
0reactions
jp311commented, Oct 17, 2022

Still happening in: VSCode: 1.72.2 (user setup), C# extension 1.25.0

vscode run at linux arm64, SSH Remoting Windows.

[fail]: OmniSharp.Stdio.Host
        ************  Response (97.6963ms) ************ 
{
  "Request_seq": 1238,
  "Command": "/v2/runtestsincontext",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentNullException: Value cannot be null. (Parameter 'workingDirectory')\\r\\n   at OmniSharp.DotNetTest.TestManager..ctor(Project project, String workingDirectory, IDotNetCliService dotNetCli, SemanticVersion dotNetCliVersion, IEventEmitter eventEmitter, ILogger logger) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.DotNetTest\\\\TestManager.cs:line 45\\r\\n   at OmniSharp.DotNetTest.TestManager.Create(Project project, IDotNetCliService dotNetCli, IEventEmitter eventEmitter, ILoggerFactory loggerFactory) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.DotNetTest\\\\TestManager.cs:line 70\\r\\n   at OmniSharp.DotNetTest.Services.RunTestsInContextService.Handle(RunTestsInContextRequest request) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.DotNetTest\\\\Services\\\\RunTestsInContextService.cs:line 29\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.GetFirstNotEmptyResponseFromHandlers(ExportHandler`2[] handlers, TRequest request) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 218\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.HandleRequestForLanguage(String language, TRequest request, RequestPacket packet) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 234\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.Process(RequestPacket packet, LanguageModel model, JToken requestObject) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 143\\r\\n   at OmniSharp.Stdio.Host.HandleRequest(String json, ILogger logger) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 258\"",
  "Body": null,
  "Seq": 1942,
  "Type": "response"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Value cannot be null in unit test - C# - Stack Overflow
I'm getting this error when I run the unit test: Error Message: System.ArgumentNullException : Value cannot be null.
Read more >
[CLOSED] unit tests fail for ArgumentNullException despite ...
Test Outcome: Failed ... System.ArgumentNullException: Value cannot be null. Parameter name: value ... But when I run the test, this case failed.
Read more >
ArgumentNullException Value cannot be null. Parameter name
I now get this message anytime I try to run (debug/release) a unit test. I've given up trying to get my complicated solutions...
Read more >
NUnit - <System.ArgumentNullException> But was : null - Reddit
I can see the debugger returns from the throw line inside the method so I know that the exception is thrown. But I...
Read more >
MSTest Unit Testing does not work (or fails with error) with ...
x (possibly, with Visual Studio 2012 Update 2):. "Inconclusive: test wasn't run" or "Pending" message for all tests · MSTest runner throws System.IO....
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