Closed patreeceeo closed 6 years ago
From the first couple of lines of your omnisharp-roslyn output I can see that you're using the stdio version. OmniSharp-vim uses Http, and needs the http version of omnisharp-roslyn, as described in the README.
Hey, thanks for getting back to me. How do I run the http version? Here's everything in that latest release of omnisharp-roslyn:
~/Downloads/omnisharp-osx
☻ ls -R
bin etc framework lib omnisharp run
./bin:
mono.osx
./etc:
config.osx mono
./etc/mono:
4.5
./etc/mono/4.5:
machine.config
./framework:
Microsoft.Build.Engine.dll System.Numerics.dll
Microsoft.Build.Tasks.v4.0.dll System.ObjectModel.dll
Microsoft.Build.Utilities.v4.0.dll System.Reflection.Extensions.dll
Mono.Data.Tds.dll System.Reflection.Primitives.dll
Mono.Posix.dll System.Reflection.dll
Mono.Security.dll System.Resources.ResourceManager.dll
System.AppContext.dll System.Runtime.Extensions.dll
System.Collections.Concurrent.dll System.Runtime.InteropServices.RuntimeInformation.dll
System.Collections.dll System.Runtime.InteropServices.dll
System.ComponentModel.Composition.dll System.Runtime.Numerics.dll
System.ComponentModel.Primitives.dll System.Runtime.Serialization.dll
System.ComponentModel.TypeConverter.dll System.Runtime.dll
System.ComponentModel.dll System.Security.Cryptography.Encoding.dll
System.Configuration.dll System.Security.Cryptography.Primitives.dll
System.Console.dll System.Security.Cryptography.X509Certificates.dll
System.Core.dll System.Security.dll
System.Data.dll System.ServiceModel.Internals.dll
System.Diagnostics.Contracts.dll System.Text.Encoding.Extensions.dll
System.Diagnostics.Debug.dll System.Text.Encoding.dll
System.Diagnostics.Tools.dll System.Text.RegularExpressions.dll
System.Diagnostics.Tracing.dll System.Threading.Tasks.Dataflow.dll
System.Dynamic.Runtime.dll System.Threading.Tasks.Parallel.dll
System.EnterpriseServices.dll System.Threading.Tasks.dll
System.Globalization.dll System.Threading.Thread.dll
System.IO.Compression.FileSystem.dll System.Threading.dll
System.IO.Compression.dll System.Transactions.dll
System.IO.FileSystem.Primitives.dll System.Xaml.dll
System.IO.FileSystem.dll System.Xml.Linq.dll
System.IO.dll System.Xml.ReaderWriter.dll
System.Linq.Expressions.dll System.Xml.XDocument.dll
System.Linq.Parallel.dll System.Xml.dll
System.Linq.dll System.dll
System.Net.Http.dll mscorlib.dll
System.Numerics.Vectors.dll netstandard.dll
./lib:
libMonoPosixHelper.dylib
./omnisharp:
Cake.Scripting.Abstractions.dll OmniSharp.Cake.dll
Cake.Scripting.Transport.dll OmniSharp.Cake.pdb
Dotnet.Script.DependencyModel.NuGet.dll OmniSharp.DotNet.ProjectModel.dll
Dotnet.Script.DependencyModel.dll OmniSharp.DotNet.ProjectModel.pdb
Microsoft.CodeAnalysis.CSharp.Features.dll OmniSharp.DotNet.dll
Microsoft.CodeAnalysis.CSharp.Scripting.dll OmniSharp.DotNet.pdb
Microsoft.CodeAnalysis.CSharp.Workspaces.dll OmniSharp.DotNetTest.dll
Microsoft.CodeAnalysis.CSharp.dll OmniSharp.DotNetTest.pdb
Microsoft.CodeAnalysis.Features.dll OmniSharp.Extensions.JsonRpc.dll
Microsoft.CodeAnalysis.Scripting.dll OmniSharp.Extensions.LanguageServerProtocol.dll
Microsoft.CodeAnalysis.Workspaces.Desktop.dll OmniSharp.Host.dll
Microsoft.CodeAnalysis.Workspaces.dll OmniSharp.Host.pdb
Microsoft.CodeAnalysis.dll OmniSharp.LanguageServerProtocol.dll
Microsoft.DotNet.PlatformAbstractions.dll OmniSharp.LanguageServerProtocol.dll.config
Microsoft.Extensions.Caching.Abstractions.dll OmniSharp.LanguageServerProtocol.pdb
Microsoft.Extensions.Caching.Memory.dll OmniSharp.MSBuild.dll
Microsoft.Extensions.CommandLineUtils.dll OmniSharp.MSBuild.pdb
Microsoft.Extensions.Configuration.Abstractions.dll OmniSharp.Plugins.dll
Microsoft.Extensions.Configuration.Binder.dll OmniSharp.Plugins.pdb
Microsoft.Extensions.Configuration.CommandLine.dll OmniSharp.Roslyn.CSharp.dll
Microsoft.Extensions.Configuration.EnvironmentVariables.dll OmniSharp.Roslyn.CSharp.pdb
Microsoft.Extensions.Configuration.FileExtensions.dll OmniSharp.Roslyn.dll
Microsoft.Extensions.Configuration.Json.dll OmniSharp.Roslyn.pdb
Microsoft.Extensions.Configuration.dll OmniSharp.Script.dll
Microsoft.Extensions.DependencyInjection.Abstractions.dll OmniSharp.Script.pdb
Microsoft.Extensions.DependencyInjection.dll OmniSharp.Stdio.dll
Microsoft.Extensions.DependencyModel.dll OmniSharp.Stdio.pdb
Microsoft.Extensions.FileProviders.Abstractions.dll OmniSharp.deps.json
Microsoft.Extensions.FileProviders.Physical.dll OmniSharp.exe
Microsoft.Extensions.FileSystemGlobbing.dll OmniSharp.exe.config
Microsoft.Extensions.Logging.Abstractions.dll OmniSharp.pdb
Microsoft.Extensions.Logging.Console.dll System.Collections.Immutable.dll
Microsoft.Extensions.Logging.dll System.Composition.AttributedModel.dll
Microsoft.Extensions.Options.ConfigurationExtensions.dll System.Composition.Convention.dll
Microsoft.Extensions.Options.dll System.Composition.Hosting.dll
Microsoft.Extensions.PlatformAbstractions.dll System.Composition.Runtime.dll
Microsoft.Extensions.Primitives.dll System.Composition.TypedParts.dll
Microsoft.TestPlatform.CommunicationUtilities.dll System.Diagnostics.DiagnosticSource.dll
Microsoft.TestPlatform.CoreUtilities.dll System.Diagnostics.FileVersionInfo.dll
Microsoft.TestPlatform.PlatformAbstractions.dll System.Diagnostics.StackTrace.dll
Microsoft.TestPlatform.VsTestConsole.TranslationLayer.dll System.Globalization.Calendars.dll
Microsoft.VisualStudio.TestPlatform.Common.dll System.IO.Compression.ZipFile.dll
Microsoft.VisualStudio.TestPlatform.ObjectModel.dll System.IO.Compression.dll
Microsoft.Win32.Primitives.dll System.Net.Http.dll
Newtonsoft.Json.dll System.Net.Sockets.dll
NuGet.Common.dll System.Reflection.Metadata.dll
NuGet.Configuration.dll System.Runtime.CompilerServices.Unsafe.dll
NuGet.DependencyResolver.Core.dll System.Security.Cryptography.Algorithms.dll
NuGet.Frameworks.dll System.Text.Encoding.CodePages.dll
NuGet.LibraryModel.dll System.Threading.Tasks.Dataflow.dll
NuGet.Packaging.Core.dll System.ValueTuple.dll
NuGet.Packaging.dll System.Xml.ReaderWriter.dll
NuGet.ProjectModel.dll System.Xml.XPath.XDocument.dll
NuGet.Protocol.dll System.Xml.XPath.dll
NuGet.Versioning.dll System.Xml.XmlDocument.dll
OmniSharp.Abstractions.dll msbuild
OmniSharp.Abstractions.pdb
./omnisharp/msbuild:
15.0
./omnisharp/msbuild/15.0:
Bin Microsoft.Common.props
./omnisharp/msbuild/15.0/Bin:
MSBuild.dll Microsoft.NETFramework.targets
MSBuild.dll.config Microsoft.ServiceModel.targets
Microsoft.Build.Framework.dll Microsoft.VisualBasic.CrossTargeting.targets
Microsoft.Build.Tasks.Core.dll Microsoft.VisualBasic.CurrentVersion.targets
Microsoft.Build.Utilities.Core.dll Microsoft.VisualBasic.targets
Microsoft.Build.dll Microsoft.WinFx.targets
Microsoft.CSharp.CrossTargeting.targets Microsoft.WorkflowBuildExtensions.targets
Microsoft.CSharp.CurrentVersion.targets Microsoft.Xaml.targets
Microsoft.CSharp.Mono.targets NuGet.Build.Tasks.dll
Microsoft.CSharp.targets NuGet.Commands.dll
Microsoft.Common.CrossTargeting.targets NuGet.Common.dll
Microsoft.Common.CurrentVersion.targets NuGet.Configuration.dll
Microsoft.Common.Mono.targets NuGet.Frameworks.dll
Microsoft.Common.overridetasks NuGet.ProjectModel.dll
Microsoft.Common.targets NuGet.Protocol.dll
Microsoft.Common.tasks NuGet.Versioning.dll
Microsoft.Data.Entity.targets NuGet.targets
Microsoft.NETFramework.CurrentVersion.props Roslyn
Microsoft.NETFramework.CurrentVersion.targets SdkResolvers
Microsoft.NETFramework.props
./omnisharp/msbuild/15.0/Bin/Roslyn:
Microsoft.Build.Tasks.CodeAnalysis.dll System.Security.AccessControl.dll
Microsoft.CSharp.Core.targets System.Security.Claims.dll
Microsoft.CodeAnalysis.CSharp.Scripting.dll System.Security.Cryptography.Algorithms.dll
Microsoft.CodeAnalysis.CSharp.dll System.Security.Cryptography.Encoding.dll
Microsoft.CodeAnalysis.Scripting.dll System.Security.Cryptography.Primitives.dll
Microsoft.CodeAnalysis.dll System.Security.Cryptography.X509Certificates.dll
Microsoft.DiaSymReader.Native.amd64.dll System.Security.Principal.Windows.dll
Microsoft.DiaSymReader.Native.x86.dll System.Text.Encoding.CodePages.dll
Microsoft.Managed.Core.targets System.ValueTuple.dll
System.AppContext.dll System.Xml.ReaderWriter.dll
System.Collections.Immutable.dll System.Xml.XPath.XDocument.dll
System.Console.dll System.Xml.XPath.dll
System.Diagnostics.FileVersionInfo.dll System.Xml.XmlDocument.dll
System.Diagnostics.StackTrace.dll csc.exe
System.IO.Compression.dll csc.exe.config
System.IO.FileSystem.Primitives.dll csc.rsp
System.IO.FileSystem.dll csi.exe
System.IO.Pipes.AccessControl.dll csi.exe.config
System.IO.Pipes.dll csi.rsp
System.Reflection.Metadata.dll
./omnisharp/msbuild/15.0/Bin/SdkResolvers:
Microsoft.DotNet.MSBuildSdkResolver
./omnisharp/msbuild/15.0/Bin/SdkResolvers/Microsoft.DotNet.MSBuildSdkResolver:
Microsoft.DotNet.MSBuildSdkResolver.dll libhostfxr.dylib
Oh I see, there's separate release for that, nevermind. I'll try that.
Yep, it's a separate download, give that one a go.
It's working now, thanks!
Great, glad to hear it!
System info:
.vimrc
(see the end for OmniSharp stuff):Description
I went through all the other issues about this error message and still couldn't get it working. I just keep getting this same error message. I'm starting OmniSharp (https://github.com/OmniSharp/omnisharp-roslyn/releases) from the command-line with
let g:Omnisharp_start_server = 0
. It appears that it's not getting any requests from Vim, at least it's not printing anything after its initial startup messages. And it appears to start just fine:(Possible) steps to reproduce
Edit a CS file on the system described above, then run any
:OmniSharp...
command.Misc
I am able to get it working with OmniSharp-Server though, so it seems to be something about the Roslyn version.
Thanks in advance.