Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Strange behave #457

Closed
Ja-rek opened this issue Apr 4, 2019 · 15 comments
Closed

Strange behave #457

Ja-rek opened this issue Apr 4, 2019 · 15 comments

Comments

@Ja-rek
Copy link

Ja-rek commented Apr 4, 2019

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

@nickspoons
Copy link
Member

@Ja-rek versions of OmniSharp-roslyn from v1.32.2 to v1.32.12 do not work with OmniSharp-vim.

Have you tried with the current default version installed by the :OmniSharpInstall command, v1.32.13?

@Ja-rek
Copy link
Author

Ja-rek commented Apr 4, 2019

Yes, I tried but also it doesn't work.
Only Omnisharp v1.32.1 and dotnet 2.1.300-rc work property.
Maybe there is any problem with my distro.?
How to diagnostic the problem.?
How to run the server in debug mode.?

My OS:
Arch Linux x86_64
Kernel: 5.0.5-arch1-1-ARCH

@nickspoons
Copy link
Member

nickspoons commented Apr 4, 2019

I think there's a problem with OmniSharp-roslyn, where it's not logging output.

/home/me/.omnisharp/omnisharp-roslyn/run -v -s /home/me/code/mysolution.sln

That should output diagnostics, but doesn't appear to, which makes diagnosing an error very difficult.

Is there anything useful in the :OmniSharpOpenPythonLog log? (first, add let g:OmniSharp_loglevel = 'debug' to your .vimrc). Note that a lot gets logged here, including timeout errors when OmniSharp-roslyn is first loaded. It might be worth finding the log file, deleting it, then starting a fresh instance of vim, so that the file is populated with fresh log data.

@nickspoons
Copy link
Member

@Ja-rek is it possible for you to install vscode and test with that? The reason I ask is that vscode uses the stdio version of OmniSharp-roslyn rather than the http version, and that version does output debug information.

Alternatively, you could try just downloading the omnisharp-linux-x64.tar.gz stdio release from OmniSharp-roslyn, extract it, then try running that in the same way as you have been running the http version. It won't work with OmniSharp-vim, but the output on the command line might help diagnose the problem:

cd /home/me/code
/home/me/downloads/omnisharp-stdio/run -v -s /home/me/code/mysolution.sln

@nickspoons
Copy link
Member

@Ja-rek I have created an issue regarding the output diagnostics: OmniSharp/omnisharp-roslyn#1446

@Ja-rek
Copy link
Author

Ja-rek commented Apr 5, 2019

Actually, I don't need to use: OmniSharpOpenPythonLog
Because I got an exception of the server:

 ~/.omnisharp/omnisharp-roslyn/run -s -v /home/jk/Downloads/test/test.sln
System.ArgumentException: OmniSharp only supports being launched with a directory path or a path to a solution (.sln) file.
Parameter name: path
  at OmniSharp.Services.OmniSharpEnvironment..ctor (System.String path, System.Int32 hostPid, Microsoft.Extensions.Logging.LogLevel logLevel, System.String[] additionalArguments) [0x00062] in <eb3831daf0d34e89860cf96db22ea171>:0
  at OmniSharp.CommandLineApplicationExtensions.CreateEnvironment (OmniSharp.CommandLineApplication application) [0x0001d] in <eb3831daf0d34e89860cf96db22ea171>:0
  at OmniSharp.Http.Driver.Program+<>c__DisplayClass0_1.<Main>b__1 () [0x00000] in <ba01c1eaf26f46eb9acc819afdb3d192>:0
  at OmniSharp.CommandLineApplication+<>c__DisplayClass11_0.<OnExecute>b__0 () [0x0000b] in <eb3831daf0d34e89860cf96db22ea171>:0
  at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute (System.String[] args) [0x00039] in <344a1e8cd6594b17b1e01f8df6ae8827>:0
  at OmniSharp.CommandLineApplication.Execute (System.Collections.Generic.IEnumerable`1[T] args) [0x00042] in <eb3831daf0d34e89860cf96db22ea171>:0
  at OmniSharp.Http.Driver.Program+<>c__DisplayClass0_0.<Main>b__0 () [0x00028] in <ba01c1eaf26f46eb9acc819afdb3d192>:0
  at OmniSharp.HostHelpers.Start (System.Func`1[TResult] action) [0x0001c] in <eb3831daf0d34e89860cf96db22ea171>:0

la /home/jk/Downloads/test                                                                                                                                                                                                                                             173 ↵
total 8.0K
drwxr-xr-x 4 jk users 4.0K Apr  4 07:07 example
-rw-r--r-- 1 jk users 1.7K Mar 30 14:54 test.sln

It has no sens.

@nickspoons
Copy link
Member

nickspoons commented Apr 5, 2019

@Ja-rek I think that one just means use absolute paths (use /home/jk/.omnisharp/... instead of ~/.omnisharp/...

@nickspoons
Copy link
Member

You also have your flags the wrong way around. You need to put the server path after the -v flag, .../run -v -s /home/jk/...

@Ja-rek
Copy link
Author

Ja-rek commented Apr 5, 2019

/home/jk/.omnisharp/omnisharp-roslyn/run -v -s /home/jk/Downloads/Test

No text response :P

@Ja-rek
Copy link
Author

Ja-rek commented Apr 5, 2019

 mono /home/jk/Downloads/omnisharp/OmniSharp.exe -v -s /home/jk/Downloads/Test/Test.sln
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.Cake, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":1,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.DotNet, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":2,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.DotNetTest, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":3,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.Host, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":4,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.MSBuild, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":5,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.Roslyn, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":6,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.Roslyn.CSharp, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":7,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.Script, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":8,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.CompositionHostBuilder","Message":"Loaded OmniSharp.Shared, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null"},"Seq":9,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Stdio.Host","Message":"Starting OmniSharp on arch 0.0 (x64)"},"Seq":10,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Services.DotNetCliService","Message":"DotNetPath set to dotnet"},"Seq":11,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Located 2 MSBuild instance(s)\n            1: Mono 15.0 - \"/usr/lib/mono/msbuild/15.0/bin\"\n            2: StandAlone 15.0 - \"/home/jk/Downloads/omnisharp/msbuild/15.0/Bin\""},"Seq":12,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"SUCCESS: Resolved to '/usr/lib/mono/msbuild/15.0/bin/Microsoft.Build.Utilities.Core.dll' (name-only)."},"Seq":13,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"SUCCESS: Resolved to '/usr/lib/mono/msbuild/15.0/bin/Microsoft.Build.Tasks.Core.dll' (name-only)."},"Seq":14,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"SUCCESS: Resolved to '/usr/lib/mono/msbuild/15.0/bin/Microsoft.Build.Framework.dll' (name-only)."},"Seq":15,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"SUCCESS: Resolved to '/usr/lib/mono/msbuild/15.0/bin/Microsoft.Build.dll' (name-only)."},"Seq":16,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Registered MSBuild instance: Mono 15.0 - \"/usr/lib/mono/msbuild/15.0/bin\"\n            CscToolPath = /home/jk/Downloads/omnisharp/msbuild/15.0/Bin/Roslyn\n
       CscToolExe = csc.exe"},"Seq":17,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Workspaces, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'"},"Seq":18,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll'."},"Seq":19,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.CodeAnalysis.VisualBasic.Features, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'"},"Seq":20,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.VisualBasic.Features.dll'."},"Seq":21,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Cake.CakeProjectSystem","Message":"Detecting Cake files in '/home/jk/Downloads/Test'."},"Seq":22,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Cake.CakeProjectSystem","Message":"Could not find any Cake files"},"Seq":23,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.WorkspaceInitializer","Message":"Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration."},"Seq":24,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.ProjectSystem","Message":"MSBuild environment: \nMode: Standalone\nRunningTests: False\nRunningInVisualStudio: False\nMSBuildToolsDirectory32: /usr/lib/mono/msbuild/15.0/bin\nMSBuildToolsDirectory64: /usr/lib/mono/msbuild/15.0/bin\nMSBuildSDKsPath: /usr/lib/mono/msbuild/15.0/bin/Sdks\nCurrentMSBuildConfigurationFile: /usr/lib/mono/msbuild/15.0/bin/MSBuild.dll.config\nCurrentMSBuildExePath: /usr/lib/mono/msbuild/15.0/bin/MSBuild.dll\nCurrentMSBuildToolsDirectory: /usr/lib/mono/msbuild/15.0/bin\nVisualStudioInstallRootDirectory: \nMSBuildExtensionsPath: /usr/lib/mono/msbuild/15.0/bin\n"},"Seq":25,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.ProjectLoader","Message":"'CscToolPath' set to '/home/jk/Downloads/omnisharp/msbuild/15.0/Bin/Roslyn'"},"Seq":26,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.ProjectLoader","Message":"'CscToolExe' set to 'csc.exe'"},"Seq":27,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.ProjectSystem","Message":"Detecting projects in '/home/jk/Downloads/Test/Test.sln'."},"Seq":28,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.ProjectManager","Message":"Queue project update for '/home/jk/Downloads/Test/example/example.csproj'"},"Seq":29,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Script.ScriptProjectSystem","Message":"Detecting CSX files in '/home/jk/Downloads/Test'."},"Seq":30,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Script.ScriptProjectSystem","Message":"Could not find any CSX files"},"Seq":31,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.WorkspaceInitializer","Message":"Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider"},"Seq":32,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=3.0.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35'"},"Seq":33,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.Workspaces.resources.dll'."},"Seq":34,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.CodeAnalysis.Workspaces.resources, Version=3.0.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35'"},"Seq":35,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.Workspaces.resources.dll'."},"Seq":36,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.CodeAnalysis.CSharp.Workspaces.resources, Version=3.0.0.0, Culture=en-GB, PublicKeyToken=31bf3856ad364e35'"},"Seq":37,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll'."},"Seq":38,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.CodeAnalysis.CSharp.Workspaces.resources, Version=3.0.0.0, Culture=en, PublicKeyToken=31bf3856ad364e35'"},"Seq":39,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll'."},"Seq":40,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.ProjectManager","Message":"Loading project: /home/jk/Downloads/Test/example/example.csproj"},"Seq":41,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.WorkspaceInitializer","Message":"Configuration finished."},"Seq":42,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Stdio.Host","Message":"Omnisharp server running using Stdio at location '/home/jk/Downloads/Test' on host -1."},"Seq":43,"Type":"event"}
{"Event":"started","Body":null,"Seq":44,"Type":"event"}

{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.Build.resources, Version=15.1.0.0, Culture=en-GB, PublicKeyToken=b03f5f7f11d50a3a'"},"Seq":45,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.Build.resources.dll'."},"Seq":46,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"Attempting to resolve 'Microsoft.Build.Tasks.Core.resources, Version=15.1.0.0, Culture=en-GB, PublicKeyToken=b03f5f7f11d50a3a'"},"Seq":47,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/15.0/bin/Microsoft.Build.Tasks.Core.resources.dll'."},"Seq":48,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.ProjectManager","Message":"Successfully loaded project file '/home/jk/Downloads/Test/example/example.csproj'."},"Seq":49,"Type":"event"}
{"Event":"MsBuildProjectDiagnostics","Body":{"FileName":"/home/jk/Downloads/Test/example/example.csproj","Warnings":[],"Errors":[]},"Seq":50,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.ProjectManager","Message":"Adding project '/home/jk/Downloads/Test/example/example.csproj'"},"Seq":51,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.MSBuild.ProjectManager","Message":"{\n  \"FilePath\": \"/home/jk/Downloads/Test/example/example.csproj\",\n  \"Directory\": \"/home/jk/Downloads/Test/example\",\n  \"Id\": {\n    \"Id\": \"50535556-0547-44b3-8cc5-edd321d5b9fc\"\n  },\n  \"Guid\": \"00000000-0000-0000-0000-000000000000\",\n  \"Name\": \"example\",\n  \"AssemblyName\": \"example\",\n  \"TargetPath\": \"/home/jk/Downloads/Test/example/bin/Debug/netcoreapp2.2/example.dll\",\n  \"OutputPath\": \"bin\\\\Debug\\\\netcoreapp2.2\\\\\",\n  \"IntermediateOutputPath\": \"obj\\\\Debug\\\\netcoreapp2.2\\\\\",\n  \"ProjectAssetsFile\": \"/home/jk/Downloads/test/example/obj/project.assets.json\",\n  \"Configuration\": \"Debug\",\n  \"Platform\": \"AnyCPU\",\n  \"TargetFramework\": {\n    \"Identifier\": \".NETCoreApp\",\n    \"Version\": {\n      \"Major\": 2,\n      \"Minor\": 2,\n      \"Build\": -1,\n      \"Revision\": -1,\n      \"MajorRevision\": -1,\n      \"MinorRevision\": -1\n    },\n    \"Profile\": \"\",\n    \"FullName\": \".NETCoreApp,Version=v2.2\"\n
 },\n  \"TargetFrameworks\": [\n    \"netcoreapp2.2\"\n  ],\n  \"OutputKind\": 0,\n  \"LanguageVersion\": 0,\n  \"NullableContextOptions\": 0,\n  \"AllowUnsafeCode\": false,\n  \"DocumentationFile\": \"\",\n  \"PreprocessorSymbolNames\": [\n    \"TRACE\",\n    \"DEBUG\",\n    \"NETCOREAPP\",\n    \"NETCOREAPP2_2\"\n  ],\n  \"SuppressedDiagnosticIds\": [\n    \"CS1701\",\n    \"CS1702\",\n    \"CS1701\",\n    \"CS1702\",\n    \"CS2008\"\n  ],\n  \"SignAssembly\": false,\n  \"AssemblyOriginatorKeyFile\": \"\",\n  \"RuleSet\": null,\n  \"SourceFiles\": [\n    \"/home/jk/Downloads/Test/example/Program.cs\",\n    \"/home/jk/Downloads/Test/example/tets.cs\",\n    \"/tmp/.NETCoreApp,Version=v2.2.AssemblyAttributes.cs\",\n    \"/home/jk/Downloads/Test/example/obj/Debug/netcoreapp2.2/example.AssemblyInfo.cs\"\n  ],\n  \"References\": [],\n  \"ProjectReferences\": [],\n  \"PackageReferences\": [\n    {\n      \"Dependency\": {\n        \"Id\": \"Microsoft.NETCore.App\",\n        \"Include\": [],\n        \"Exclude\": [],\n        \"VersionRange\": {\n          \"IsFloating\": false,\n
         \"Float\": null,\n          \"OriginalString\": \"2.2\",\n          \"HasLowerBound\": true,\n          \"HasUpperBound\": false,\n          \"HasLowerAndUpperBounds\": false,\n          \"IsMinInclusive\": true,\n          \"IsMaxInclusive\": false,\n          \"MaxVersion\": null,\n          \"MinVersion\": {\n            \"Version\": {\n              \"Major\": 2,\n              \"Minor\": 2,\n              \"Build\": 0,\n              \"Revision\": 0,\n              \"MajorRevision\": 0,\n              \"MinorRevision\": 0\n
         },\n            \"IsLegacyVersion\": false,\n            \"Revision\": 0,\n            \"IsSemVer2\": false,\n            \"OriginalVersion\": \"2.2\",\n            \"Major\": 2,\n            \"Minor\": 2,\n            \"Patch\": 0,\n            \"ReleaseLabels\": [],\n            \"Release\": \"\",\n            \"IsPrerelease\": false,\n            \"HasMetadata\": false,\n            \"Metadata\": \"\"\n          }\n        }\n      },\n      \"IsImplicitlyDefined\": true\n    }\n  ],\n  \"Analyzers\": [],\n  \"ReferenceAliases\": {},\n  \"ProjectIdInfo\": {\n    \"Id\": {\n      \"Id\": \"50535556-0547-44b3-8cc5-edd321d5b9fc\"\n    },\n    \"IsDefinedInSolution\": true\n  }\n}"},"Seq":52,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.MSBuild.ProjectManager","Message":"Update project: example"},"Seq":53,"Type":"event"}
{"Event":"ProjectConfiguration","Body":{"ProjectGuid":"50535556-0547-44b3-8cc5-edd321d5b9fc","TargetFrameworks":["831790544"],"References":[],"FileExtensions":["-1257278712"]},"Seq":54,"Type":"event"}
{"Event":"UnresolvedDependencies","Body":{"FileName":"/home/jk/Downloads/Test/example/example.csproj","UnresolvedDependencies":[{"Name":"Microsoft.NETCore.App","Version":"[2.2.0, )"}]},"Seq":55,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.DotNet.DotNetProjectSystem","Message":"GetProjectModel: /home/jk/Downloads/Test/example/example.csproj"},"Seq":56,"Type":"event"}
{"Event":"log","Body":{"LogLevel":"DEBUG","Name":"OmniSharp.DotNet.DotNetProjectSystem","Message":"GetProjectModel: /home/jk/Downloads/Test/example/example.csproj"},"Seq":57,"Type":"event"}
{"Event":"ProjectChanged","Body":{"MsBuildProject":{"ProjectGuid":"00000000-0000-0000-0000-000000000000","Path":"/home/jk/Downloads/Test/example/example.csproj","AssemblyName":"example","TargetPath":"/home/jk/Downloads/Test/example/bin/Debug/netcoreapp2.2/example.dll","TargetFramework":".NETCoreApp,Version=v2.2","SourceFiles":["/home/jk/Downloads/Test/example/Program.cs","/home/jk/Downloads/Test/example/tets.cs","/tmp/.NETCoreApp,Version=v2.2.AssemblyAttributes.cs","/home/jk/Downloads/Test/example/obj/Debug/netcoreapp2.2/example.AssemblyInfo.cs"],"TargetFrameworks":[{"Name":".NETCoreApp","FriendlyName":".NETCoreApp","ShortName":"netcoreapp2.2"}],"OutputPath":"bin\\Debug\\netcoreapp2.2\\","IntermediateOutputPath":"obj\\Debug\\netcoreapp2.2\\","Configuration":"Debug","Platform":"AnyCPU","IsExe":true,"IsUnityProject":false}},"Seq":58,"Type":"event"}
{"Event":"ProjectAdded","Body":{"MsBuildProject":{"ProjectGuid":"00000000-0000-0000-0000-000000000000","Path":"/home/jk/Downloads/Test/example/example.csproj","AssemblyName":"example","TargetPath":"/home/jk/Downloads/Test/example/bin/Debug/netcoreapp2.2/example.dll","TargetFramework":".NETCoreApp,Version=v2.2","SourceFiles":["/home/jk/Downloads/Test/example/Program.cs","/home/jk/Downloads/Test/example/tets.cs","/tmp/.NETCoreApp,Version=v2.2.AssemblyAttributes.cs","/home/jk/Downloads/Test/example/obj/Debug/netcoreapp2.2/example.AssemblyInfo.cs"],"TargetFrameworks":[{"Name":".NETCoreApp","FriendlyName":".NETCoreApp","ShortName":"netcoreapp2.2"}],"OutputPath":"bin\\Debug\\netcoreapp2.2\\","IntermediateOutputPath":"obj\\Debug\\netcoreapp2.2\\","Configuration":"Debug","Platform":"AnyCPU","IsExe":true,"IsUnityProject":false}},"Seq":59,"Type":"event"}

"OmniSharp.MSBuild.Discovery.MSBuildLocator","Message":"FAILURE: Could not locate '/usr/lib/mono/msbuild/

Any problem with mono or dotnet-runtime version ?

I installed also: https://aur.archlinux.org/packages/msbuild-stable/

dotnet --version 2.1.300-rc1-008673

Version: 2.2.105 still doesn't work.

@Ja-rek
Copy link
Author

Ja-rek commented Apr 5, 2019

Wasn't better rewriting the Omnisharp-Roslyn to Dotnet Core, JS or any language on JVM? As I understand all of the problems are incompatibilities with other distribution and mono.?

Pity that we can't use the "VS CODE version" of Omnisharp-Roslyn.

@nickspoons
Copy link
Member

@Ja-rek logging has been fixed in the latest HTTP release of OmniSharp-roslyn, 1.32.19, so you could try running it in the terminal in verbose mode and see if you get a better idea of what the problem was for you?

@Ja-rek
Copy link
Author

Ja-rek commented May 19, 2019

Ended on this.

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

But why.?

@nickspoons
Copy link
Member

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
Copy link
Author

Ja-rek commented May 19, 2019

Thank you. It works. :D

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

No branches or pull requests

2 participants