omnisharp-roslyn: Unable to see completion or diagnostics in LSP mode

I’m running dotnet sdk and omnisharp-roslyn in a Debian 9 docker image using these setup instructions.

I see that the LSP initialization works without any failure and there are no errors in registration or loading the project files.

The only two notable issue that I see in the debug logs are:

{"id":6,"jsonrpc":"2.0","method":"client/registerCapability","params":{"registrations":[{"id":"7ccd926d-58c5-48f4-a391-bab5c4b8e77c","method":"textDocument/completion","registerOptions":{"triggerCharacters":["."],"resolveProvider":false,"documentSelector":[{"pattern":"**/*.cake"}]}}]}}
{"id":7,"jsonrpc":"2.0","method":"client/registerCapability","params":{"registrations":[{"id":"a1ebe762-8e30-4693-9da8-eed01faca910","method":"textDocument/completion","registerOptions":{"triggerCharacters":["."],"resolveProvider":false,"documentSelector":[{"pattern":"**/*.cs"},{"pattern":"**/*.csx"}]}}]}}

I’m neither seeing completion or diagnostics information for the project.

Global omnisharp json file at $HOME/.omnisharp/

{
  "MsBuild": {
    "MsBuildSDKsPath": "/opt/dotnet/sdk/2.2.300/Sdks",
    "UseLegacySdkResolver": true
  },
  "dotnet": {
    "enabled": true,
    "enablePackageRestore": true
  }
}

Solution.csproj

<Project>
  <Sdk Name="Microsoft.NET.Sdk" />
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.2</TargetFramework>
  </PropertyGroup>
</Project>

Versions: dotnet sdk: 2.2.300 omnisharp roslyn: 1.32.20 (latest) Language client: monaco-languageclient v0.9.0 monaco-editor: 0.14.3 Mono: Shipped with omnisharp-roslyn(1.32.20)

Attached debug log file of language server. omnisharp.log

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments