Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILURE: Could not locate Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll #3360

Closed
cjvirtucio87 opened this issue Oct 17, 2019 · 9 comments

Comments

@cjvirtucio87
Copy link

cjvirtucio87 commented Oct 17, 2019

Issue Description

Opening a C# project with omnisharp.logginglevel set to trace in the settings.json results in a bunch of errors, one of which is FAILURE: Could not locate Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll. Intellisense also does not work.

Steps to Reproduce

  1. Open a powershell instance as admin.
  2. Install dotnet-core 3.0 with chocolatey: choco install dotnetcore-sdk
  3. Install vscode with chocolatey: choco install vscode
  4. Open vscode on a project from a non-admin instance of powershell: cd /path/to/your/project; code ..
  5. Install the C# extension.

Expected Behavior

No errors regarding any missing .dlls; intellisense works.

Actual Behavior

Errors regarding missing .dlls; intellisense does not work.

Logs

Starting OmniSharp server at 10/17/2019, 4:19:11 PM
    Target: c:\Users\cvirtucio\git\caasd-as-domino\Asias.Etl.Domino.sln

OmniSharp server started.
    Path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\OmniSharp.exe
    PID: 6896

[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.Cake
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Cake, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.DotNetTest
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.DotNetTest, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.Host
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Host, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.MSBuild
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.MSBuild, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.Roslyn
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Roslyn, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.Roslyn.CSharp
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Roslyn.CSharp, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.Script
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Script, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: OmniSharp.Shared
[dbug]: OmniSharp.CompositionHostBuilder
        Loaded OmniSharp.Shared, Version=1.34.0.0, Culture=neutral, PublicKeyToken=null
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.razor\OmniSharpPlugin\Microsoft.AspNetCore.Razor.OmniSharpPlugin.dll
[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[dbug]: OmniSharp.MSBuild.Discovery.Providers.VisualStudioInstanceProvider
        An exception was thrown while retrieving Visual Studio instances.
System.DllNotFoundException: Unable to load DLL 'Microsoft.VisualStudio.Setup.Configuration.Native.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at OmniSharp.MSBuild.Discovery.Interop.GetSetupConfiguration(ISetupConfiguration& configuration, IntPtr reserved)
   at OmniSharp.MSBuild.Discovery.Interop.GetSetupConfiguration() in D:\a\1\s\src\OmniSharp.Host\MSBuild\Discovery\Interop.cs:line 25
   at OmniSharp.MSBuild.Discovery.Providers.VisualStudioInstanceProvider.GetInstances() in D:\a\1\s\src\OmniSharp.Host\MSBuild\Discovery\Providers\VisualStudioInstanceProvider.cs:line 28
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 16.0 - "c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin"
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Utilities.Core.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Tasks.Core.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Tasks.Core.dll' (name-only).
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.dll' (name-only).
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Framework.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Framework.dll' (name-only).
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\MSBuild.exe'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 16.0 - "c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin"
            CscToolExe = csc.exe
            CscToolPath = c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Roslyn
            MSBuildExtensionsPath = c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild
            MSBuildToolsPath = c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Utilities.Core.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Framework.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.Framework.dll' (name-only).
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: Microsoft.CodeAnalysis.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: Microsoft.CodeAnalysis.CSharp.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.CodeAnalysis.VisualBasic.Features.dll'.
[trce]: OmniSharp.HostServicesAggregator
        Successfully added Microsoft.CodeAnalysis.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 to host service assemblies.
[trce]: OmniSharp.HostServicesAggregator
        Successfully added Microsoft.CodeAnalysis.CSharp.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 to host service assemblies.
[trce]: OmniSharp.HostServicesAggregator
        Successfully added Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 to host service assemblies.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'SQLitePCLRaw.core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1488e028ca7ab535'
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\SQLitePCLRaw.core.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\SQLitePCLRaw.core.dll'
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'c:\Users\cvirtucio\git\caasd-as-domino'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build'
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.dll' (name-only).
[dbug]: OmniSharp.MSBuild.ProjectSystem
        MSBuild environment: 
Mode: Standalone
RunningTests: False
RunningInVisualStudio: False
MSBuildToolsDirectory32: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin
MSBuildToolsDirectory64: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin
MSBuildSDKsPath: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Sdks
CurrentMSBuildConfigurationFile: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\MSBuild.exe.config
CurrentMSBuildExePath: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\MSBuild.exe
CurrentMSBuildToolsDirectory: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin
VisualStudioInstallRootDirectory: 
MSBuildExtensionsPath: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin

[dbug]: OmniSharp.MSBuild.ProjectLoader
        'MSBuildExtensionsPath' set to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild'
[dbug]: OmniSharp.MSBuild.ProjectLoader
        'CscToolPath' set to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Roslyn'
[dbug]: OmniSharp.MSBuild.ProjectLoader
        'CscToolExe' set to 'csc.exe'
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in 'c:\Users\cvirtucio\git\caasd-as-domino\Asias.Etl.Domino.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.Cli\Asias.Etl.Domino.Cli.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test\Asias.Etl.Domino.Test.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test.Integration\Asias.Etl.Domino.Test.Integration.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.TdpMigration\Asias.Etl.Domino.TdpMigration.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'c:\Users\cvirtucio\git\caasd-as-domino'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.Cli\Asias.Etl.Domino.Cli.csproj
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded from path: c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.dll
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        SUCCESS: Resolved to 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.dll' (name-only).
[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.EditorConfigWorkspaceOptionsProvider, Order: 200
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'c:\Users\cvirtucio\git\caasd-as-domino' on host 1120.
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 1,
  "Command": "/projects"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 2,
  "Command": "/projects"
}
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.resources.dll'.
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.34.5\.msbuild\Current\Bin\Microsoft.Build.resources.dll'.
[fail]: OmniSharp.MSBuild.ProjectLoader
        Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.Cli\Asias.Etl.Domino.Cli.csproj'.
c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.Cli\Asias.Etl.Domino.Cli.csproj
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): Error: Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test\Asias.Etl.Domino.Test.csproj
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 3,
  "Command": "/filesChanged",
  "Arguments": [
    {
      "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\obj\\Debug\\netcoreapp3.0\\Asias.Etl.Domino.Cli.assets.cache",
      "changeType": "Change"
    }
  ]
}
[fail]: OmniSharp.MSBuild.ProjectLoader
        Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test\Asias.Etl.Domino.Test.csproj'.
c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test\Asias.Etl.Domino.Test.csproj
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): Error: Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test.Integration\Asias.Etl.Domino.Test.Integration.csproj
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 3,
  "Command": "/filesChanged",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {},
  "Seq": 89,
  "Type": "response"
}
[fail]: OmniSharp.MSBuild.ProjectLoader
        Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test.Integration\Asias.Etl.Domino.Test.Integration.csproj'.
c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test.Integration\Asias.Etl.Domino.Test.Integration.csproj
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): Error: Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.TdpMigration\Asias.Etl.Domino.TdpMigration.csproj
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 4,
  "Command": "/filesChanged",
  "Arguments": [
    {
      "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\test\\Asias.Etl.Domino.Test\\obj\\Debug\\netcoreapp3.0\\Asias.Etl.Domino.Test.assets.cache",
      "changeType": "Change"
    }
  ]
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 5,
  "Command": "/filesChanged",
  "Arguments": [
    {
      "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\test\\Asias.Etl.Domino.Test.Integration\\obj\\Debug\\netcoreapp3.0\\Asias.Etl.Domino.Test.Integration.assets.cache",
      "changeType": "Change"
    }
  ]
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 4,
  "Command": "/filesChanged",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {},
  "Seq": 101,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 5,
  "Command": "/filesChanged",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {},
  "Seq": 102,
  "Type": "response"
}
[fail]: OmniSharp.MSBuild.ProjectLoader
        Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.TdpMigration\Asias.Etl.Domino.TdpMigration.csproj'.
c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.TdpMigration\Asias.Etl.Domino.TdpMigration.csproj
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): Error: Package Microsoft.CodeQuality.Analyzers, version 2.6.2 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.Cli\Asias.Etl.Domino.Cli.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test\Asias.Etl.Domino.Test.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: c:\Users\cvirtucio\git\caasd-as-domino\test\Asias.Etl.Domino.Test.Integration\Asias.Etl.Domino.Test.Integration.csproj
[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: c:\Users\cvirtucio\git\caasd-as-domino\src\Asias.Etl.Domino.TdpMigration\Asias.Etl.Domino.TdpMigration.csproj
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 2,
  "Command": "/projects",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "MsBuild": {
      "SolutionPath": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\Asias.Etl.Domino.sln",
      "Projects": []
    },
    "Script": {
      "Projects": []
    }
  },
  "Seq": 79,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 1,
  "Command": "/projects",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "MsBuild": {
      "SolutionPath": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\Asias.Etl.Domino.sln",
      "Projects": []
    },
    "Script": {
      "Projects": []
    }
  },
  "Seq": 78,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 6,
  "Command": "/projects"
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 6,
  "Command": "/projects",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "MsBuild": {
      "SolutionPath": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\Asias.Etl.Domino.sln",
      "Projects": []
    },
    "Script": {
      "Projects": []
    }
  },
  "Seq": 115,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 7,
  "Command": "/v2/codestructure",
  "Arguments": {
    "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\Db\\GenerateDefinitions.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 8,
  "Command": "/v2/getcodeactions",
  "Arguments": {
    "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\Db\\GenerateDefinitions.cs",
    "Line": 17,
    "Column": 9
  }
}
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: Microsoft.CodeAnalysis.CSharp.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: Microsoft.CodeAnalysis.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: Microsoft.CodeAnalysis.Workspaces, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 7,
  "Command": "/v2/codestructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 118,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 9,
  "Command": "/v2/blockstructure",
  "Arguments": {
    "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\Db\\GenerateDefinitions.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 10,
  "Command": "/filesChanged",
  "Arguments": [
    {
      "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.TdpMigration\\obj\\Debug\\netstandard2.0\\Asias.Etl.Domino.TdpMigration.assets.cache",
      "changeType": "Change"
    }
  ]
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 10,
  "Command": "/filesChanged",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {},
  "Seq": 128,
  "Type": "response"
}
[trce]: OmniSharp.Services.AssemblyLoader
        Assembly loaded: Microsoft.CodeAnalysis.Features, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 9,
  "Command": "/v2/blockstructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 126,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 11,
  "Command": "/v2/codestructure",
  "Arguments": {
    "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\Db\\GenerateDefinitions.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 11,
  "Command": "/v2/codestructure",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": null,
  "Seq": 133,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 12,
  "Command": "/codecheck",
  "Arguments": {
    "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\Db\\GenerateDefinitions.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 8,
  "Command": "/v2/getcodeactions",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "CodeActions": []
  },
  "Seq": 120,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 12,
  "Command": "/codecheck",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "QuickFixes": []
  },
  "Seq": 136,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 13,
  "Command": "/codecheck",
  "Arguments": {
    "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\Db\\GenerateDefinitions.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 13,
  "Command": "/codecheck",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "QuickFixes": []
  },
  "Seq": 140,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 14,
  "Command": "/codecheck",
  "Arguments": {
    "FileName": null
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 14,
  "Command": "/codecheck",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "QuickFixes": []
  },
  "Seq": 143,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 15,
  "Command": "/filesChanged",
  "Arguments": [
    {
      "FileName": "c:\\Users\\cvirtucio\\AppData\\Roaming\\Code\\User\\settings.json",
      "changeType": "Change"
    }
  ]
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 15,
  "Command": "/filesChanged",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {},
  "Seq": 146,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 16,
  "Command": "/filesChanged",
  "Arguments": [
    {
      "FileName": "c:\\Users\\cvirtucio\\AppData\\Roaming\\Code\\User\\settings.json",
      "changeType": "Change"
    }
  ]
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 16,
  "Command": "/filesChanged",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {},
  "Seq": 149,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 17,
  "Command": "/codecheck",
  "Arguments": {
    "FileName": "c:\\Users\\cvirtucio\\git\\caasd-as-domino\\src\\Asias.Etl.Domino.Cli\\Db\\GenerateDefinitions.cs"
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 17,
  "Command": "/codecheck",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "QuickFixes": []
  },
  "Seq": 152,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 18,
  "Command": "/codecheck",
  "Arguments": {
    "FileName": null
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 18,
  "Command": "/codecheck",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "QuickFixes": []
  },
  "Seq": 155,
  "Type": "response"
}
[dbug]: OmniSharp.Stdio.Host
        ************ Request ************
{
  "Type": "request",
  "Seq": 19,
  "Command": "/codecheck",
  "Arguments": {
    "FileName": null
  }
}
[dbug]: OmniSharp.Stdio.Host
        ************  Response ************ 
{
  "Request_seq": 19,
  "Command": "/codecheck",
  "Running": true,
  "Success": true,
  "Message": null,
  "Body": {
    "QuickFixes": []
  },
  "Seq": 158,
  "Type": "response"
}

Environment information

VSCode version: 1.39.2
C# Extension: 1.21.5

Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.0.100 Commit: 04339c3a26

Runtime Environment:
OS Name: Windows
OS Version: 10.0.16299
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.0.100\

Host (useful for support):
Version: 3.0.0
Commit: 7d57652f33

.NET Core SDKs installed:
3.0.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

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

Visual Studio Code Extensions
Extension Author Version
csharp ms-vscode 1.21.5
python ms-python 2019.10.41019
remote-wsl ms-vscode-remote 0.39.9
vim vscodevim 1.11.2
@cjvirtucio87
Copy link
Author

cjvirtucio87 commented Oct 17, 2019

Attempted the solution mentioned here. Still doesn't work:

[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        FAILURE: Could not locate 'c:\Users\cvirtucio\.vscode\extensions\ms-vscode.csharp-1.21.5\.omnisharp\1.32.19-beta.25\

I do have a new exception at the end, though:

System.InvalidCastException: Specified cast is not valid.
   at Roslyn.Utilities.EventMap.GetRegistries_NoLock[TEventHandler](String eventName)
   at Roslyn.Utilities.EventMap.AddEventHandler[TEventHandler](String eventName, TEventHandler eventHandler)
   at lambda_method(Closure , LifetimeContext , CompositionOperation )
   at System.Composition.Hosting.Core.LifetimeContext.GetOrCreate(Int32 sharingId, CompositionOperation operation, CompositeActivator creator)
   at System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider.<>c__DisplayClass3_2`1.<GetImportManyDescriptor>b__4(ExportDescriptor e)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at lambda_method(Closure , LifetimeContext , CompositionOperation )
   at System.Composition.Hosting.Core.LifetimeContext.GetOrCreate(Int32 sharingId, CompositionOperation operation, CompositeActivator creator)
   at System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider.<>c__DisplayClass3_2`1.<GetImportManyDescriptor>b__4(ExportDescriptor e)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at System.Composition.Hosting.Core.CompositionOperation.Run(LifetimeContext outermostLifetimeContext, CompositeActivator compositionRootActivator)
   at System.Composition.Hosting.Core.LifetimeContext.TryGetExport(CompositionContract contract, Object& export)
   at System.Composition.CompositionContext.GetExport(CompositionContract contract)
   at System.Composition.CompositionContext.GetExports(Type exportType, String contractName)
   at System.Composition.CompositionContext.GetExports[TExport](String contractName)
   at OmniSharp.Stdio.Host.Initialize() in D:\a\1\s\src\OmniSharp.Stdio\Host.cs:line 57
   at OmniSharp.Stdio.Host..ctor(TextReader input, ISharedTextWriter writer, IOmniSharpEnvironment environment, IServiceProvider serviceProvider, CompositionHostBuilder compositionHostBuilder, ILoggerFactory loggerFactory, CancellationTokenSource cancellationTokenSource) in D:\a\1\s\src\OmniSharp.Stdio\Host.cs:line 51
   at OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_1.<Main>b__1() in D:\a\1\s\src\OmniSharp.Stdio.Driver\Program.cs:line 66
   at OmniSharp.HostHelpers.Start(Func`1 action) in D:\a\1\s\src\OmniSharp.Host\HostHelpers.cs:line 29
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

This suggestion to add latest to omnisharp.path didn't work either.

@nicbarker
Copy link

Same thing happening here.

@snovak7
Copy link

snovak7 commented Nov 7, 2019

Well, if you know the location of the dll, you can point them to the right direction with omnisharp.json in Home directory ~/.omnisharp/omnisharp.json

$ cat omnisharp.json
{
  "RoslynExtensionOptions": {
    "EnableAnalyzersSupport": true,
    "LocationPaths": [
      "/Users/snovak7/.nuget/packages/stylecop.analyzers/1.1.118/analyzers/dotnet/cs/"
    ]
  }
}

I know this is manual work, but I don't know if they managed to work on how to automatically include all the locations of included packages, and all it's tree yet.

I also used these settings, but I don't know if they've helped.

  "omnisharp.path": "latest",
  "omnisharp.loggingLevel": "trace",
  "omnisharp.enableRoslynAnalyzers": true,

@nicbarker
Copy link

nicbarker commented Nov 7, 2019

Hey @snovak7, thanks for the reply.

Well, if you know the location of the dll

Unfortunately from some grepping, it seems like Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll isn't installed on my machine - it's like it's missing from the dot net install.

Edit: I'm on a Mac (Catalina) BTW.

@snovak7
Copy link

snovak7 commented Nov 7, 2019

I am also on Catalina, if I try to locate it I get it at few locations

$ locate  Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/AddIns/MonoDevelop.AzureFunctions/azure-functions-cli/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
/Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
/Users/snovak7/.dotnet/tools/.store/dotnet-format/3.0.4/dotnet-format/3.0.4/tools/netcoreapp2.1/any/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
/Users/snovak7/.vscode/extensions/ms-vscode.csharp-1.21.5/.razor/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
/Users/snovak7/.vscode/extensions/ms-vscode.csharp-1.21.5/.razor/OmniSharpPlugin/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll

They come as part of some package as it seems.

You can also get it via NuGet: https://www.nuget.org/packages/Microsoft.CodeAnalysis.VisualBasic.Workspaces/

@nicbarker
Copy link

Awesome, thank you! I'll try it and get back to you.

@cartermp
Copy link

Hey folks, have you all still seen this with the latest version of the plugin and .NET Core 3.1? Tried to reproduce, but couldn't see anything about failing to load this .dll or others. Thanks!

@nicbarker
Copy link

Ah forgot to post back here, it seems to have fixed itself a while back for me, possibly because of the update. Thanks! 🙂

@cartermp
Copy link

Thanks for confirming @nicbarker . I'll close this one out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants