OmniSharp / omnisharp-vim

Vim omnicompletion (intellisense) and more for C#
http://www.omnisharp.net
MIT License
1.72k stars 168 forks source link

Most of Omnisharp commands not working #645

Closed simonsanchezart closed 4 years ago

simonsanchezart commented 4 years ago

Hello! I'm trying to use NeoVim with Unity. Autocompletion works, linting too (for the most part)

What doesn't work is the majority of Omnisharps commands, for example Rename, Documentation, Highlight, etc... The only ones that I know that work are: Install, OpenLog, RestartServer, RestartAllServers, Status, StartServer (and similar)

I haven't tried all of them, here's an example: KDyzMKW2tI

Should rename OnDisable, doesn't.

My log:

`NVIM v0.4.4

OmniSharp server started. Path: C:\Users\Simon\AppData\Local\omnisharp-vim\omnisharp-roslyn\OmniSharp.exe Target: C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data\Saving data.sln PID: 5756

    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    DotNetPath set to dotnet
    Located 2 MSBuild instance(s)
        1: Visual Studio Community 2019 16.7.30523.141 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
        2: StandAlone 16.8.0 - "C:\Users\Simon\AppData\Local\omnisharp-vim\omnisharp-roslyn\.msbuild\Current\Bin"
    Registered MSBuild instance: Visual Studio Community 2019 16.7.30523.141 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
    Detecting Cake files in 'C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data'.
    Could not find any Cake files
    Detecting projects in 'C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data\Saving data.sln'.
    Queue project update for 'C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data\Assembly-CSharp.csproj'
    Detecting CSX files in 'C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
    Loading project: C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data\Assembly-CSharp.csproj
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
    Configuration finished.
    Omnisharp server running using Stdio at location 'C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data' on host -1.
    Miscellaneous file: C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data\Assets\Data1.cs added to workspace

Replaying requests for buffer 1

    Successfully loaded project file 'C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data\Assembly-CSharp.csproj'.

All projects loaded

    Adding project 'C:\Users\Simon\Desktop\@Documents\Game Dev\Unity\Saving data\Assembly-CSharp.csproj'
    Update project: Assembly-CSharp

Replaying on-load requests `

nickspoons commented 4 years ago

Hi @simonsanchezart,

This is a neovim problem, #499 (it is mentioned in the readme). The issue has been fixed in neovim nightly, so your options are either to get hold of a nightly build (see linked issue) or use vim.