dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.12k stars 4.04k forks source link

Can't run/debug tests in the repo in VSCode #50218

Closed Youssef1313 closed 3 years ago

Youssef1313 commented 3 years ago

OmniSharp log:

Starting OmniSharp server at 1/3/2021, 12:16:13 PM
    Target: d:\dotnet\Roslyn\Roslyn.sln

OmniSharp server started.
    Path: c:\Users\Youssef\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.5\OmniSharp.exe
    PID: 14792

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Visual Studio Professional 2019 16.8.30717.126 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin"
            2: StandAlone 16.8.0 - "c:\Users\Youssef\.vscode\extensions\ms-dotnettools.csharp-1.23.8\.omnisharp\1.37.5\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Professional 2019 16.8.30717.126 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin"
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'd:\dotnet\Roslyn'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'd:\dotnet\Roslyn\Roslyn.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Deployment\RoslynDeployment.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Core\CodeAnalysisTest\Microsoft.CodeAnalysis.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Server\VBCSCompiler\VBCSCompiler.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Server\VBCSCompilerTests\VBCSCompiler.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\csc\csc.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Test\CommandLine\Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Test\Emit\Microsoft.CodeAnalysis.CSharp.Emit.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Test\IOperation\Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Test\Semantic\Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Test\Symbol\Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Test\Syntax\Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Test\Resources\Core\Microsoft.CodeAnalysis.Compiler.Test.Resources.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Test\Utilities\CSharp\Microsoft.CodeAnalysis.CSharp.Test.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Test\PdbUtilities\Roslyn.Test.PdbUtilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\Core\Portable\Microsoft.CodeAnalysis.Workspaces.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\Source\CompilerGeneratorTools\Source\BoundTreeGenerator\CompilersBoundTreeGenerator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\Source\CompilerGeneratorTools\Source\CSharpErrorFactsGenerator\CSharpErrorFactsGenerator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\Source\CompilerGeneratorTools\Source\CSharpSyntaxGenerator\CSharpSyntaxGenerator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: d:\dotnet\Roslyn\src\Deployment\RoslynDeployment.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\CoreTest\Microsoft.CodeAnalysis.Workspaces.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\CSharpTest\Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\Core\Desktop\Microsoft.CodeAnalysis.Workspaces.Desktop.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\Core\MSBuild\Microsoft.CodeAnalysis.Workspaces.MSBuild.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Workspaces.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\Source\RunTests\RunTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Features\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.Features.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Features\Core\Portable\Microsoft.CodeAnalysis.Features.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\Text\Microsoft.CodeAnalysis.EditorFeatures.Text.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\CSharp\Microsoft.CodeAnalysis.CSharp.EditorFeatures.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\Core\Microsoft.CodeAnalysis.EditorFeatures.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Scripting\Core\Microsoft.CodeAnalysis.Scripting.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Scripting\CoreTest\Microsoft.CodeAnalysis.Scripting.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Scripting\CSharp\Microsoft.CodeAnalysis.CSharp.Scripting.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Scripting\CSharpTest\Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Interactive\Host\Microsoft.CodeAnalysis.InteractiveHost.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\CSharpTest\Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\CSharpTest2\Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\Test\Microsoft.CodeAnalysis.EditorFeatures.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\TestUtilities\Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\CSharp.Wpf\Microsoft.CodeAnalysis.CSharp.EditorFeatures.Wpf.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Interactive\HostProcess\InteractiveHost32.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Interactive\HostTest\InteractiveHost.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Interactive\csi\csi.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\Core\Def\Microsoft.VisualStudio.LanguageServices.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\Core\Impl\Microsoft.VisualStudio.LanguageServices.Implementation.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\CSharp\Impl\Microsoft.VisualStudio.LanguageServices.CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\CSharp\Test\Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\Setup\Roslyn.VisualStudio.Setup.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\VisualStudioDiagnosticsToolWindow\Roslyn.VisualStudio.DiagnosticsWindow.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Package\ExpressionEvaluatorPackage.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\CSharp\Source\ExpressionCompiler\Microsoft.CodeAnalysis.CSharp.ExpressionCompiler.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\CSharp\Test\ExpressionCompiler\Microsoft.CodeAnalysis.CSharp.ExpressionCompiler.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\CSharp\Test\ResultProvider\Microsoft.CodeAnalysis.CSharp.ResultProvider.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Core\Source\ExpressionCompiler\Microsoft.CodeAnalysis.ExpressionCompiler.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Core\Test\ExpressionCompiler\Microsoft.CodeAnalysis.ExpressionCompiler.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Core\Test\ResultProvider\Microsoft.CodeAnalysis.ResultProvider.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\CSharp\Test\WinRT\Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Core\MSBuildTaskTests\Microsoft.Build.Tasks.CodeAnalysis.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\CSharp\Source\ResultProvider\NetFX20\CSharpResultProvider.NetFX20.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\CSharp\Source\ResultProvider\Portable\Microsoft.CodeAnalysis.CSharp.ResultProvider.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Core\Source\ResultProvider\NetFX20\ResultProvider.NetFX20.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Core\Source\ResultProvider\Portable\Microsoft.CodeAnalysis.ResultProvider.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\VisualBasic\vbc\vbc.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Scripting\CoreTest.Desktop\Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Scripting\CSharpTest.Desktop\Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Test\Diagnostics\Roslyn.Hosting.Diagnostics.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Extension\Roslyn.Compilers.Extension.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\IntegrationTest\TestSetup\Microsoft.VisualStudio.IntegrationTest.Setup.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\IntegrationTest\IntegrationTests\Microsoft.VisualStudio.LanguageServices.IntegrationTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\IntegrationTest\TestUtilities\Microsoft.VisualStudio.IntegrationTest.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Test\Perf\tests\Roslyn.PerformanceTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\Xaml\Impl\Microsoft.VisualStudio.LanguageServices.Xaml.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Test\Perf\Utilities\Roslyn.Test.Performance.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\Remote\Core\Microsoft.CodeAnalysis.Remote.Workspaces.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\Remote\ServiceHub\Microsoft.CodeAnalysis.Remote.ServiceHub.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Core\MSBuildTask\Microsoft.Build.Tasks.CodeAnalysis.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\Core\Test.Next\Roslyn.VisualStudio.Next.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\BuildBoss\BuildBoss.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Scripting\CoreTestUtilities\Microsoft.CodeAnalysis.Scripting.TestUtilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\CoreTestUtilities\Microsoft.CodeAnalysis.Workspaces.Test.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Core\Source\FunctionResolver\Microsoft.CodeAnalysis.FunctionResolver.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\ExpressionEvaluator\Core\Test\FunctionResolver\Microsoft.CodeAnalysis.FunctionResolver.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\Remote\Razor\Microsoft.CodeAnalysis.Remote.Razor.ServiceHub.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\Setup.Dependencies\Roslyn.VisualStudio.Setup.Dependencies.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Test\Perf\StackDepthTest\StackDepthTest.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\Core\Analyzers\Microsoft.CodeAnalysis.CodeStyle.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\Core\CodeFixes\Microsoft.CodeAnalysis.CodeStyle.Fixes.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\CSharp\Analyzers\Microsoft.CodeAnalysis.CSharp.CodeStyle.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\CSharp\CodeFixes\Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\CSharp\Tests\Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\RoslynPublish\RoslynPublish.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\Core.Wpf\Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\AnalyzerRunner\AnalyzerRunner.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Dependencies\CodeAnalysis.Debugging\Microsoft.CodeAnalysis.Debugging.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\MSBuildTest\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Interactive\HostProcess\InteractiveHost64.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\IntegrationTest\IntegrationService\Microsoft.VisualStudio.IntegrationTest.IntegrationService.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\Microsoft.Net.Compilers\Microsoft.Net.Compilers.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\Microsoft.NETCore.Compilers\Microsoft.NETCore.Compilers.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\Microsoft.CodeAnalysis.Compilers.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\Microsoft.CodeAnalysis.Scripting.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\Microsoft.CodeAnalysis.EditorFeatures.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\VisualStudio\VS.ExternalAPIs.Roslyn.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\VisualStudio\VS.Tools.Roslyn.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\Microsoft.CodeAnalysis.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Setup\DevDivVsix\CompilersPackage\Microsoft.CodeAnalysis.Compilers.Setup.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Setup\Installer\Installer.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\DesktopTest\Microsoft.CodeAnalysis.Workspaces.Desktop.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Setup\DevDivInsertionFiles\DevDivInsertionFiles.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\ExternalAccess\FSharp\Microsoft.CodeAnalysis.ExternalAccess.FSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\ExternalAccess\Razor\Microsoft.CodeAnalysis.ExternalAccess.Razor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\CodeLens\Microsoft.VisualStudio.LanguageServices.CodeLens.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\NuGet\Microsoft.Net.Compilers.Toolset\Microsoft.Net.Compilers.Toolset.Package.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Features\LanguageServer\Protocol\Microsoft.CodeAnalysis.LanguageServer.Protocol.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Features\LanguageServer\ProtocolUnitTests\Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\ExternalAccess\Debugger\Microsoft.CodeAnalysis.ExternalAccess.Debugger.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\ExternalAccess\Xamarin.Remote\Microsoft.CodeAnalysis.ExternalAccess.Xamarin.Remote.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Setup\DevDivVsix\ServiceHubConfig\Roslyn.VisualStudio.Setup.ServiceHub.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\ExternalAccess\FSharpTest\Microsoft.CodeAnalysis.ExternalAccess.FSharp.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\ExternalAccess\Apex\Microsoft.CodeAnalysis.ExternalAccess.Apex.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\LiveShare\Impl\Microsoft.VisualStudio.LanguageServices.LiveShare.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\VisualStudio\LiveShare\Test\Microsoft.VisualStudio.LanguageServices.LiveShare.UnitTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\IdeBenchmarks\IdeBenchmarks.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\Source\CompilerGeneratorTools\Source\IOperationGenerator\CompilersIOperationGenerator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Features\Lsif\Generator\Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\DiagnosticsTestUtilities\Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\Core\Tests\Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\IdeCoreBenchmarks\IdeCoreBenchmarks.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\BuildValidator\BuildValidator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\BuildActionTelemetryTable\BuildActionTelemetryTable.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Tools\PrepareTests\PrepareTests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\Core.Cocoa\Microsoft.CodeAnalysis.EditorFeatures.Cocoa.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Compilers\Test\Core\Microsoft.CodeAnalysis.Test.Utilities.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Workspaces\TestSourceGenerator\Microsoft.CodeAnalysis.TestSourceGenerator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\EditorFeatures\XunitHook\Microsoft.CodeAnalysis.XunitHook.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\CodeStyle\Tools\CodeStyleConfigFileGenerator.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dotnet\Roslyn\src\Dependencies\Collections\Microsoft.CodeAnalysis.Collections.Package.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'd:\dotnet\Roslyn'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Found 4 CSX files.
[info]: OmniSharp.Script.ScriptContextProvider
        Searching for compilation dependencies with the fallback framework of 'net461'.
[fail]: OmniSharp.Script.ScriptContextProvider
        Failed to resolve compilation dependencies
[info]: OmniSharp.Script.ScriptContextProvider
        Unable to find dependency context for CSX files. Will default to non-context usage (Desktop CLR scripts).
[info]: OmniSharp.Script.ScriptProjectSystem
        Added CSX project 'd:\dotnet\Roslyn\src\Compilers\Test\Resources\Core\MetadataTests\Invalid\Signatures\munge.csx' to the workspace.
[info]: OmniSharp.Script.ScriptProjectSystem
        Added CSX project 'd:\dotnet\Roslyn\src\Test\Perf\StackDepthTest\runner.csx' to the workspace.
[info]: OmniSharp.Script.ScriptProjectSystem
        Added CSX project 'd:\dotnet\Roslyn\src\Test\Perf\tests\csharp\csharp_compiler.csx' to the workspace.
[info]: OmniSharp.Script.ScriptProjectSystem
        Added CSX project 'd:\dotnet\Roslyn\src\Test\Perf\tests\helloworld\hello_world.csx' to the workspace.
[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.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'd:\dotnet\Roslyn' on host 2056.
[ERROR] Error: command 'omnisharp.runCodeAction' already exists

Trying to run a test gives the following error:

image


Trying to debug a test only shows Debugging test(s) in context ..... message without any further errors.

Restarting OmniSharp server doesn't help.


Note: IntelliSense is also not working for me.

Youssef1313 commented 3 years ago

Running a build task also fails for me:

> Executing task: powershell D:\dotnet\Roslyn/scripts/vscode-build.ps1 -filePath d:\dotnet\Roslyn\src\EditorFeatures\CSharpTest\Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs -msbuildEngine dotnet <

D:\dotnet\Roslyn/scripts/vscode-build.ps1 : File D:\dotnet\Roslyn\scripts\vscode-build.ps1 cannot be loaded. The file 
D:\dotnet\Roslyn\scripts\vscode-build.ps1 is not digitally signed. You cannot run this script on the current system. For more information 
about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.        
At line:1 char:1
+ D:\dotnet\Roslyn/scripts/vscode-build.ps1 -filePath d:\dotnet\Roslyn\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command powershell D:\dotnet\Roslyn/scripts/vscode-build.ps1 -filePath d:\dotnet\Roslyn\src\EditorFeatures\CSharpTest\Completion\CompletionProviders\DeclarationNameCompletionProviderTests.cs -msbuildEngine dotnet" terminated with exit code: 1.

The instructions here doesn't seem to state that there is something special I have to do to get it working.

huoyaoyuan commented 3 years ago

I won't expect OmniSharp to perform correct or effectively for complicated customized project. It once consumed 30GB of memory when opening runtime repo.

Youssef1313 commented 3 years ago

Instructions here would imply that VS Code will work correctly for Roslyn repo. I also remember that someone in Roslyn's team is using VS Code (either @333fred or @RikkiGibson - or might be both - can't remember correctly).


It once consumed 30GB of memory when opening runtime repo.

I don't even have this much of RAM :smile:

333fred commented 3 years ago

I haven't needed to do anything particularly special to get O# to work with roslyn. Have you done a .\restore and .\build yet? As to signing, that's a powershell config concept: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.1. You'll want set an execution scope of at least RemoteSigned (all downloaded files must be signed, local files do not need to be signed).

JoeRobich commented 3 years ago

@Youssef1313 Sorry you are running into issues. Typically, when we see [ERROR] Error: command 'omnisharp.runCodeAction' already exists that means there are multiple VS Code windows open where one may have upgraded to a different version of the extension. I would recommend closing all VS Code completely and reopening.

Youssef1313 commented 3 years ago

Have you done a .\restore and .\build yet

Yes I had done that.


You'll want set an execution scope of at least RemoteSigned (all downloaded files must be signed, local files do not need to be signed).

@333fred Thanks! That helps a lot.


@JoeRobich Thanks a lot. When I opened it that time it did a version update, I tried again and :hooray: the error is gone, and IntelliSense is working now.

Thanks again both @333fred and @JoeRobich