profile
viewpoint
OmniSharp OmniSharp http://www.omnisharp.net OmniSharp - Cross platform .NET development in the editor of your choice

startedOmniSharp/omnisharp-vscode

started time in a few seconds

issue commentOmniSharp/omnisharp-roslyn

LSP failed to handle notification - Sequence contains more than one matching element

I am also running into this problem with vim-ale.

These are the capabilities that vim-ale is sending to omnisharp-roslyn's LSP server: https://github.com/w0rp/ale/blob/master/autoload/ale/lsp.vim#L327-L385

Removing the synchronization key of the dictionary makes the LSP server initialize, but then the LSP isn't as useful.

Daniel-V1

comment created time in 4 hours

issue commentOmniSharp/omnisharp-vscode

Omnisharp stopped working in just one project

@rchande absolutely nothing changed in the project at that level. I'll take another look tomorrow when I get back into the office and make sure nothing weird inadvertently happened.

dcb99

comment created time in 5 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

@jpfeiffer16 I have updated the "loaded" listener now so it listens for all projects to be loaded. For me, this appears to have removed the "Duplicate definition" errors.

I have made this optional, so for users who don't experience the duplication issue, or are trying different versions of OmniSharp-roslyn which might not have this problem, you can let g:OmniSharp_server_stdio_quickload = 1

nickspoons

comment created time in 5 hours

push eventOmniSharp/omnisharp-vim

Nick Jensen

commit sha 72fcff470b3fa8b7057485df894bcdbefc3d690e

Listen for all projects to be loaded

view details

push time in 5 hours

issue commentOmniSharp/omnisharp-roslyn

LSP no text synchronization.

@Aayush04, do you have logs of it working with full changes that you can share? I'd like to compare them to mine and see if I see differences in the workflow / formatting.

ElayneB

comment created time in 6 hours

issue commentOmniSharp/omnisharp-vscode

Omnisharp stopped working in just one project

@dcb99 The C# extension has not updated since 1.19.1, and indeed OmniSharp hasn't merged any PRs since 5/16. If it's working for you in other projects and recently stopped working in one, I'd check to see what changed in that project. Note that from your log, the active solution is c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Client-Portals.sln but omnisharp can't find any projects in it. Does that sound correct?

dcb99

comment created time in 6 hours

issue commentOmniSharp/omnisharp-roslyn

LSP no text synchronization.

@mholo65 My client is sending full changes and I am still getting the error. Here's an example didChange request my client is sending.

{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"textDocument":{"uri":"file:///srv/app/language_servers/csharp/Program.cs","version":39},"contentChanges":[{"text":"using System;\n\nnamespace csharp\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            Console.WriteLine(\"dsfsf\");\n          \n          \n          \n          \n          \n          \n          Console\n          \t\n        }\n    }\n}\n\n\n"}]}}
ElayneB

comment created time in 6 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

@stevearc do you have an up-to-date ALE? The linting depends on its relatively new ALEWantResults autocmd

nickspoons

comment created time in 7 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

Oh no you're right, it won't install the correct version inside WSL. In that situation I tend to open a Windows gvim and do the :OmniSharpInstall from there.

Printing some error messages is a good idea, I'll try to set up some listeners.

I'm not sure why you're not getting ALE linting, that works fine for me out of the box I think. I'll try later on with a clean config.

nickspoons

comment created time in 7 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

I didn't run :OmniSharpInstall because I was under the impression that it wouldn't install the Windows version if run from inside WSL.

Found my issue though, I forgot to check the path to the exe and it changed because I unzipped the new server differently. Now it works! I'd recommend printing an error message if the executable path couldn't be found.

Most of the things I use regularly seem to work, but I'm not getting ALE linting. Is there another config change I need to make for that?

nickspoons

comment created time in 7 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

@stevearc I have added a generic :OmniSharpOpenLog command, which opens the stdio.log in stdio mode and the python.log in HTTP mode. The logging now also respects g:OmniSharp_loglevel (values 'debug', 'info' and 'none') so make sure to let g:OmniSharp_loglevel = 'debug'.

nickspoons

comment created time in 7 hours

push eventOmniSharp/omnisharp-vim

Nick Jensen

commit sha 400e67d75f00e98ab98834433d31dddfcdeee9a8

Respect g:OmniSharp_loglevel for stdio

view details

push time in 7 hours

push eventOmniSharp/omnisharp-vim

Nick Jensen

commit sha 6990184564c6a4702cc3e2fd59e3842ec175a570

Add :OmniSharpOpenLog for both stdio/python logs

view details

push time in 8 hours

issue openedOmniSharp/omnisharp-vscode

Omnisharp stopped working in just one project

Please past## Issue Description ## A couple hours ago Omnisharp stopped providing intellisense features in just one of my projects in VS Code. I've recloned my repo, uninstalled and reinstalled the extension, downgraded to a previous version of the extension, and I can't get anything. No peek definition, go to definition, code suggestions etc

Steps to Reproduce

clone repo, open in vs code

Expected Behavior

intellisense works as expected

Actual Behavior

intellisense not working at all

Logs

OmniSharp log

<details>Starting OmniSharp server at 5/20/2019, 4:34:33 PM Target: c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Client-Portals.sln

OmniSharp server started. Path: C:\Users\dbarless.vscode\extensions\ms-vscode.csharp-1.19.1.omnisharp\1.32.19\OmniSharp.exe PID: 8672

    Loaded OmniSharp.Cake, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.DotNet, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.DotNetTest, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.Host, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.MSBuild, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.Roslyn, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.Roslyn.CSharp, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.Script, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Loaded OmniSharp.Shared, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    DotNetPath set to dotnet
    Located 2 MSBuild instance(s)
        1: Visual Studio Professional 2017 15.9.28307.557 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
        2: StandAlone 15.0 - "C:\Users\dbarless\.vscode\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin"
    SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
    SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Tasks.Core.dll' (name-only).
    SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.dll' (name-only).
    SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Framework.dll' (name-only).
    Registered MSBuild instance: Visual Studio Professional 2017 15.9.28307.557 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
    Attempting to resolve 'Microsoft.Build.Utilities.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Utilities.Core.dll' (name-only).
    Attempting to resolve 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
    SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.Framework.dll' (name-only).
    Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
    FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'.
    Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Features, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
    FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.CodeAnalysis.VisualBasic.Features.dll'.
    Attempting to resolve 'SQLitePCLRaw.core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1488e028ca7ab535'
    FAILURE: Could not locate 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\SQLitePCLRaw.core.dll'.
    Detecting Cake files in 'c:\Users\dbarless\Desktop\MaintReq\Client-Portals'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    Attempting to resolve 'Microsoft.Build'
    SUCCESS: Resolved to 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Build.dll' (name-only).
    MSBuild environment: 

Mode: VisualStudio RunningTests: False RunningInVisualStudio: False MSBuildToolsDirectory32: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin MSBuildToolsDirectory64: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64 MSBuildSDKsPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks CurrentMSBuildConfigurationFile: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe.config CurrentMSBuildExePath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe CurrentMSBuildToolsDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin VisualStudioInstallRootDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional MSBuildExtensionsPath: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild

    Detecting projects in 'c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Client-Portals.sln'.
    Detecting CSX files in 'c:\Users\dbarless\Desktop\MaintReq\Client-Portals'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Configuration finished.
    Omnisharp server running using Stdio at location 'c:\Users\dbarless\Desktop\MaintReq\Client-Portals' on host 7160.
    ************ Request ************

{ "Type": "request", "Seq": 1, "Command": "/projects" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 2, "Command": "/projects" } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 2, "Command": "/projects", "Running": true, "Success": true, "Message": null, "Body": { "Cake": { "Projects": [] }, "DotNet": { "Projects": [], "RuntimePath": null }, "MsBuild": { "SolutionPath": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Client-Portals.sln", "Projects": [] }, "Script": { "Projects": [] } }, "Seq": 44, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 1, "Command": "/projects", "Running": true, "Success": true, "Message": null, "Body": { "Cake": { "Projects": [] }, "DotNet": { "Projects": [], "RuntimePath": null }, "MsBuild": { "SolutionPath": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Client-Portals.sln", "Projects": [] }, "Script": { "Projects": [] } }, "Seq": 43, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 3, "Command": "/projects" } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 3, "Command": "/projects", "Running": true, "Success": true, "Message": null, "Body": { "Cake": { "Projects": [] }, "DotNet": { "Projects": [], "RuntimePath": null }, "MsBuild": { "SolutionPath": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Client-Portals.sln", "Projects": [] }, "Script": { "Projects": [] } }, "Seq": 48, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 4, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 33, "Column": 57 } } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 5, "Command": "/v2/blockstructure", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 5, "Command": "/v2/blockstructure", "Running": true, "Success": true, "Message": null, "Body": null, "Seq": 53, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 6, "Command": "/v2/codestructure", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 4, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 51, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 6, "Command": "/v2/codestructure", "Running": true, "Success": true, "Message": null, "Body": null, "Seq": 56, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 7, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 7, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 60, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 8, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 31, "Column": 81, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 8, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 63, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 9, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 9, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 66, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 10, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 66, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 10, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 69, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 11, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 66, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 11, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 72, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 12, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 67 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 12, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 75, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 13, "Command": "/gotoDefinition", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 67, "WantMetadata": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 13, "Command": "/gotoDefinition", "Running": true, "Success": true, "Message": null, "Body": { "FileName": null, "Line": 1, "Column": 1, "MetadataSource": null }, "Seq": 78, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 14, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 46, "Column": 35 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 14, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 81, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 15, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 39, "Column": 59 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 15, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 84, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 16, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 34, "Column": 11, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 16, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 87, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 17, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 36, "Column": 10, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 17, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 90, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 18, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 39, "Column": 4, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 18, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 93, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 19, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 41, "Column": 9, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 19, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 96, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 20, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 20, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 99, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 21, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 44, "Column": 18 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 21, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 102, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 22, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 53, "Column": 60, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 22, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 105, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 23, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\obj\Debug\netcoreapp2.2\ClientPortals.csproj.FileListAbsolute.txt", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 23, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 108, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 24, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 24, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 111, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 25, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 80, "Column": 39 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 25, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 114, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 26, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 31, "Column": 92 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 26, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 117, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 27, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 18, "Column": 9 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 27, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 120, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 28, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 28, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 123, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 29, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 29, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 126, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 30, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 18, "Column": 29, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 30, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 129, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 31, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 18, "Column": 27, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 31, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 132, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 32, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 20, "Column": 34, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 32, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 135, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 33, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 64, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 33, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 138, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 34, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 64 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 34, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 141, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 35, "Command": "/gotoDefinition", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 64, "WantMetadata": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 35, "Command": "/gotoDefinition", "Running": true, "Success": true, "Message": null, "Body": { "FileName": null, "Line": 1, "Column": 1, "MetadataSource": null }, "Seq": 144, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 36, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 32, "Column": 10 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 36, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 147, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 37, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 37, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 150, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 38, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 38, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 153, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 39, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 39, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 156, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 40, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 49, "Column": 19 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 40, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 159, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 41, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 41, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 162, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 42, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 42, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 165, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 43, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 43, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 168, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 44, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 17, "Column": 40 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 44, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 171, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 45, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 45, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 174, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 46, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 46, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 177, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 47, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 47, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 180, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 48, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 48, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 183, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 49, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 47, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 49, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 186, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 50, "Command": "/typelookup", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 38, "Column": 44, "IncludeDocumentation": true } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 50, "Command": "/typelookup", "Running": true, "Success": true, "Message": null, "Body": { "Type": null, "Documentation": null, "StructuredDocumentation": null }, "Seq": 189, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 51, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 51, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 192, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 52, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 52, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 195, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 53, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 53, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 198, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 54, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Client-Portals.sln", "changeType": "Delete" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 54, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 201, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 55, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 22, "Column": 67 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 55, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 204, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 56, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 56, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 207, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 57, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 57, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 210, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 58, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 58, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 213, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 59, "Command": "/codecheck", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs" } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 59, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 216, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 60, "Command": "/codecheck", "Arguments": { "FileName": null } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 60, "Command": "/codecheck", "Running": true, "Success": true, "Message": null, "Body": { "QuickFixes": [] }, "Seq": 219, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 61, "Command": "/v2/getcodeactions", "Arguments": { "FileName": "c:\Users\dbarless\Desktop\MaintReq\Client-Portals\Controllers\AccountController.cs", "Line": 17, "Column": 40 } } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 61, "Command": "/v2/getcodeactions", "Running": true, "Success": true, "Message": null, "Body": { "CodeActions": [] }, "Seq": 222, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 62, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 62, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 225, "Type": "response" } dbug: OmniSharp.Stdio.Host ************ Request ************ { "Type": "request", "Seq": 63, "Command": "/filesChanged", "Arguments": [ { "FileName": "c:\Users\dbarless\Desktop\MaintReq\.git", "changeType": "Change" } ] } dbug: OmniSharp.Stdio.Host ************ Response ************ { "Request_seq": 63, "Command": "/filesChanged", "Running": true, "Success": true, "Message": null, "Body": {}, "Seq": 228, "Type": "response" } </details>

C# log

<details>Post the output from Output-->C# here</details>

Environment information

VSCode version: 1.34.0 C# Extension: 1.19.1

<details><summary>Dotnet Information</summary> .NET Core SDK (reflecting any global.json): Version: 2.2.105 Commit: 7cecb35b92

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

Host (useful for support): Version: 2.2.3 Commit: 6b8ad509b6

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

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download </details> <details><summary>Visual Studio Code Extensions</summary>

Extension Author Version
auto-close-tag formulahendry 0.5.6
csharp ms-vscode 1.19.1
horizon-theme-vscode jolaleye 1.8.1
material-icon-theme PKief 3.7.0
mssql ms-mssql 1.6.0
night-owl sdras 1.1.3
team ms-vsts 1.149.2
theme-cobalt2 wesbos 2.1.6
theme-dark-starry-night jerry 1.0.2
vegas-night-details-theme robpco 0.2.2
vetur octref 0.21.0
vscode-todo-highlight wayou 1.0.4
vue-theme mariorodeghiero 1.1.2
winteriscoming johnpapa 1.0.0

</details>

created time in 8 hours

issue commentOmniSharp/omnisharp-roslyn

Ubuntu: "The SDK 'Microsoft.Net.Sdk' specified could not be found."

I'm on Ubuntu 19.04 with both vscode and dotnet installed from snap. I haven't manged to get it working by setting $MSBuildSDKsPath. (Or any other way, for that matter 🤓 )

On my Ubuntu 19.04 machine, I have 2.2.204 working (disclaimer: have not tried 3.0-preview), by making sure my snaps were all up to date with "sudo snap refresh" and then making sure I had a link to dotnet by doing something like (from memory, as I'm not on that machine at the moment): "sudo ln -sv /snap/dotnet-sdk/current/dotnet /usr/local/bin/dotnet" to make a global link to "dotnet". Making a snap alias was insufficient for VSCode, though for CLI work it was fine, so I removed it and did the symbolic link approach. This might all go out the window with the 3.0-preview, though.

akshita31

comment created time in 8 hours

issue commentOmniSharp/omnisharp-vim

No errors shown with either ALE or Syntastic

Hi there,

Could you try running the server manually, outside of vim? cd into the project directory, then:

/home/me/.omnisharp/omnisharp-roslyn/run -v

If you see a Failed to load project file ... message, you're hitting a known OmniSharp-roslyn bug. You can work around it by adding a .omnisharp.json file, as described here

PiJoKra

comment created time in 8 hours

issue commentOmniSharp/omnisharp-roslyn

Unable to build on Ubuntu

I'm on exactly the same OS and other software versions as you and can confirm I ran into this identical issue.

rcjsuen

comment created time in 8 hours

issue commentOmniSharp/omnisharp-roslyn

Ubuntu: "The SDK 'Microsoft.Net.Sdk' specified could not be found."

FWIW, on my Fedora installation where I suffered from this issues for months, I found out that the issue was that some dotnet symlink was dead in my installation. IIRC, it was the one in /opt/dotnet/dotnet that was broken, while .NET Core was installed someplace, and MSBuild was using this broken symlink anyway then failed resolution of Sdks. Removing the broken symlink fixed it.

@mickaelistria I appreciate your comment. Unfortunately, this was not my issue. In another Ubuntu VM, I am running Ubuntu 18.10 so I am using the Dotnet and VSCode snaps. I haven't tried the suggestion above for it, yet. When I do, I will put in my .bash_aliases file instead of ,bashrc and use the path for the Snap Dotnet, which is something like /snap/dotnet-sdk/current.... whatever, and I hope it will work. Before Dotnet 2.2.205, all I needed was a symlink to the snap version of dotnet, which I created as "/usr/local/bin/dotnet" pointing to the snap version of dotnet, and it worked fine. Not sure why that stopped working with this release, but I'll try a modified version of the suggestion above and see. Fingers crossed. Hope you don't have issues (I don't on Windows, but I haven't used Fedora in quite a while).

I'm on Ubuntu 19.04 with both vscode and dotnet installed from snap. I haven't manged to get it working by setting $MSBuildSDKsPath. (Or any other way, for that matter :nerd_face: )

akshita31

comment created time in 9 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

@stevearc did you run :OmniSharpInstall after seeing let g:OmniSharp_server_stdio = 1?

nickspoons

comment created time in 9 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

Another thing that might be handy is a statusline function. I have one I use in my config, where a flag indicates the server state - I think I might move this from my config into OmniSharp-vim.

nickspoons

comment created time in 9 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

@jpfeiffer16 yes I've experienced that too at times. I think it's a server bug, where server requests sent before the server is fully loaded store the buffer as unattached files. AFAIU the idea is that once the project is loaded in the server, the unattached buffer is recognised as belonging to the project and included, but that doesn't always happen, so in the server you end up with both the unattached buffer and the project file. Hence, duplicates.

Currently I listen for a specific message from the server before I mark the server as "loaded". I'm thinking I need to extend this to listen for "project XYZ" loaded from the server from_all_ solution projects, which will mean a longer wait before the server accepts requests, but will avoid these errors. Perhaps if the bug is fixed in OmniSharp-roslyn at some stage we can do back to this current behaviours.

Note that this bug also occurs occasionally in the HTTP version.

nickspoons

comment created time in 9 hours

issue commentOmniSharp/omnisharp-vscode

.NET SDK not found if installed via Snap and Snap aliases used

@rmunn this isn't an issue with the C# extension, though I am not sure what I would suggest you do with this issue. If you run dotnet --info from a VS Code terminal, do you get anything more helpful?

rmunn

comment created time in 9 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

@stevearc yes all requests responses are logged, I meant to add an option to turn that off but forgot. I also forgot the command to open the log, similar to :OmniSharpOpenPythonLog, but the stdio log is next to the python one, in ~/.vim/plugged/omnisharp-vim/stdio.log (if you're using vim-plug)

nickspoons

comment created time in 9 hours

issue commentOmniSharp/omnisharp-vim

No errors shown with either ALE or Syntastic

I also want to add that other functions, like GoToImplementation work correctly, it really is only the "complex" errors that are not being shown.

PiJoKra

comment created time in 9 hours

issue openedOmniSharp/omnisharp-vim

No errors shown with either ALE or Syntastic

Hello,

I am facing an issue were I can only see little errors like missing matching braces, but not errors like undefined identifiers.

My system: Ubuntu 18.04, Vim 8.0 with Python3

I use the following code to test:

using System;
namespace HelloWorld
{
    class Hello
    {
        static void Main()
        {
            Console.WriteLine(test);
        }
    }
} 

My test vimrc for ALE:

set nocompatible              " be iMproved, required
filetype off                  " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'w0rp/ale'
Plugin 'OmniSharp/omnisharp-vim'

call vundle#end()            " required
filetype plugin indent on    " required

let g:OmniSharp_loglevel = 'debug'

let g:ale_linters = {
\ 'cs': ['OmniSharp']
\}

This is what I see in the python log after opening the file (I replaced the full path with <<SECRET>> while making this issue, in the logs it is the correct path):

2019-05-20 20:17:13,020 INFO Request: http://localhost:46135/checkalivestatus
2019-05-20 20:17:13,021 DEBUG b'{"line": 1, "column": 1, "buffer": "using System;\\r\\nnamespace HelloWorld\\r\\n{\\r\\n    class Hello\\r\\n    {\\r\\n        static void Main()\\r\\n        {\\r\\n            Console.WriteLine(test);\\r\\n        }\\r\\n    }\\r\\n}", "filename": "/home/<<SECRET>>/Test.cs"}'
2019-05-20 20:17:13,176 INFO Received Response: http://localhost:46135/checkalivestatus
2019-05-20 20:17:13,176 DEBUG true
2019-05-20 20:17:13,178 INFO Request: http://localhost:46135/updatebuffer
2019-05-20 20:17:13,179 DEBUG b'{"line": 1, "column": 1, "buffer": "using System;\\r\\nnamespace HelloWorld\\r\\n{\\r\\n    class Hello\\r\\n    {\\r\\n        static void Main()\\r\\n        {\\r\\n            Console.WriteLine(test);\\r\\n        }\\r\\n    }\\r\\n}", "filename": "/home/<<SECRET>>/Test.cs"}'
2019-05-20 20:17:13,361 INFO Received Response: http://localhost:46135/updatebuffer
2019-05-20 20:17:13,361 DEBUG true

ALEInfo gives me the following:

Available Linters: ['omnisharp', 'mcs', 'mcsc']
   Linter Aliases:
'omnisharp' -> ['Omnisharp', 'OmniSharp']
  Enabled Linters: ['omnisharp']

My test vimrc for Syntastic:

set nocompatible              " be iMproved, required
filetype off                  " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'OmniSharp/omnisharp-vim'

call vundle#end()            " required
filetype plugin indent on    " required

let g:OmniSharp_loglevel = 'debug'

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0

let g:syntastic_cs_checkers = ['code_checker']

This is what I see in the python log after opening the test file:

2019-05-20 20:26:11,771 INFO Request: http://localhost:49621/checkalivestatus
2019-05-20 20:26:11,771 DEBUG b'{"line": 1, "column": 1, "buffer": "using System;\\r\\nnamespace HelloWorld\\r\\n{\\r\\n    class Hello\\r\\n    {\\r\\n        static void Main()\\r\\n        {\\r\\n            Console.WriteLine(test);\\r\\n        }\\r\\n    }\\r\\n}", "filename": "/home/<<SECRET>>/Test.cs"}'
2019-05-20 20:26:11,773 ERROR Could not connect to OmniSharp server: http://localhost:49621/checkalivestatus
Traceback (most recent call last):
  File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pieter/.vim/bundle/omnisharp-vim/python/omnisharp/util.py", line 220, in doRequest
    response = opener.open(req, body, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>

When I go to http://localhost:50497/checkalivestatus myself manually via my browser, I see the text "true".

After I do :SyntasticCheck I see the following in the python log:

2019-05-20 20:35:29,708 DEBUG b'{"line": 1, "column": 1, "buffer": "using System;\\r\\nnamespace HelloWorld\\r\\n{\\r\\n    class Hello\\r\\n    {\\r\\n        static void Main()\\r\\n        {\\r\\n            Console.WriteLine(test);\\r\\n        }\\r\\n    }\\r\\n}", "filename": "/home/<<SECRET>>/Test.cs"}'
2019-05-20 20:35:29,857 INFO Received Response: http://localhost:60219/checkalivestatus
2019-05-20 20:35:29,857 DEBUG true
2019-05-20 20:35:29,859 INFO Request: http://localhost:60219/codecheck
2019-05-20 20:35:29,859 DEBUG b'{"line": 1, "column": 1, "buffer": "using System;\\r\\nnamespace HelloWorld\\r\\n{\\r\\n    class Hello\\r\\n    {\\r\\n        static void Main()\\r\\n        {\\r\\n            Console.WriteLine(test);\\r\\n        }\\r\\n    }\\r\\n}", "filename": "/home/<<SECRET>>/Test.cs"}'
2019-05-20 20:35:30,417 INFO Received Response: http://localhost:60219/codecheck
2019-05-20 20:35:30,418 DEBUG {"QuickFixes":[]}

SyntasticInfo gives me the following:

Info for filetype: cs
Global mode: active
Filetype cs is active
The current file will be checked automatically
Available checkers: code_checker mcs
Currently enabled checker: code_checker

I already tried Omnisharp with g:OmniSharp_server_use_mono = 1 (+ msbuild deb from https://aur.archlinux.org/packages/msbuild-stable/), but that did not help either.

Do you have any idea what could be going wrong? I have no preference for either ALE or Syntastic so fixing the issue for one of the two is enough for me.

created time in 10 hours

issue openedOmniSharp/omnisharp-vscode

.NET SDK not found if installed via Snap and Snap aliases used

Issue Description

If the .NET SDK has been installed via Snap (sudo snap install dotnet-sdk) on Ubuntu 18.04, and a Snap alias has been created with sudo snap alias dotnet-sdk.dotnet dotnet as recommended in https://github.com/dotnet/core-setup/issues/4230#issuecomment-398841315, then OmniSharp can't find the .NET SDK because dotnet --info fails with a SIGABRT when run from inside VS Code. Interestingly, dotnet --info works just fine when run from the command line.

Workaround: If instead of creating a Snap alias, I set my PATH to include /snap/dotnet-sdk/current somewhere before /snap/bin, then the dotnet --info command works and OmniSharp can find the .NET SDK as it should.

If I enable core dumps in Ubuntu, I can get a stack trace from the core dump. Unfortunately, the Snap package for dotnet-sdk does not appear to include debugging symbols so the stack trace isn't very useful, but I've included it in the Logs section below anyway.

Steps to Reproduce

  1. Run Ubuntu 18.04
  2. sudo snap install dotnet-sdk --classic
  3. sudo snap install code --classic
  4. In VS Code, install the C# Extension

Expected Behavior

OmniSharp runs dotnet --info and finds the .NET SDK correctly.

Actual Behavior

.NET SDK is not found because dotnet --info exists with a SIGABRT.

Logs

OmniSharp log

(empty)

C# log

<details>Installing C# dependencies... Platform: linux, x86_64, name=ubuntu, version=18.04

Downloading package 'OmniSharp for Linux (x64)' (43145 KB).................... Done! Validating download... Integrity Check succeeded. Installing package 'OmniSharp for Linux (x64)'

Downloading package '.NET Core Debugger (linux / x64)' (64083 KB).................... Done! Validating download... Integrity Check succeeded. Installing package '.NET Core Debugger (linux / x64)'

Downloading package 'Razor Language Server (Linux / x64)' (58328 KB).................... Done! Installing package 'Razor Language Server (Linux / x64)'

Finished

Failed to spawn 'dotnet --info' </details>

Stack trace

<details><summary>Stack trace generated by Gdb</summary> <pre> #0 0x00007f888b78fe97 in raise () from /snap/dotnet-sdk/38/lib/x86_64-linux-gnu/libc.so.6 #1 0x00007f888b791801 in abort () from /snap/dotnet-sdk/38/lib/x86_64-linux-gnu/libc.so.6 #2 0x00007f888ae8fa23 in PROCAbort () from /snap/dotnet-sdk/38/shared/Microsoft.NETCore.App/2.2.5/libcoreclr.so #3 0x00007f888ae8e81b in PROCEndProcess(void*, unsigned int, int) () from /snap/dotnet-sdk/38/shared/Microsoft.NETCore.App/2.2.5/libcoreclr.so #4 0x00007f888abf7938 in UnwindManagedExceptionPass1(PAL_SEHException&, _CONTEXT*) () from /snap/dotnet-sdk/38/shared/Microsoft.NETCore.App/2.2.5/libcoreclr.so #5 0x00007f888abf7ab3 in DispatchManagedException(PAL_SEHException&, bool) () from /snap/dotnet-sdk/38/shared/Microsoft.NETCore.App/2.2.5/libcoreclr.so #6 0x00007f888ab7464a in IL_Throw(Object*) () from /snap/dotnet-sdk/38/shared/Microsoft.NETCore.App/2.2.5/libcoreclr.so #7 0x00007f8812469928 in ?? () #8 0x0000000d00010002 in ?? () #9 0x0000000d00010002 in ?? () #10 0x0000000000000000 in ?? () </pre></details>

Environment information

VSCode version: 1.34.0 C# Extension: 1.19.1

<details><summary>Mono Information</summary> OmniSharp using global mono :5.20.1</details> <details><summary>Dotnet Information (actual)</summary> A valid dotnet installation could not be found.</details> <details><summary>Dotnet Information (expected)</summary> .NET Core SDK (reflecting any global.json): Version: 2.2.204 Commit: 8757db13ec

Runtime Environment: OS Name: ubuntu OS Version: 18.04 OS Platform: Linux RID: ubuntu.18.04-x64 Base Path: /snap/dotnet-sdk/38/sdk/2.2.204/

Host (useful for support): Version: 2.2.5 Commit: 0a3c9209c0

.NET Core SDKs installed: 2.2.204 [/snap/dotnet-sdk/38/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.5 [/snap/dotnet-sdk/38/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.5 [/snap/dotnet-sdk/38/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.5 [/snap/dotnet-sdk/38/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download </details> <details><summary>Visual Studio Code Extensions</summary>

Extension Author Version
csharp ms-vscode 1.19.1
csharpextensions jchannon 1.3.0
docomment k--kato 0.1.7
Ionide-FAKE Ionide 1.2.3
Ionide-fsharp Ionide 3.37.0
Ionide-Paket Ionide 1.12.0
msbuild-project-tools tintoy 0.2.54
vscode-versionlens pflannery 0.23.0

</details>

created time in 10 hours

issue commentOmniSharp/omnisharp-vscode

The SDK 'Microsoft.NET.Sdk' specified could not be found.

@richlander The issue does still happen in latest version 1.19.1. I created a new program with dotnet new console and loaded the directory in vscode.

OmniSharp Log:

[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file <path-to-project>
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found.  <path-to-project>
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00040] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject[T1] (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00003] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1] (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImportsFromUnescapedImportExpressionConditioned (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, System.Collections.Generic.List`1[Microsoft.Build.Construction.ProjectRootElement]& projects, Microsoft.Build.BackEnd.SdkResolution.SdkResult& sdkResult, System.Boolean throwOnFileNotExistsError) [0x0024e] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].ExpandAndLoadImports (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, Microsoft.Build.BackEnd.SdkResolution.SdkResult& sdkResult) [0x00027] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].EvaluateImportElement (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x0000d] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].PerformDepthFirstPass (Microsoft.Build.Construction.ProjectRootElement currentProjectOrImport) [0x000e6] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Framework.BuildEventContext buildEventContext) [0x00103] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Evaluator`4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData`4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary`1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory`2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.BackEnd.SdkResolution.ISdkResolverService sdkResolverService, System.Int32 submissionId, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0002d] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0005e] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00035] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00007] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project.Initialize (System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00126] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00093] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.Collections.Generic.IDictionary`2[TKey,TValue] globalProperties, System.String toolsVersion) [0x000f7] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.String toolsVersion) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 
  at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore (System.String filePath) [0x0003f] in <69148e098afe4042aa56606d5bafd188>:0 
  at OmniSharp.MSBuild.ProjectLoader.BuildProject (System.String filePath) [0x0000d] in <69148e098afe4042aa56606d5bafd188>:0 
  at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load (System.String filePath, OmniSharp.MSBuild.ProjectIdInfo projectIdInfo, OmniSharp.MSBuild.ProjectLoader loader) [0x00015] in <69148e098afe4042aa56606d5bafd188>:0 
  at OmniSharp.MSBuild.ProjectManager+<>c__DisplayClass30_0.<LoadProject>b__0 () [0x00000] in <69148e098afe4042aa56606d5bafd188>:0 
  at (wrapper delegate-invoke) System.Func`1[System.ValueTuple`3[OmniSharp.MSBuild.ProjectFile.ProjectFileInfo,System.Collections.Immutable.ImmutableArray`1[OmniSharp.MSBuild.Logging.MSBuildDiagnostic],OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs]].invoke_TResult()
  at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject (System.String projectFilePath, System.Func`1[TResult] loader) [0x0001b] in <69148e098afe4042aa56606d5bafd188>:0 

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: <path-to-project>

My project file looks like this:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.2</TargetFramework>
  </PropertyGroup>

</Project>
richlander

comment created time in 10 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

I did a quick check to see if it's a drop-in replacement. I updated to OmniSharp 1.32.19 (64-bit windows) and set let g:OmniSharp_server_stdio = 1. I'm running inside of WSL with neovim and it doesn't appear to be working. Is there an easy way to get a verbose log of the communication to/from the the OmniSharp process?

nickspoons

comment created time in 10 hours

issue closedOmniSharp/omnisharp-vscode

.NET Core C# Intellisense not working on Windows, full of errors everywhere

Issue Description

Intellisense not working on Windows 10 (latest update as of now), at all! Even after successful build of project.

image

Steps to Reproduce

Expected Behavior

Intellisense to be working.

Actual Behavior

Not working, everything has an error squiggly line below it.

Logs

OmniSharp log

<details>Starting OmniSharp server at 5/9/2019, 2:01:37 PM Target: d:\apps\Ion\Ion.Tests

OmniSharp server started. Path: C:\Users\Atlas.vscode-insiders\extensions\ms-vscode.csharp-1.19.1.omnisharp\1.32.19\OmniSharp.exe PID: 24996

    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: StandAlone 15.0 - "C:\Users\Atlas\.vscode-insiders\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin"
    MSBUILD_EXE_PATH environment variable set to 'C:\Users\Atlas\.vscode-insiders\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin\MSBuild.exe'
    Registered MSBuild instance: StandAlone 15.0 - "C:\Users\Atlas\.vscode-insiders\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin"
        CscToolExe = csc.exe
        CscToolPath = C:\Users\Atlas\.vscode-insiders\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin\Roslyn
        MSBuildExtensionsPath = C:\Users\Atlas\.vscode-insiders\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild
        MSBuildToolsPath = C:\Users\Atlas\.vscode-insiders\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin
    Detecting Cake files in 'd:\apps\Ion\Ion.Tests'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    No solution files found in 'd:\apps\Ion\Ion.Tests'
    Queue project update for 'd:\apps\Ion\Ion.Tests\IonTests.csproj'
    Detecting CSX files in 'd:\apps\Ion\Ion.Tests'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Loading project: d:\apps\Ion\Ion.Tests\IonTests.csproj
    Configuration finished.
    Omnisharp server running using Stdio at location 'd:\apps\Ion\Ion.Tests' on host 19960.
    Successfully loaded project file 'd:\apps\Ion\Ion.Tests\IonTests.csproj'.
    Adding project 'd:\apps\Ion\Ion.Tests\IonTests.csproj'
    Update project: IonTests
    Found referenced project outside root directory: d:\apps\Ion\Ion\Ion.csproj
    Adding project 'd:\apps\Ion\Ion\Ion.csproj'
    Queue project update for 'd:\apps\Ion\Ion\Ion.csproj'
    Loading project: d:\apps\Ion\Ion\Ion.csproj
    Successfully loaded project file 'd:\apps\Ion\Ion\Ion.csproj'.
    Update project: Ion

</details>

C# log

<details>Empty</details>

Environment information

VSCode version: 1.34.0-insider C# Extension: 1.19.1

<details><summary>Dotnet Information</summary> .NET Core SDK (reflecting any global.json): Version: 2.2.203 Commit: e5bab63eca

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

Host (useful for support): Version: 2.2.4 Commit: f95848e524

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

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

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download </details> <details><summary>Visual Studio Code Extensions</summary>

Extension Author Version
comment-anchors ExodiusStudios 1.6.1
cpptools ms-vscode 0.23.0
csharp ms-vscode 1.19.1
dotenv mikestead 1.0.1
Go ms-vscode 0.10.2
lex-flex-yacc-bison faustinoaq 0.0.3
llvm RReverser 0.0.3
Material-theme zhuangtongfa 2.22.1
one-monokai azemoh 0.3.7
path-intellisense christian-kohler 1.4.2
powershell ms-vscode 1.12.1
tslint eg2 1.0.43
vsc-material-theme Equinusocio 2.8.2
vscode-docker PeterJausovec 0.6.2
vscode-docker-syntax dunstontc 0.1.5
vscode-icons vscode-icons-team 8.6.0
vscode-npm-script eg2 0.3.7
vscode-test-explorer hbenl 2.10.0
vscodeintellicode VisualStudioExptTeam 1.1.6
vsliveshare ms-vsliveshare 1.0.125

</details>

closed time in 11 hours

cloudrex

issue commentOmniSharp/omnisharp-vscode

.NET Core C# Intellisense not working on Windows, full of errors everywhere

Funny. This was actually happening because I was building using WSL on Windows, dumb move.

cloudrex

comment created time in 11 hours

issue commentOmniSharp/omnisharp-vscode

Don't switch to Debug Console when using integrated terminal

I think the ideal solution would be for VS Code to make the terminal and debug console separate tabs so that both can be visible at once. The C# extension actually goes out of its way to show the debug console because it is the only way we have to show messages. We used to actually stick this in the templated launch.json, but we got feedback that we had two many options in the default template, so we removed it. So I feel like unfortunately there isn't a good answer here.

arnavb

comment created time in 11 hours

issue commentOmniSharp/omnisharp-vscode

xdg-open unexpected argument '/c'

Possibly related, depending on where that /c parameter is ultimately coming from, to https://github.com/dotnet/corefx/issues/24704, where xdg-open was being used on Linux to provide the equivalent of cmd /c. If the process of opening a .csproj file involves starting an external process, then I'd strongly suspect that https://github.com/dotnet/corefx/issues/24704 is behind the issue. It would be helpful to figure out the full xdg-open command that's being attempted here.

spaasis

comment created time in 11 hours

issue commentOmniSharp/omnisharp-vim

Feedback wanted! stdio

I'm trying it out and so far so good. I do notice a lot more speed. I have noticed on a few occasions though that when I pick a code action, it seems like the omnisharp server is duplicating the files in the solution in memory or something because I get a bunch of errors about duplicate/ambiguous classes etc.. Restarting the server fixes it. Still trying to get something that is more reproducible.

nickspoons

comment created time in 12 hours

issue commentOmniSharp/omnisharp-vscode

.NET Core C# Intellisense not working on Windows, full of errors everywhere

@cloudrex Can you set the option "omnisharp.logginglevel" to "debug" and share your omnisharp log again?

cloudrex

comment created time in 14 hours

issue commentOmniSharp/omnisharp-vscode

C# Intellisense is not working

@ArunRaj6 Please share your omnisharp log.

ArunRaj6

comment created time in 14 hours

pull request commentOmniSharp/omnisharp-roslyn

make "dotnet build" work on non-Windows platforms

I have removed the original quite "hacky" approach and used the new Microsoft.NETFramework.ReferenceAssemblies (see https://github.com/dotnet/designs/pull/33#issuecomment-489264196). This is now a clean approach and should be good to merge.

filipw

comment created time in 14 hours

push eventOmniSharp/omnisharp-roslyn

filipw

commit sha bf9b6699569894cb68be12a8f7c831c99105b35d

use Microsoft.NETFramework.ReferenceAssemblies ❤️

view details

push time in 15 hours

push eventOmniSharp/omnisharp-roslyn

filipw

commit sha 5f548f51aec642090fcac519587d02373623da1e

added support for TreatWarningsAsErrors in csproj

view details

filipw

commit sha 43304da6e372d842936a1b0b12ba650bc4ce8b2b

added test for TreatWarningsAsErrors

view details

filipw

commit sha ace027410250e7447a0906ac284e48b509530eb7

updated changelog

view details

filipw

commit sha 23be729895956ce986274d97ffa6b4cbb31e952d

fixed xunit warning

view details

filipw

commit sha 28967ff72a745b16964cb283ffa73a6d9af91f9b

fixed link in changelog

view details

Filip W

commit sha 00dce6e83e172e9045c4644f8b68eff9f2799d77

Merge branch 'master' into bugfix/nowarn

view details

David Driscoll

commit sha 98dd2da4f45bcde8989bb0a359bc87b8cf48fd46

Merge branch 'master' into bugfix/nowarn

view details

David Driscoll

commit sha 46c814a74c0dae8f4c2541bff7c65f686597af04

Merge pull request #1459 from filipw/bugfix/nowarn added support for TreatWarningsAsErrors in csproj

view details

FiniteReality

commit sha f7ca0fb1ebdf23bc29e3182041fe5d129357ba80

Replace ToLanguageVersion switch with TryParse Fixes #1487

view details

filipw

commit sha e232c4d1939c2dbb9ebb37122df255e942391e7b

fixed logical typo in CompletionItemExtensions

view details

Filip W

commit sha 99af853f1d408fe3bbece57bfeaf8df80ce576a9

Merge pull request #1488 from FiniteReality/fix-missing-lang-versions Replace ToLanguageVersion switch with TryParse

view details

Filip W

commit sha b9a10b614cb43f117702ca99c78c104e8e6402cd

Merge branch 'master' into bugfix/symbol-fix

view details

Filip W

commit sha f2ac249943a29b232fe13e4e87497d3854a73a7c

Merge pull request #1491 from filipw/bugfix/symbol-fix fixed logical typo in CompletionItemExtensions

view details

Savpek

commit sha 14ad8002409191f972a15e536257319b60e68bc3

Fixed mistake on shadow copying assembly loader.

view details

Filip W

commit sha 479ce0c9e4da03e7728dae8c5e51f783728b0efb

Merge pull request #1497 from savpek/fix/shadow-copying-assembly-loader-vol1 Fixed mistake on shadow copying assembly loader.

view details

filipw

commit sha 6d3a30e8d07fe20421b253dfaa05e48a8eae6675

Merge branch 'master' of https://github.com/OmniSharp/omnisharp-roslyn into feature/dotnet-build-unix

view details

push time in 15 hours

GollumEvent

issue openedOmniSharp/omnisharp-roslyn

Unable to build on Ubuntu

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic
$ msbuild /version
Microsoft (R) Build Engine version 16.0.0.0 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

16.0.0.0
$ mono --version
Mono JIT compiler version 5.20.1.19 (tarball Thu Apr 11 09:02:17 UTC 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          yes(600)
	Suspend:       hybrid
	GC:            sgen (concurrent by default)
$ ./build.sh 
Feeds used:
  /home/remy/.nuget/packages/
  https://api.nuget.org/v3/index.json
  https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
  https://dotnet.myget.org/F/dotnet-cli/api/v3/index.json
  https://www.myget.org/F/omnisharp/api/v3/index.json
  https://dotnet.myget.org/F/roslyn/api/v3/index.json

All packages listed in /home/remy/code/github/omnisharp-roslyn/tools/packages.config are already installed.
/proc/self/maps:
40085000-400d5000 rwxp 00000000 00:00 0 
40fe2000-40ff2000 rwxp 00000000 00:00 0 
55ab8f9d0000-55ab8fe21000 r-xp 00000000 103:05 794355                    /usr/bin/mono-sgen
55ab90021000-55ab90028000 r--p 00451000 103:05 794355                    /usr/bin/mono-sgen
55ab90028000-55ab9002d000 rw-p 00458000 103:05 794355                    /usr/bin/mono-sgen
55ab9002d000-55ab90044000 rw-p 00000000 00:00 0 
55ab914ee000-55ab917fd000 rw-p 00000000 00:00 0                          [heap]
7fc140000000-7fc140021000 rw-p 00000000 00:00 0 
7fc140021000-7fc144000000 ---p 00000000 00:00 0 
7fc144000000-7fc144021000 rw-p 00000000 00:00 0 
7fc144021000-7fc148000000 ---p 00000000 00:00 0 
7fc148000000-7fc14802a000 rw-p 00000000 00:00 0 
7fc14802a000-7fc14c000000 ---p 00000000 00:00 0 
7fc14c000000-7fc14c037000 rw-p 00000000 00:00 0 
7fc14c037000-7fc150000000 ---p 00000000 00:00 0 
7fc150000000-7fc150021000 rw-p 00000000 00:00 0 
7fc150021000-7fc154000000 ---p 00000000 00:00 0 
7fc155f8b000-7fc1561d8000 r-xp 00000000 103:05 786554                    /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7fc1561d8000-7fc1563d8000 ---p 0024d000 103:05 786554                    /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7fc1563d8000-7fc156400000 rw-p 0024d000 103:05 786554                    /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7fc156400000-7fc156403000 rw-p 00000000 00:00 0 
7fc156403000-7fc156463000 r-xp 00000000 103:05 787226                    /usr/lib/x86_64-linux-gnu/libssl.so.1.1
7fc156463000-7fc156663000 ---p 00060000 103:05 787226                    /usr/lib/x86_64-linux-gnu/libssl.so.1.1
7fc156663000-7fc15666d000 rw-p 00060000 103:05 787226                    /usr/lib/x86_64-linux-gnu/libssl.so.1.1
7fc1570fb000-7fc1570fc000 ---p 00000000 00:00 0 
Error: One or more errors occurred. (Expecting state 'Element'.. Encountered 'Text'  with name '', namespace ''.)
	Expecting state 'Element'.. Encountered 'Text'  with name '', namespace ''.

created time in 17 hours

issue commentOmniSharp/omnisharp-vscode

C# Intellisense is not working

@filipw that solution did not solve the issue for me on Ubuntu 18.04 LTS

ArunRaj6

comment created time in 17 hours

push eventOmniSharp/omnisharp-vim

Nick Jensen

commit sha c13b9fed15cf67b1a72b6771cdb93fc9305b8c65

Fix spelling mistake

view details

push time in 17 hours

push eventOmniSharp/omnisharp-vim

Nick Jensen

commit sha d447aacdf7b57512b68084fa816b3b3673826dcc

Request user feedback

view details

push time in 17 hours

issue openedOmniSharp/omnisharp-vim

Feedback wanted! stdio

Asynchronous server interactions have been added, with the server switch from the HTTP to stdio version of OmniSharp-roslyn.

In my personal usage the new version has been very good, much faster and smoother. I also hope this will remove some barriers to getting OmniSharp running initially for new users, as the OmniSharp-vim python dependency and OmniSharp-roslyn libuv dependency are both removed.

I'm opening this issue in the hope of getting some feedback from anyone trying out the new server. Bugs should be reported of course, but anyone who doesn't have any problems is most welcome to comment or give a :+1:, and that way I can get a better idea of when to make stdio the default (currently the feature is opt-in only with the g:OmniSharp_server_stdio flag).

created time in 17 hours

push eventOmniSharp/omnisharp-vim

Nick Jensen

commit sha 17596111ed5d28c9f727f4e9936f94749de40e6b

Remove unused variable

view details

Nick Jensen

commit sha b475c370024d0fbbf76b684567d4e9d23d14ed93

Alphabetise functions

view details

Nick Jensen

commit sha 812d70517da94c55414fb690a545d6741f10f9e0

Add check_capabilities load guard

view details

Nick Jensen

commit sha 71374a7dda87cec53523786db54db8afde91810f

Rename internal function names for consistency

view details

Nick Jensen

commit sha 58eb0e2f289ecd4c19a0977a1fb63395f6bf76cb

Differentiate between Stdio/Http on server start

view details

Nick Jensen

commit sha 7d564b95f2698bb72dfe5a6a43c373b2e39096c7

Remove unused variables

view details

Nick Jensen

commit sha 635b142f2850789867d4b8225295d0e23e775a2f

Add TranslatePathFor(Client|Server) functions

view details

Nick Jensen

commit sha fa260b0d59e4bb199bd6dc2d7f4194b7556be145

Implement GotoDefinition

view details

Nick Jensen

commit sha 666cd94b6ae39a618a01f74532806753addd882f

Refactor "Callback" to EndpointResponseHandler

view details

Nick Jensen

commit sha e8482bc3f10f2bc1babbdefdc2c613f92233b131

Un-nest highlighting function

view details

Nick Jensen

commit sha 32fc2d171367db35571381f2bb22e04503177532

Implement HighlightBuffer

view details

Nick Jensen

commit sha 20422b70ffa835deae89c9b27b461cdad5f49624

Handle literal '\r\n' strings in the buffer

view details

Nick Jensen

commit sha 9f81b0d54b6c069a7513b9811794b034ede35e81

Handle GotoDefinition "not found" response

view details

Nick Jensen

commit sha 52a5ccc3b52b55e714b8e90946c0acf2e79e8ac6

Remove capability check from plugin/OmniSharp.vim

view details

Nick Jensen

commit sha fd51c38b2bd6503461d8e22c81a8faa2720012c9

Implement UpdateBuffer

view details

Nick Jensen

commit sha 56175f3c6837a9e366b5d89d5364325452384a68

Remove unused g:OmniSharp_quickFixLength variable

view details

Nick Jensen

commit sha bd47ebfe6ac6387a64d63c9e915e9c21ed5ab493

Simplify JumpToLocation

view details

Nick Jensen

commit sha e750d7aa00b109df7c71f5e9301dc8629af94c5e

Implement FindUsages

view details

Nick Jensen

commit sha 4ed0a1d612ec1a9f8170cd2c49cb656ae9e13945

Implement FindImplementations

view details

Nick Jensen

commit sha 75fef2f8a685a637ac68a4a30d8a0b2f77bd227f

Implement CodeCheck and Synstastic integration

view details

push time in 17 hours

PR merged OmniSharp/omnisharp-vim

Async stdio

This is a work in progress PR to track work on switching from the HTTP OmniSharp-roslyn server to the Stdio version. This functionality will initially be "opt-in", with HTTP remaining the default.

My goal is to simultaneously remove OmniSharp-vim's python requirement, since the primary use of python is to handle HTTP connections and interactions. Vim8 and neovim can talk to the stdio processes natively (and asynchronously) with their respective job frameworks.

The current state is working well, with nearly all endpoints implemented. Only Vim8 support has been added so far, no neovim yet. Async functionality such as HighlightBuffer and completion with asyncomplete in particular work very smoothly compared to the synchronous HTTP versions, and the CountCodeActions flag system described in the wiki works so well (with a few tweaks) that it can be triggered on CursorMoved instead of CursorHold.

To test, set g:OmniSharp_server_stdio = 1 and point g:OmniSharp_server_path to a Stdio OmniSharp-roslyn executable, or just run :OmniSharpInstall and let OmniSharp-vim download the latest OmniSharp-roslyn binaries - when g:OmniSharp_server_stdio is 1 the Stdio version will be downloaded, not the HTTP version. Note that switching back to HTTP mode will require re-installing the server.

TODO

  • [x] Neovim support
  • [x] ALE support
  • [x] Installer to install Stdio version of OmniSharp-roslyn
  • [x] Completion
  • [x] GotoDefinition
  • [x] HighlightBuffer
  • [x] FindUsages
  • [x] FindImplementations
  • [x] CodeCheck
  • [x] FindSymbol
  • [x] CodeActions
  • [x] FindMembers
  • [x] NavigateUp/NavigateDown
  • [x] TypeLookup
  • [x] SignatureHelp
  • [x] Rename
  • [x] CodeFormat
  • [x] FixUsings
  • [x] Syntastic integration
  • [x] asyncomplete integration
  • [x] Selector plugin (fzf, ctrlp, unite) integration for CodeActions
  • [x] Update README and help
+1473 -582

7 comments

23 changed files

nickspoons

pr closed time in 17 hours

pull request commentOmniSharp/omnisharp-vim

Async stdio

OK, I'm pushing the button

nickspoons

comment created time in 17 hours

issue commentOmniSharp/omnisharp-vscode

.NET Core C# Intellisense not working on Windows, full of errors everywhere

Similar issue on Ubuntu 18.04 here too.

cloudrex

comment created time in 18 hours

issue commentOmniSharp/omnisharp-roslyn

[LSP] Failed to handle notification initialize

@w0rp yes, that’s a bug in the LSP implementation we are using. We are currently seeing other issues regarding initialization (and capabilities) and will put this on the list of things to do. //cc @david-driscoll

luizribeiro

comment created time in 20 hours

issue commentOmniSharp/omnisharp-roslyn

[LSP] Failed to handle notification initialize

Some capabilities are now sent by ALE, but you should also allow clients to connect to the server without sending any capabilities. All of the keys are optional.

luizribeiro

comment created time in 20 hours

issue commentOmniSharp/omnisharp-roslyn

LSP no text synchronization.

@mholo65 So, I am working with .cs file. In my case, incremental changes are not working. And yes, in case of full changes. You can see my issue details #1490 where when I am sending full changes it started working.

ElayneB

comment created time in a day

push eventOmniSharp/omnisharp-vim

jpfeiffer16

commit sha 4d4def8a4d60994b82ceb5b787a5c81a2967a80e

Change selected index of array item coming from vim.eval

view details

jpfeiffer16

commit sha 251e1d75fe85bc33122fd9a9d9099174ecaf1997

Add logic in getCodeActions command to handle visual-line mode. Credit: @nickspoons

view details

Nick Jensen

commit sha 5862ce69713139eb7f591017f8103de23fa216d1

Merge pull request #467 from jpfeiffer16/dev-getcodeactions-visual Change selected index of array item coming from vim.eval

view details

push time in a day

PR merged OmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

While trying to run :OmniSharpGetCodeActions in visual mode I was getting errors. This seems to be because the third element in the array returned from vim.eval('getpos("\'>")') is a very large number. The second item seems to be the correct number.

This fix worked for me. May be worth looking into. I am not great at Python, so it's possible I'm just missing something.

Thanks,

+7 -0

8 comments

1 changed file

jpfeiffer16

pr closed time in a day

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

Tested that code and it works. PR updated.

jpfeiffer16

comment created time in a day

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

Cool! I didn't see. That I'll try that out. My bad on neglecting to mention visual block mode. Honestly I forgot that Visual and Visual-Block are even different.

Thanks for looking into that. I'll update that code in the PR.

The Async-stdio PR looks cool too, I'll have to give that a try.

jpfeiffer16

comment created time in a day

startedOmniSharp/omnisharp-roslyn

started time in a day

issue commentOmniSharp/omnisharp-vim

[IDEA] c# debugging

Definitely interested - please keep us posted on your progress!

Uroc327

comment created time in a day

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

By the way, for your goal of showing code actions in the gutter, have you seen the Wiki article about this? Code-Actions-Available-flag

This was my attempt at something similar. And I've been trying it out using async jobs in the Async stdio branch and it's very fast - I have had it triggering on the CursorMoved autocmd and it's so fast I've been able to hold down j and scroll the buffer, with the gutter flickering with udated flags. Pretty cool but I also found that a bit much for my personal preferences!

I intend to split that Wiki article off into a separate plugin soon, once I have the stdio PR complete.

jpfeiffer16

comment created time in a day

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

Ahh, I've got it now. I didn't realise but Vim treats getpos("'>") differently in visual line mode. From :help getpos():

		Note that for '< and '> Visual mode matters: when it is "V"
		(visual line mode) the column of '< is zero and the column of
		'> is a large number.

So give this a try:

        start = vim.eval('getpos("\'<")')
        end = vim.eval('getpos("\'>")')
        # In visual line mode, getpos("'>")[2] is a large number (2147483647).
        # In python this is represented as a string, so when the length of this
        # string is greater than 5 it means the position is greater than 99999.
        # In this case, use the length of the line as the column position.
        if len(end[2]) > 5:
            end[2] = vim.eval('len(getline(%s))' % end[1])
jpfeiffer16

comment created time in a day

issue commentOmniSharp/omnisharp-roslyn

[LSP] Failed to handle notification initialize

Thanks @mholo65, you are right! Looks like vim-ale doesn't send any capabilities because of a TODO that was left behind:

https://github.com/w0rp/ale/blob/3b7c86e401eb488acd8713f7c9ee81344095080d/autoload/ale/lsp/message.vim#L32-L40

Aren't all these fields optional on the LSP spec?

LSP should announce the capabilities it supports, but this is the first server I encounter that doesn't work with vim-ale because of this.

Either way, sending this as the capabilities made me get past the initialize message:

{  
   "workspace":{},
   "textDocument":{  
      "completion":{  
         "completionItem":{  
            "snippetSupport":false
         }
      }
   }
}

When I tried sending the text synchronization, I ran into #1191.

luizribeiro

comment created time in a day

issue commentOmniSharp/omnisharp-roslyn

LSP no text synchronization.

I've seen issues with incremental changes with *.cake files and therefore only supporting full changes for Cake. https://github.com/OmniSharp/omnisharp-roslyn/blob/479ce0c9e4da03e7728dae8c5e51f783728b0efb/src/OmniSharp.LanguageServerProtocol/Handlers/TextDocumentSyncHandler.cs#L35

It could it be so that incremental changes is broken also for plain C# as @Aayush04 suggests.

@ElayneB does it work if you send only full changes from your client?

ElayneB

comment created time in a day

issue commentOmniSharp/omnisharp-roslyn

[LSP] Failed to handle notification initialize

@luizribeiro I think this is most likely because you don't send any client capabilities in your initialization request. Try to add at least support for text synchronization in your client implementation.

luizribeiro

comment created time in a day

issue commentOmniSharp/omnisharp-vscode

Indentation removed on empty lines when Format Document is used

I, too, would like a solution to this. It's very, very annoying, especially when combined with Vim.

poodle-chowder

comment created time in a day

issue commentOmniSharp/omnisharp-vim

[IDEA] c# debugging

In case anyone here is still interested in debugging C# from vim, I also was interested in this and due to the licencing on Microsoft's vsdbg as mentioned above, I stumbled accross an OSS debugger built by Samsung: https://github.com/Samsung/netcoredbg. I used this to create a service that talks to the debugger and forwards relevant info to vim (highlight the line for the current stack frame etc..). It's still very buggy, but it works and I'm trying to re-write the js prototype in c#. The portion that wraps the Samsung debugger is here: https://github.com/jpfeiffer16/dotdbg The vim client is here: https://github.com/jpfeiffer16/dotdbg-vim

Uroc327

comment created time in a day

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

Hmm. Ok, that makes sense and correlates with what is in the start variable. I inserted a logging line to see what was in the array for end and these are some of the examples I got:

2019-05-18 15:29:23,335 ERROR ['0', '40', '2147483647', '0']
2019-05-18 15:29:31,223 ERROR ['0', '39', '2147483647', '0']
2019-05-18 15:29:38,488 ERROR ['0', '40', '2147483647', '0']
2019-05-18 15:29:44,640 ERROR ['0', '46', '2147483647', '0']
2019-05-18 15:31:44,042 ERROR ['0', '60', '2147483647', '0']
2019-05-18 15:32:00,020 ERROR ['0', '60', '2147483647', '0']
2019-05-18 15:34:06,084 ERROR ['0', '61', '2147483647', '0']
2019-05-18 15:34:47,886 ERROR ['0', '64', '2147483647', '0']

I'm on Ubuntu 18.04

Output of vim --version:

VIM - Vi IMproved 8.1 (2018 May 18, compiled Mar 27 2019 09:36:25)
Included patches: 1-1057
Modified by jonathon.fernyhough@york.ac.uk
Compiled by jonathon.fernyhough@york.ac.uk
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl               +extra_search      +mouse_netterm     +tag_old_static
+arabic            -farsi             +mouse_sgr         -tag_any_white
+autocmd           +file_in_path      -mouse_sysmouse    +tcl
+autochdir         +find_in_path      +mouse_urxvt       +termguicolors
-autoservername    +float             +mouse_xterm       +terminal
+balloon_eval      +folding           +multi_byte        +terminfo
+balloon_eval_term -footer            +multi_lang        +termresponse
+browse            +fork()            -mzscheme          +textobjects
++builtin_terms    +gettext           +netbeans_intg     +textprop
+byte_offset       -hangul_input      +num64             +timers
+channel           +iconv             +packages          +title
+cindent           +insert_expand     +path_extra        +toolbar
+clientserver      +job               +perl              +user_commands
+clipboard         +jumplist          +persistent_undo   +vartabs
+cmdline_compl     +keymap            +postscript        +vertsplit
+cmdline_hist      +lambda            +printer           +virtualedit
+cmdline_info      +langmap           +profile           +visual
+comments          +libcall           -python            +visualextra
+conceal           +linebreak         +python3           +viminfo
+cryptv            +lispindent        +quickfix          +vreplace
+cscope            +listcmds          +reltime           +wildignore
+cursorbind        +localmap          +rightleft         +wildmenu
+cursorshape       +lua               +ruby              +windows
+dialog_con_gui    +menu              +scrollbind        +writebackup
+diff              +mksession         +signs             +X11
+digraphs          +modify_fname      +smartindent       -xfontset
+dnd               +mouse             +startuptime       +xim
-ebcdic            +mouseshape        +statusline        +xpm
+emacs_tags        +mouse_dec         -sun_workshop      +xsmp_interact
+eval              +mouse_gpm         +syntax            +xterm_clipboard
+ex_extra          -mouse_jsbterm     +tag_binary        -xterm_save
jpfeiffer16

comment created time in 2 days

issue commentOmniSharp/omnisharp-vscode

[fail]: OmniSharp.MSBuild.ProjectManager: Attemped to update project that is not loaded.

I'm still having this same issue with .net core sdk version 2.2.204 and omnisharp version 1.19.1.

This solved my problem: #2509 (comment)

Well, that's just a workaround. The problem persisted for me too, but in the end I managed to solve it for my particular installation. The details are here: https://github.com/OmniSharp/omnisharp-vscode/issues/2529#issuecomment-487098749

djkiwe

comment created time in 2 days

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

Hmm, the code seems to be correct.

vim.eval() in python just means run this vimscript, and in vim :h getpos() returns this:

The result is a |List| with four numbers:
    [bufnum, lnum, col, off]

So end[2] refers to the column position, as expected.

What kind of "very large number" are you seeing in your environment? And what is your environment (OS, vim/nvim version)?

Also, I have to admit I really don't use the visual option for GetCodeActions - why do you prefer it to just putting the cursor anywhere in the method name and running GetCodeActions in normal mode?

jpfeiffer16

comment created time in 2 days

issue closedOmniSharp/omnisharp-vim

Strange behave

Autocompletion not works for classes in current namespace. sdf

But when I open the class in other buffer it works. sdf

When I execute OmniSharpFindImplementations. sdf

When I run the server by hand I don't see any text response. sdf

But in nvim it's looks that it started. sdf

It's happen in omnisharp-roslyn v1.32.5 - v1.32.12 and dotnet v2.2.105

closed time in 2 days

Ja-rek

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

Thanks. I was running it in visual mode on the test methods in this file: AdditionPath using this solution: tests.sln. I'd imagine it should be reproducible from any dotnet 2.0 solution.

jpfeiffer16

comment created time in 2 days

issue commentOmniSharp/omnisharp-vim

Strange behave

Thank you. It works. :D

Ja-rek

comment created time in 2 days

issue commentOmniSharp/omnisharp-vim

Strange behave

I suspect this is this OmniSharp-roslyn bug. You may be able to fix it with a .omnisharp.json file, as described in this thread

Ja-rek

comment created time in 2 days

pull request commentOmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

Thanks I'll take a look.

Do you by chance have a code snippet you can reproduce this with?

jpfeiffer16

comment created time in 2 days

issue commentOmniSharp/omnisharp-vim

Strange behave

dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.Cake, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.DotNet, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.DotNetTest, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.Host, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.MSBuild, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.Roslyn, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.Roslyn.CSharp, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.Script, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
dbug: OmniSharp.CompositionHostBuilder[0]
      Loaded OmniSharp.Shared, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null
info: OmniSharp.Services.DotNetCliService[0]
      DotNetPath set to dotnet
dbug: OmniSharp.MSBuild.Discovery.Providers.MonoInstanceProvider[0]
      Can't use installed Mono because OmniSharp isn't running on it
info: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Located 1 MSBuild instance(s)
                  1: StandAlone 15.0 - "/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin"
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      SUCCESS: Resolved to '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Utilities.Core.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      SUCCESS: Resolved to '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Tasks.Core.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      SUCCESS: Resolved to '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.Build.Framework.dll' (name-only).
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      SUCCESS: Resolved to '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.Build.dll' (name-only).
info: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      MSBUILD_EXE_PATH environment variable set to '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Registered MSBuild instance: StandAlone 15.0 - "/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin"
                  MSBuildExtensionsPath = /usr/lib/mono/xbuild
                  BypassFrameworkInstallChecks = true
                  CscToolPath = /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Roslyn
                  CscToolExe = csc.exe
                  MSBuildToolsPath = /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin
                  TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Features, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.VisualBasic.Features.dll'.

dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.VisualBasic.Features.dll'.
info: OmniSharp.Http.Startup[0]
      Starting OmniSharp on arch 0.0 (x64)
info: OmniSharp.Cake.CakeProjectSystem[0]
      Detecting Cake files in '/home/jk/Downloads/Test'.
info: OmniSharp.Cake.CakeProjectSystem[0]
      Could not find any Cake files
info: OmniSharp.WorkspaceInitializer[0]
      Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
dbug: OmniSharp.MSBuild.ProjectSystem[0]
      MSBuild environment:
      Mode: Standalone
      RunningTests: False
      RunningInVisualStudio: False
      MSBuildToolsDirectory32: /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin
      MSBuildToolsDirectory64: /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin
      MSBuildSDKsPath: /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Sdks
      CurrentMSBuildConfigurationFile: /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/MSBuild.dll.config
      CurrentMSBuildExePath: /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/MSBuild.dll
      CurrentMSBuildToolsDirectory: /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin
      VisualStudioInstallRootDirectory:
      MSBuildExtensionsPath: /home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin

dbug: OmniSharp.MSBuild.ProjectLoader[0]
      'MSBuildExtensionsPath' set to '/usr/lib/mono/xbuild'
dbug: OmniSharp.MSBuild.ProjectLoader[0]
      'TargetFrameworkRootPath' set to '/usr/lib/mono/xbuild-frameworks'
dbug: OmniSharp.MSBuild.ProjectLoader[0]
      'CscToolPath' set to '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Roslyn'
dbug: OmniSharp.MSBuild.ProjectLoader[0]
      'CscToolExe' set to 'csc.exe'
info: OmniSharp.MSBuild.ProjectSystem[0]
      Detecting projects in '/home/jk/Downloads/Test/Test.sln'.
info: OmniSharp.MSBuild.ProjectManager[0]
      Queue project update for '/home/jk/Downloads/Test/example/example.csproj'
info: OmniSharp.Script.ScriptProjectSystem[0]
      Detecting CSX files in '/home/jk/Downloads/Test'.
info: OmniSharp.Script.ScriptProjectSystem[0]
      Could not find any CSX files
info: OmniSharp.WorkspaceInitializer[0]
      Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=3.1.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.Workspaces.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=3.1.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.Workspaces.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.CodeAnalysis.CSharp.Workspaces.resources, Version=3.1.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.CodeAnalysis.CSharp.Workspaces.resources, Version=3.1.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll'.
info: OmniSharp.MSBuild.ProjectManager[0]
      Loading project: /home/jk/Downloads/Test/example/example.csproj
info: OmniSharp.WorkspaceInitializer[0]
      Configuration finished.
info: OmniSharp.Http.Startup[0]
      Omnisharp server running on port '2000' at location '/home/jk/Downloads/Test' on host -1.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=en-GB, PublicKeyToken=b03f5f7f11d50a3a'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.Build.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.DotNet.MSBuildSdkResolver.resources, Version=2.2.202.0, Culture=en-GB, PublicKeyToken=adb9793829ddae60'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.DotNet.MSBuildSdkResolver.resources.dll'.
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      Attempting to resolve 'Microsoft.DotNet.MSBuildSdkResolver.resources, Version=2.2.202.0, Culture=en, PublicKeyToken=adb9793829ddae60'
dbug: OmniSharp.MSBuild.Discovery.MSBuildLocator[0]
      FAILURE: Could not locate '/home/jk/.omnisharp/omnisharp-roslyn/omnisharp/.msbuild/Current/Bin/Microsoft.DotNet.MSBuildSdkResolver.resources.dll'.
warn: OmniSharp.MSBuild.ProjectManager[0]
      Failed to load project file '/home/jk/Downloads/Test/example/example.csproj'.
fail: OmniSharp.MSBuild.ProjectManager[0]
      Attempted to update project that is not loaded: /home/jk/Downloads/Test/example/example.csproj

Ja-rek

comment created time in 2 days

issue commentOmniSharp/omnisharp-vscode

[fail]: OmniSharp.MSBuild.ProjectManager: Attemped to update project that is not loaded.

I'm still having this same issue with .net core sdk version 2.2.204 and omnisharp version 1.19.1.

This solved my problem: https://github.com/OmniSharp/omnisharp-vscode/issues/2509#issuecomment-420318250

djkiwe

comment created time in 2 days

issue commentOmniSharp/omnisharp-vscode

The SDK 'Microsoft.NET.Sdk.Web' specified could not be found

I'm still having this same issue with .net core sdk version 2.2.204 and omnisharp version 1.19.1. I tried the solutions showed here and in this other issue: #3023, but none of those solved the problem.

I managed to solve it with the help of the comments on this issue: #2509 Link to the solution that worked for me: https://github.com/OmniSharp/omnisharp-vscode/issues/2509#issuecomment-420318250

Arsmn1996

comment created time in 2 days

PR opened OmniSharp/omnisharp-vim

Change selected index of array item coming from vim.eval

While trying to run :OmniSharpGetCodeActions in visual mode I was getting errors. This seems to be because the third element in the array returned from vim.eval('getpos("\'>")') is a very large number. The second item seems to be the correct number.

This fix worked for me. May be worth looking into. I am not great at Python, so it's possible I'm just missing something.

Thanks,

+1 -1

0 comment

1 changed file

pr created time in 2 days

fork jpfeiffer16/omnisharp-vim

Vim omnicompletion (intellisense) and more for c#

http://www.omnisharp.net

fork in 2 days

issue openedOmniSharp/omnisharp-vscode

VSCode Fedora can not create /Debug/ direcory due to permissions

I want to have code completion for Unity3d but due to this error my code completion is not working: Unable to create directory "/Debug/". Access to the path "/Debug/" is denied.

Full Log:

Starting OmniSharp server at 5/19/2019, 12:24:08 AM Target: /home/julius/Unity/1234562654/1234562654.sln

OmniSharp server started with Mono 5.18.1. Path: /home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/OmniSharp.exe PID: 4974

    Starting OmniSharp on fedora 30.0 (x64)
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: StandAlone 15.0 - "/home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
    MSBUILD_EXE_PATH environment variable set to '/home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
    Registered MSBuild instance: StandAlone 15.0 - "/home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
        MSBuildExtensionsPath = /usr/lib/mono/xbuild
        BypassFrameworkInstallChecks = true
        CscToolPath = /home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Roslyn
        CscToolExe = csc.exe
        MSBuildToolsPath = /home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin
        TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks
    Detecting Cake files in '/home/julius/Unity/1234562654'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    Detecting projects in '/home/julius/Unity/1234562654/1234562654.sln'.
    Queue project update for '/home/julius/Unity/1234562654/Assembly-CSharp.csproj'
    Detecting CSX files in '/home/julius/Unity/1234562654'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Loading project: /home/julius/Unity/1234562654/Assembly-CSharp.csproj
    Configuration finished.
    Omnisharp server running using Stdio at location '/home/julius/Unity/1234562654' on host 4874.
    Unable to create directory "/Debug/". Access to the path "/Debug/" is denied.
    Could not write state file "/Debug/Assembly-CSharp.csprojAssemblyReference.cache". Could not find a part of the path "/Debug/Assembly-CSharp.csprojAssemblyReference.cache".
    Could not write lines to file "/Debug/Assembly-CSharp.csproj.CoreCompileInputs.cache". Could not find a part of the path "/Debug/Assembly-CSharp.csproj.CoreCompileInputs.cache".
    Failed to load project file '/home/julius/Unity/1234562654/Assembly-CSharp.csproj'.

/home/julius/Unity/1234562654/Assembly-CSharp.csproj /home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1144,5): Error: Unable to create directory "/Debug/". Access to the path "/Debug/" is denied. /home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(2130,5): Error: Could not write state file "/Debug/Assembly-CSharp.csprojAssemblyReference.cache". Could not find a part of the path "/Debug/Assembly-CSharp.csprojAssemblyReference.cache". /home/julius/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(3450,5): Error: Could not write lines to file "/Debug/Assembly-CSharp.csproj.CoreCompileInputs.cache". Could not find a part of the path "/Debug/Assembly-CSharp.csproj.CoreCompileInputs.cache".

    Attempted to update project that is not loaded: /home/julius/Unity/1234562654/Assembly-CSharp.csproj

Environment data

.NET Core SDK (reflecting any global.json): Version: 2.2.204 Commit: 8757db13ec

Runtime Environment: OS Name: fedora OS Version: 30 OS Platform: Linux RID: linux-x64 Base Path: /usr/share/dotnet/sdk/2.2.204/

Host (useful for support): Version: 2.2.5 Commit: 0a3c9209c0

.NET Core SDKs installed: 2.2.204 [/usr/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

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

VS Code version: 1.34.0 C# Extension version: 1.19.1

Steps to reproduce

Open a c# project created by Unity3d

Expected behavior

Omnisharp server should load and code completions should work

Actual behavior

Omnisharp server does not load and errors out because of missing permissions regarding the /Debug/ folder

What i have done

reinstall everything

created time in 2 days

issue openedOmniSharp/omnisharp-vscode

Don't switch to Debug Console when using integrated terminal

This isn't really an issue, more of a feature request. Currently, if the console in a launch task is set to integratedTerminal, the window switches over to the build task information in the debug console (I have to manually switch windows to the terminal). This gets annoying after a while, and I found this issue when searching for why this behavior occurs. Turns out it can be controlled by an option "internalConsoleOptions": "neverOpen". While users could be expected to write this on their own, is it possible you could implement it in the code itself? Kind of like how vscode-node-debug did it?

created time in 2 days

issue openedOmniSharp/omnisharp-vscode

Omnisharp uses wrong MSBuild version

Issue Description

OmniSharp is selecting the wrong MSBuild location when opening .NET Core 2 applications. The logs tell the story:

[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 3 MSBuild instance(s)
            1: Visual Studio Build Tools 2019 16.0.28803.452 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
            2: Visual Studio Professional 2017 15.8.28010.2041 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
            3: StandAlone 15.0 - "C:\Users\x\.vscode\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Professional 2017 15.8.28010.2041 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"

Here we see that even though MSBuild 16 is detected via VS Build Tools 2019, it chooses MSBuild 15. Then:

[fail]: OmniSharp.MSBuild.ProjectLoader
        Project X is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project X supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)
[fail]: OmniSharp.MSBuild.ProjectLoader
        Version 2.2.204 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.8.169.51996. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.
[fail]: OmniSharp.MSBuild.ProjectLoader
        The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.

We see that Omnisharp is complaining about not having version 16 of MSBuild available. But as we saw above, it's right there 😭. Weirdly, it suggests downgrading the SDK rather than fixing MSBuild. This seems exactly backwards for the majority case.

I tried creating an omnisharp.json like this:

{
    "MsBuild": {
        "MSBuildSdksPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\Current\\Bin"
    }
}

But it had no effect. I also tried pointing it to the dotnet sdk folder. That didn't do anything, either.

Steps to Reproduce

  • Install VS 2017
  • Install VS 2019 build tooling
  • Create an ASP NetCore 2 app and open it in VSCode

Expected Behavior

Project is loaded successfully. Visual Studio installs don't mess with OmniSharp.

Actual Behavior

Project is not loaded. OmniSharp behavior is coupled to installs of VS.

Logs

OmniSharp log

I hit this issue in the middle of a project upgrade from DotNetCore 1.0 to 2.0, so there is a fair amount of noise here about broken projects. <details> Starting OmniSharp server at 5/18/2019, 12:26:01 PM Target: c:\Source\Project\Project.sln

OmniSharp server started. Path: C:\Users\user.vscode\extensions\ms-vscode.csharp-1.19.1.omnisharp\1.32.19\OmniSharp.exe PID: 3860

    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    DotNetPath set to dotnet
    Located 3 MSBuild instance(s)
        1: Visual Studio Build Tools 2019 16.0.28803.452 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin"
        2: Visual Studio Professional 2017 15.8.28010.2041 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
        3: StandAlone 15.0 - "C:\Users\user\.vscode\extensions\ms-vscode.csharp-1.19.1\.omnisharp\1.32.19\.msbuild\Current\Bin"
    Registered MSBuild instance: Visual Studio Professional 2017 15.8.28010.2041 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
    Detecting Cake files in 'c:\Source\Project'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    Detecting projects in 'c:\Source\Project\Project.sln'.
    Queue project update for 'c:\Source\Project\src\Project.Generation\Project.Generation.csproj'
    Queue project update for 'c:\Source\Project\src\Project.Server\Project.Server.csproj'
    Queue project update for 'c:\Source\Project\test\Project.Server.IntegrationTests\Project.Server.IntegrationTests.csproj'
    Queue project update for 'c:\Source\Project\test\Project.Server.Tests\Project.Server.Tests.csproj'
    Detecting CSX files in 'c:\Source\Project'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Loading project: c:\Source\Project\src\Project.Generation\Project.Generation.csproj
    Configuration finished.
    Omnisharp server running using Stdio at location 'c:\Source\Project' on host 16876.
    Project Project.Server is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project Project.Server supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)
    Version 2.2.204 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.8.169.51996. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.
    The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.
    Failed to load project file 'c:\Source\Project\src\Project.Generation\Project.Generation.csproj'.

c:\Source\Project\src\Project.Generation\Project.Generation.csproj C:\Source\Project\src\Project.Generation\Project.Generation.csproj(0,0): Error: Project Project.Server is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project Project.Server supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2) c:\Source\Project\src\Project.Server\Project.Server.csproj(0,0): Error: Version 2.2.204 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.8.169.51996. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available. c:\Source\Project\src\Project.Server\Project.Server.csproj(0,0): Error: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.

    Loading project: c:\Source\Project\src\Project.Server\Project.Server.csproj
    Failed to load project file 'c:\Source\Project\src\Project.Server\Project.Server.csproj'.

c:\Source\Project\src\Project.Server\Project.Server.csproj(1,1) Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found. c:\Source\Project\src\Project.Server\Project.Server.csproj at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError) at Microsoft.Build.Evaluation.Evaluator4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult) at Microsoft.Build.Evaluation.Evaluator4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement) at Microsoft.Build.Evaluation.Evaluator4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport) at Microsoft.Build.Evaluation.Evaluator4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext) at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.Initialize(IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary2 globalProperties, String toolsVersion) at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath) in C:\projects\omnisharp-roslyn\src\OmniSharp.MSBuild\ProjectLoader.cs:line 129 at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath) in C:\projects\omnisharp-roslyn\src\OmniSharp.MSBuild\ProjectLoader.cs:line 72 at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectIdInfo projectIdInfo, ProjectLoader loader) in C:\projects\omnisharp-roslyn\src\OmniSharp.MSBuild\ProjectFile\ProjectFileInfo.cs:line 94 at OmniSharp.MSBuild.ProjectManager.<>c__DisplayClass30_0.<LoadProject>b__0() in C:\projects\omnisharp-roslyn\src\OmniSharp.MSBuild\ProjectManager.cs:line 293 at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func1 loader) in C:\projects\omnisharp-roslyn\src\OmniSharp.MSBuild\ProjectManager.cs:line 304

    Loading project: c:\Source\Project\test\Project.Server.IntegrationTests\Project.Server.IntegrationTests.csproj
    Project Project.Server is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project Project.Server supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)
    Version 2.2.204 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.8.169.51996. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.
    The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.
    Failed to load project file 'c:\Source\Project\test\Project.Server.IntegrationTests\Project.Server.IntegrationTests.csproj'.

c:\Source\Project\test\Project.Server.IntegrationTests\Project.Server.IntegrationTests.csproj C:\Source\Project\test\Project.Server.IntegrationTests\Project.Server.IntegrationTests.csproj(0,0): Error: Project Project.Server is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project Project.Server supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2) c:\Source\Project\src\Project.Server\Project.Server.csproj(0,0): Error: Version 2.2.204 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.8.169.51996. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available. c:\Source\Project\src\Project.Server\Project.Server.csproj(0,0): Error: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.

    Loading project: c:\Source\Project\test\Project.Server.Tests\Project.Server.Tests.csproj
    Project Project.Server is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project Project.Server supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2)
    Version 2.2.204 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.8.169.51996. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available.
    The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.
    Failed to load project file 'c:\Source\Project\test\Project.Server.Tests\Project.Server.Tests.csproj'.

c:\Source\Project\test\Project.Server.Tests\Project.Server.Tests.csproj C:\Source\Project\test\Project.Server.Tests\Project.Server.Tests.csproj(0,0): Error: Project Project.Server is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project Project.Server supports: netcoreapp2.2 (.NETCoreApp,Version=v2.2) c:\Source\Project\src\Project.Server\Project.Server.csproj(0,0): Error: Version 2.2.204 of the .NET Core SDK requires at least version 16.0.0 of MSBuild. The current available version of MSBuild is 15.8.169.51996. Change the .NET Core SDK specified in global.json to an older version that requires the MSBuild version currently available. c:\Source\Project\src\Project.Server\Project.Server.csproj(0,0): Error: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.

    Attempted to update project that is not loaded: c:\Source\Project\src\Project.Generation\Project.Generation.csproj
    Attempted to update project that is not loaded: c:\Source\Project\src\Project.Server\Project.Server.csproj
    Attempted to update project that is not loaded: c:\Source\Project\test\Project.Server.IntegrationTests\Project.Server.IntegrationTests.csproj
    Attempted to update project that is not loaded: c:\Source\Project\test\Project.Server.Tests\Project.Server.Tests.csproj

</details>

C# log

<details> Empty </details>

Environment information

VSCode version: 1.34.0 C# Extension: 1.19.1

<details><summary>Dotnet Information</summary> .NET Core SDK (reflecting any global.json): Version: 2.2.204 Commit: 8757db13ec

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

Host (useful for support): Version: 2.2.5 Commit: 0a3c9209c0

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

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

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

created time in 2 days

issue openedOmniSharp/omnisharp-roslyn

[LSP] Failed to handle notification initialize

I'm working on integrating vim-ale directly with omnisharp-roslyn's LSP server, as omnisharp-vim does not use the LSP as far as I can tell. This is so I can get auto-completion through vim-ale and LSP and not through omnicomplete itself.

In doing so, I've been getting errors back from omnisharp's LSP server. More specifically:

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":1,"message":"Failed to handle notification initialize - System.NullReferenceException: Object reference not set to an instance of an object\n at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.OmniSharp.Extensions.Embedded.MediatR.IRequestHandler<OmniSharp.Extensions.LanguageServer.Protoco l.Models.InitializeParams,OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult>.Handle (OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams request, System.Threading.CancellationToken token) [0x0022d] in <c33e73e38fa14bf293bda2f62d3759c4>:0 \n at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline2[TRequ est,TResponse].Handle (TRequest request, System.Threading.CancellationToken cancellationToken, OmniSharp.Extensions.Embedded.MediatR.RequestHandlerDelegate1[TResponse] next) [0x000e1] in <c33e73e38fa14bf293bda2f62d3759c4>:0 \n at OmniSharp.Extensions.LanguageServer.Server.LspRequestRouter.RouteRequest (OmniSharp.Extensions.JsonRpc.IHandlerDescriptor descriptor , OmniSharp.Extensions.JsonRpc.Server.Request request) [0x002e2] in <c33e73e38fa14bf293bda2f62d3759c4>:0 "}}Content-Length: 129

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Finished: Routing Request (1) initialize in 1000ms"}}Content-Length: 1158

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":1,"message":"Failed to handle notification initialize - System.NullReferenceException: Object reference not set to an instance of an object\n  at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.OmniSharp.Extensions.Embedded.MediatR.IRequestHandler<OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams,OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult>.Handle (OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams request, System.Threading.CancellationToken token) [0x0022d] in <c33e73e38fa14bf293bda2f62d3759c4>:0 \n  at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2[TRequest,TResponse].Handle (TRequest request, System.Threading.CancellationToken cancellationToken, OmniSharp.Extensions.Embedded.MediatR.RequestHandlerDelegate`1[TResponse] next) [0x000e1] in <c33e73e38fa14bf293bda2f62d3759c4>:0 \n  at OmniSharp.Extensions.LanguageServer.Server.LspRequestRouter.RouteRequest (OmniSharp.Extensions.JsonRpc.IHandlerDescriptor descriptor, OmniSharp.Extensions.JsonRpc.Server.Request request) [0x002e2] in <c33e73e38fa14bf293bda2f62d3759c4>:0 "}}Content-Length: 129

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Finished: Routing Request (1) initialize in 1000ms"}}Content-Length: 1158

{"jsonrpc":"2.0","id":"1","error":{"code":-32602,"message":"Internal Error - System.NullReferenceException: Object reference not set to an instance of an object\n  at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.OmniSharp.Extensions.Embedded.MediatR.IRequestHandler<OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams,OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult>.Handle (OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams request, System.Threading.CancellationToken token) [0x0022d] in <c33e73e38fa14bf293bda2f62d3759c4>:0 \n  at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2[TRequest,TResponse].Handle (TRequest request, System.Threading.CancellationToken cancellationToken, OmniSharp.Extensions.Embedded.MediatR.RequestHandlerDelegate`1[TResponse] next) [0x000e1] in <c33e73e38fa14bf293bda2f62d3759c4>:0 \n  at OmniSharp.Extensions.LanguageServer.Server.LspRequestRouter.RouteRequest (OmniSharp.Extensions.JsonRpc.IHandlerDescriptor descriptor, OmniSharp.Extensions.JsonRpc.Server.Request request) [0x002e2] in <c33e73e38fa14bf293bda2f62d3759c4>:0 "}}

For reference, this seems to be the command that vim-ale is sending to initialize the LSP:

{"method": "initialize", "jsonrpc": "2.0", "id": 1, "params": {"initializationOptions": {}, "rootUri": "file:///Users/luiz/projects/mgsb", "capabilities": {}, "rootPath": "/Users/luiz/projects/mgsb", "processId": 28524}}

Any idea what's up?

created time in 3 days

issue commentOmniSharp/omnisharp-roslyn

LSP no text synchronization.

I think we are experiencing the same issue, but your workaround hasn't fixed it for me. I can save the file with many blank lines, but as soon as my client gets beyond the saved state of the file I get the out of bounds exception. I also only get proper completion responses based on the saved state of the file.

This maybe expected behavior for omnisharp in lsp mode. Omnisharp responds to initialization with a textDocumentSync: 0. According the spec, this response indicates that the server does not synchronize files. However, the logs indicate that the language server is trying to sync the files, and it sounds like you have found some success in getting this working.

It would be great to get some insight from a contributor as to the current state of lsp mode.

ElayneB

comment created time in 3 days

issue commentOmniSharp/omnisharp-vscode

OmniSharp fails to run with the new 1.19 update

@bruce31 OmniSharp does NOT run on .NET Framework on macOS/Linux. On macOS/Linux, it will run on Mono. On Windows it will run on the full .NET Framework.

mat1jaczyyy

comment created time in 4 days

issue commentOmniSharp/omnisharp-vscode

OmniSharp fails to run with the new 1.19 update

Why .Net Framework?? Mac version is working fine with no version of .Net Framework installed. Can't it use .net core or Mono if present (or can that be an option when installing as a user install?)

mat1jaczyyy

comment created time in 4 days

issue closedOmniSharp/omnisharp-vscode

.NETFramework not found in macOS

Issue Description

I get this message in the output of VSCode

[fail]: OmniSharp.MSBuild.ProjectLoader
 The reference assemblies for framework ".NETFramework,Version=v4.7.1" were not found. 
To resolve this, install the SDK or Targeting Pack for this framework version 
or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the
Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.

Steps to Reproduce

Fresh macOS install, install the newest .NET SDK, install the newest VSCode with OmniSharp Start a Unity C# project

Expected Behavior

Actual Behavior

Logs

OmniSharp log

<details>Post the output from Output-->OmniSharp log here</details>

C# log

<details>Post the output from Output-->C# here</details>

Environment information

VSCode version: 1.33.1 C# Extension: 1.19.1

<details><summary>Mono Information</summary> OmniSharp using built-in mono</details> <details><summary>Dotnet Information</summary> .NET Core SDK (reflecting any global.json): Version: 2.2.106 Commit: aa79b139a8

Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /usr/local/share/dotnet/sdk/2.2.106/

Host (useful for support): Version: 2.2.4 Commit: f95848e524

.NET Core SDKs installed: 2.2.106 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download </details> <details><summary>Visual Studio Code Extensions</summary>

Extension Author Version
atom-keybindings ms-vscode 3.0.6
azure-account ms-vscode 0.8.3
change-case wmaurer 1.0.0
code-settings-sync Shan 3.2.9
code-spell-checker streetsidesoftware 1.7.10
csharp ms-vscode 1.19.1
csharpfixformat Leopotam 0.0.81
EditorConfig EditorConfig 0.13.0
gremlins nhoizey 0.9.0
ignore-gitignore stubailo 1.0.1
Material-theme zhuangtongfa 2.23.0
ruby rebornix 0.22.3
seti-icons qinjia 0.1.3
shaderlabvscodefree amlovey 1.1.3
tabsanity jedmao 0.0.11
terminal-tabs Tyriar 0.2.0
unity-code-snippets kleber-swf 1.3.0
unity-debug Unity 2.7.2
vscode-open-in-sourcetree morrislaptop 0.6.0
vscode-subword-navigation ow 1.2.0
vscode-todo-plus fabiospampinato 4.13.0
vscode-toggle-quotes BriteSnow 0.3.2
vscode-unitymeta PTD 0.0.5

</details>

closed time in 4 days

antpaw

issue commentOmniSharp/omnisharp-vscode

.NETFramework not found in macOS

@filipw I've tried to install mono again and this time I've used the v5.20.1 version and it worked, thanks

antpaw

comment created time in 4 days

fork kc17/omnisharp-vscode

Official C# support for Visual Studio Code (powered by OmniSharp)

fork in 4 days

issue commentOmniSharp/omnisharp-vscode

C# Extension not working for VS Code

I was able to solve a very similar issue by following the directions here: https://github.com/OmniSharp/omnisharp-vscode/issues/2509#issuecomment-420318250.

haripulaparthi

comment created time in 4 days

issue closedOmniSharp/omnisharp-vscode

macOS - OmniSharp can't find Sdk.

Issue Description

macOS - Omnisharp can't find Sdk. selenium/nunit/vscode

Steps to Reproduce

Open project

Expected Behavior

.NET and Intellisense available

Actual Behavior

.NET and Intellisense not available. The Sdk 'Microsoft.NET.Sdk' specified could not be found. Attempted to updated project that was not loaded.

Logs

OmniSharp log

<details>Starting OmniSharp server at 5/15/2019, 4:30:36 PM Target: /Users/aloflin/Projects/IRONQA

OmniSharp server started. Path: /Users/aloflin/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/run PID: 5606

    Starting OmniSharp on MacOS 10.14.5 (x64)
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: StandAlone 15.0 - "/Users/aloflin/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
    MSBUILD_EXE_PATH environment variable set to '/Users/aloflin/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
    Registered MSBuild instance: StandAlone 15.0 - "/Users/aloflin/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin"
        MSBuildExtensionsPath = /Users/aloflin/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild
        BypassFrameworkInstallChecks = true
        CscToolPath = /Users/aloflin/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin/Roslyn
        CscToolExe = csc.exe
        MSBuildToolsPath = /Users/aloflin/.vscode/extensions/ms-vscode.csharp-1.19.1/.omnisharp/1.32.19/omnisharp/.msbuild/Current/Bin
    Detecting Cake files in '/Users/aloflin/Projects/IRONQA'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    No solution files found in '/Users/aloflin/Projects/IRONQA'
    Queue project update for '/Users/aloflin/Projects/IRONQA/IRONQA.csproj'
    Detecting CSX files in '/Users/aloflin/Projects/IRONQA'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Loading project: /Users/aloflin/Projects/IRONQA/IRONQA.csproj
    Configuration finished.
    Omnisharp server running using Stdio at location '/Users/aloflin/Projects/IRONQA' on host 5577.
    Failed to load project file '/Users/aloflin/Projects/IRONQA/IRONQA.csproj'.

/Users/aloflin/Projects/IRONQA/IRONQA.csproj(1,1) Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found. /Users/aloflin/Projects/IRONQA/IRONQA.csproj at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject (System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, System.Object[] args) [0x00040] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Shared.ProjectErrorUtilities.VerifyThrowInvalidProject[T1] (System.Boolean condition, System.String errorSubCategoryResourceName, Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00003] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject[T1] (Microsoft.Build.Shared.IElementLocation elementLocation, System.String resourceName, T1 arg0) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Evaluator4[P,I,M,D].ExpandAndLoadImportsFromUnescapedImportExpressionConditioned (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, System.Collections.Generic.List1[Microsoft.Build.Construction.ProjectRootElement]& projects, Microsoft.Build.BackEnd.SdkResolution.SdkResult& sdkResult, System.Boolean throwOnFileNotExistsError) [0x0024e] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Evaluator4[P,I,M,D].ExpandAndLoadImports (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement, Microsoft.Build.BackEnd.SdkResolution.SdkResult& sdkResult) [0x00027] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Evaluator4[P,I,M,D].EvaluateImportElement (System.String directoryOfImportingFile, Microsoft.Build.Construction.ProjectImportElement importElement) [0x0000d] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Evaluator4[P,I,M,D].PerformDepthFirstPass (Microsoft.Build.Construction.ProjectRootElement currentProjectOrImport) [0x000e6] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Evaluator4[P,I,M,D].Evaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Framework.BuildEventContext buildEventContext) [0x00103] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Evaluator4[P,I,M,D].Evaluate (Microsoft.Build.Evaluation.IEvaluatorData4[P,I,M,D] data, Microsoft.Build.Construction.ProjectRootElement root, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, System.Int32 maxNodeCount, Microsoft.Build.Collections.PropertyDictionary1[T] environmentProperties, Microsoft.Build.BackEnd.Logging.ILoggingService loggingService, Microsoft.Build.Evaluation.IItemFactory2[S,T] itemFactory, Microsoft.Build.Evaluation.IToolsetProvider toolsetProvider, Microsoft.Build.Evaluation.ProjectRootElementCache projectRootElementCache, Microsoft.Build.Framework.BuildEventContext buildEventContext, Microsoft.Build.BackEnd.SdkResolution.ISdkResolverService sdkResolverService, System.Int32 submissionId, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0002d] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project.Reevaluate (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x0005e] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00035] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.BackEnd.Logging.ILoggingService loggingServiceForEvaluation, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary (Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00007] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project.Initialize (System.Collections.Generic.IDictionary2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00126] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings, Microsoft.Build.Evaluation.Context.EvaluationContext evaluationContext) [0x00093] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary2[TKey,TValue] globalProperties, System.String toolsVersion, System.String subToolsetVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection, Microsoft.Build.Evaluation.ProjectLoadSettings loadSettings) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, System.Collections.Generic.IDictionary2[TKey,TValue] globalProperties, System.String toolsVersion, Microsoft.Build.Evaluation.ProjectCollection projectCollection) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.Collections.Generic.IDictionary2[TKey,TValue] globalProperties, System.String toolsVersion) [0x000f7] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at Microsoft.Build.Evaluation.ProjectCollection.LoadProject (System.String fileName, System.String toolsVersion) [0x00000] in <4e0a1f1d78cf4c1ebd6f9a3dbcebf3bb>:0 at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore (System.String filePath) [0x0003f] in <a4c7941b61dc4fa68e357d83057f98fa>:0 at OmniSharp.MSBuild.ProjectLoader.BuildProject (System.String filePath) [0x0000d] in <a4c7941b61dc4fa68e357d83057f98fa>:0 at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load (System.String filePath, OmniSharp.MSBuild.ProjectIdInfo projectIdInfo, OmniSharp.MSBuild.ProjectLoader loader) [0x00015] in <a4c7941b61dc4fa68e357d83057f98fa>:0 at OmniSharp.MSBuild.ProjectManager+<>c__DisplayClass30_0.<LoadProject>b__0 () [0x00000] in <a4c7941b61dc4fa68e357d83057f98fa>:0 at (wrapper delegate-invoke) System.Func1[System.ValueTuple3[OmniSharp.MSBuild.ProjectFile.ProjectFileInfo,System.Collections.Immutable.ImmutableArray1[OmniSharp.MSBuild.Logging.MSBuildDiagnostic],OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs]].invoke_TResult() at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject (System.String projectFilePath, System.Func1[TResult] loader) [0x0001b] in <a4c7941b61dc4fa68e357d83057f98fa>:0

    Attempted to update project that is not loaded: /Users/aloflin/Projects/IRONQA/IRONQA.csproj

</details>

C# log

<details>Post the output from Output-->C# here</details>

Environment information

VSCode version: 1.33.1 C# Extension: 1.19.1

<details><summary>Mono Information</summary> OmniSharp using built-in mono</details> <details><summary>Dotnet Information</summary> .NET Core SDK (reflecting any global.json): Version: 2.2.106 Commit: aa79b139a8

Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /usr/local/share/dotnet/sdk/2.2.106/

Host (useful for support): Version: 2.2.4 Commit: f95848e524

.NET Core SDKs installed: 2.2.106 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

</details> <details><summary>Visual Studio Code Extensions</summary>

Extension Author Version
csharp ms-vscode 1.19.1
dark-plus-material vangware 2.0.7
dotnet-test-explorer formulahendry 0.7.0
elastic ria 0.13.3
mssql ms-mssql 1.6.0
vscode-http-client mkloubert 0.34.0

</details>

closed time in 4 days

loflina

issue commentOmniSharp/omnisharp-vscode

macOS - OmniSharp can't find Sdk.

I was able to resolve my own problem by following directions from this post: https://github.com/OmniSharp/omnisharp-vscode/issues/2509#issuecomment-420318250

  • Turn off auto updating in VSCode (cmd+shift+p: disable auto updating extensions)
  • Uninstall the C# powered by OmniSharp in VSCode Extensions
  • Manually install the VISX of version 15.2 (cmd+shift+p: install from visx) csharp-1.15.2.zip
loflina

comment created time in 4 days

issue commentOmniSharp/omnisharp-roslyn

Roslynator.Analyzers

oh great! 👍

timjroberts

comment created time in 4 days

issue commentOmniSharp/omnisharp-roslyn

Roslynator.Analyzers

Installed the latest VSCode (1.34.0) and the latest omnisharp.roslyn (1.32.20-beta.15) and all appears to be working again. Thanks @filipw and @savpek. Absolutely love have Analyzer support!

timjroberts

comment created time in 4 days

issue commentOmniSharp/omnisharp-vscode

Missing .NET Core metadata documentation in VS Code

I had the same issue and as hugly workaround I converted my lib to a netcore app while in a project netstandard used to build only library from csproj file I included cs files and excluded Program.cs; this allowed me to work using intellisense working from netcoreapp type workspace and vscode to shown xml documentation referring correct assembly through F12 ( eg. System.Threading.dll ) while from netstandard project it shown a fake one ( netstandard.dll )

example netstd csproj

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
        <LangVersion>8.0</LangVersion>
        <RootNamespace>myns</RootNamespace>
        <GenerateDocumentationFile>true</GenerateDocumentationFile>
    </PropertyGroup>
    <ItemGroup>
...
    </ItemGroup>
    <ItemGroup>
        <Compile Include="../server-lib/*.cs" />
        <Compile Remove="Program.cs" />
    </ItemGroup>
</Project>
lfr

comment created time in 4 days

issue commentOmniSharp/omnisharp-vscode

Missing .NET Core metadata documentation in VS Code

I only see documentation for my own XML headers. For standard functions like IEnumerable.Any there is no documentation shown in the popover.

lfr

comment created time in 4 days

issue commentOmniSharp/omnisharp-vscode

.NETFramework not found in macOS

@filipw thanks, i will try again in 8 hours, the affected machine is not available to me right now

antpaw

comment created time in 4 days

issue commentOmniSharp/omnisharp-vscode

.NETFramework not found in macOS

could you set "omnisharp.loggingLevel": "debug", retry and post the OmniSharp log here?

antpaw

comment created time in 4 days

more