dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.86k stars 671 forks source link

`Failed to run test because System.ArgumentNullException` #4783

Open TanayParikh opened 3 years ago

TanayParikh commented 3 years ago

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 [info]: OmniSharp.Stdio.Host Starting OmniSharp on MacOS 11.6 (x64) [info]: OmniSharp.Services.DotNetCliService DotNetPath set to dotnet [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator 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" [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator 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' [info]: OmniSharp.MSBuild.Discovery.MSBuildLocator 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 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110 [info]: OmniSharp.WorkspaceInitializer Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140 [info]: OmniSharp.Cake.CakeProjectSystem Detecting Cake files in '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src'. [info]: OmniSharp.Cake.CakeProjectSystem Could not find any Cake files [info]: OmniSharp.MSBuild.ProjectSystem Skip loading projects listed in solution file or under target directory because MsBuild:LoadProjectsOnDemand is true. [info]: OmniSharp.Script.ScriptProjectSystem Detecting CSX files in '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src'. [info]: OmniSharp.Script.ScriptProjectSystem Could not find any CSX files [info]: OmniSharp.WorkspaceInitializer Configuration finished. [info]: OmniSharp.Stdio.Host Omnisharp server running using Stdio at location '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src' on host 10288. [info]: OmniSharp.MSBuild.ProjectManager Queue project update for '/Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.csproj' [info]: OmniSharp.MSBuild.ProjectManager Loading project: /Users/tanay/dev/aspNetcore/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Microsoft.AspNetCore.Razor.Language.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 :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 [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 :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 [fail]: OmniSharp.MSBuild.ProjectManager 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 :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 [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 :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 [fail]: OmniSharp.MSBuild.ProjectManager 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 :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 [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 :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 [fail]: OmniSharp.MSBuild.ProjectManager 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.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in :0 \\n at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in :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 :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 :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 :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 :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 :0 \\n at OmniSharp.DotNetTest.Services.RunTestsInContextService.Handle (OmniSharp.DotNetTest.Models.RunTestsInContextRequest request) [0x00057] in :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 :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|;
JoeRobich commented 3 years ago

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 
dagguh commented 2 years ago

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

agustindangelo commented 2 years ago

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

Acripop commented 2 years ago

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

jp311 commented 2 years ago

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"
}
IanElsinga commented 1 year ago

This is still happening in VSCode 1.78.2. C# extension 1.25.7.

Version: 1.78.2 (system setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No
[fail]: OmniSharp.Stdio.Host
        ************  Response (224.5732ms) ************ 
{
  "Request_seq": 133,
  "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.VSTestManager..ctor(Project project, String workingDirectory, IDotNetCliService dotNetCli, SemanticVersion dotNetCliVersion, IEventEmitter eventEmitter, ILoggerFactory loggerFactory) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.DotNetTest\\\\VSTestManager.cs:line 29\\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 76\\r\\n   at OmniSharp.DotNetTest.Services.RunTestsInContextService.Handle(RunTestsInContextRequest request) in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.DotNetTest\\\\Services\\\\RunTestsInContextService.cs:line 37\\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 200\\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 233\\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 142\\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": 726,
  "Type": "response"
}
JoeRobich commented 1 year ago

@IanElsinga Can you share a complete OmniSharp Log? The OP issue should have been resolved, so I am interested in what could be happening in your case.

Hunter27E commented 1 year ago

Hey @JoeRobich, I get the following error in the OmniSharp Log Output tab.

[warn]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 57375,
  "Command": "/project",
  "Arguments": {
    "FileName": "<path to test>"
  }
}
[fail]: OmniSharp.Stdio.Host
        ************  Response (1.8451ms) ************ 
{
  "Request_seq": 57375,
  "Command": "/project",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentNullException: Value cannot be null. (Parameter 'key')\\n   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)\\n   at OmniSharp.MSBuild.ProjectSystem.OmniSharp.Services.IProjectSystem.GetProjectModelAsync(String filePath) in /Users/runner/work/1/s/src/OmniSharp.MSBuild/ProjectSystem.cs:line 283\\n   at OmniSharp.ProjectInformationService.Handle(ProjectInformationRequest request) in /Users/runner/work/1/s/src/OmniSharp.Roslyn/ProjectInformationService.cs:line 29\\n   at OmniSharp.Endpoint.EndpointHandler`2.GetFirstNotEmptyResponseFromHandlers(ExportHandler`2[] handlers, TRequest request) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 217\\n   at OmniSharp.Endpoint.EndpointHandler`2.HandleRequestForLanguage(String language, TRequest request, RequestPacket packet) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 233\\n   at OmniSharp.Endpoint.EndpointHandler`2.Process(RequestPacket packet, LanguageModel model, JToken requestObject) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 142\\n   at OmniSharp.Stdio.Host.HandleRequest(String json, ILogger logger) in /Users/runner/work/1/s/src/OmniSharp.Stdio/Host.cs:line 258\"",
  "Body": null,
  "Seq": 618025,
  "Type": "response"
}
[warn]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 57376,
  "Command": "/v2/runtestsincontext",
  "Arguments": {
    "FileName": "<path to test>",
    "Line": 61,
    "Column": 0
  }
}
[fail]: OmniSharp.Stdio.Host
        ************  Response (193.9318ms) ************ 
{
  "Request_seq": 57376,
  "Command": "/v2/runtestsincontext",
  "Running": true,
  "Success": false,
  "Message": "\"System.ArgumentNullException: Value cannot be null. (Parameter 'workingDirectory')\\n   at OmniSharp.DotNetTest.TestManager..ctor(Project project, String workingDirectory, IDotNetCliService dotNetCli, SemanticVersion dotNetCliVersion, IEventEmitter eventEmitter, ILogger logger) in /Users/runner/work/1/s/src/OmniSharp.DotNetTest/TestManager.cs:line 45\\n   at OmniSharp.DotNetTest.VSTestManager..ctor(Project project, String workingDirectory, IDotNetCliService dotNetCli, SemanticVersion dotNetCliVersion, IEventEmitter eventEmitter, ILoggerFactory loggerFactory) in /Users/runner/work/1/s/src/OmniSharp.DotNetTest/VSTestManager.cs:line 29\\n   at OmniSharp.DotNetTest.TestManager.Create(Project project, IDotNetCliService dotNetCli, IEventEmitter eventEmitter, ILoggerFactory loggerFactory) in /Users/runner/work/1/s/src/OmniSharp.DotNetTest/TestManager.cs:line 76\\n   at OmniSharp.DotNetTest.Services.RunTestsInContextService.Handle(RunTestsInContextRequest request) in /Users/runner/work/1/s/src/OmniSharp.DotNetTest/Services/RunTestsInContextService.cs:line 37\\n   at OmniSharp.Endpoint.EndpointHandler`2.GetFirstNotEmptyResponseFromHandlers(ExportHandler`2[] handlers, TRequest request) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 217\\n   at OmniSharp.Endpoint.EndpointHandler`2.HandleRequestForLanguage(String language, TRequest request, RequestPacket packet) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 233\\n   at OmniSharp.Endpoint.EndpointHandler`2.Process(RequestPacket packet, LanguageModel model, JToken requestObject) in /Users/runner/work/1/s/src/OmniSharp.Host/Endpoint/EndpointHandler.cs:line 142\\n   at OmniSharp.Stdio.Host.HandleRequest(String json, ILogger logger) in /Users/runner/work/1/s/src/OmniSharp.Stdio/Host.cs:line 258\"",
  "Body": null,
  "Seq": 618028,
  "Type": "response"
}
Version: 1.78.2 (Universal)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:44:45.204Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.4.0
Sandboxed: No