Omnisharp-vscode: Intellisense not working on Linux Mint 18.2 with Unity 2017.2

Created on 9 Nov 2017  路  3Comments  路  Source: OmniSharp/omnisharp-vscode

Environment data

dotnet --info output:
.NET Command Line Tools (2.0.2)

Product Information:
Version: 2.0.2
Commit SHA-1 hash: a04b4bf512

Runtime Environment:
OS Name: linuxmint
OS Version: 18.2
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/2.0.2/

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

VS Code version: 1.18.0
C# Extension version: 1.13.0

Steps to reproduce

  • Open Unity Editor (latest Linux version)
  • Open C# Project
  • See errors in output log

Expected behavior

No errors and intellisense to work for Unity.

Actual behavior

Starting OmniSharp server at 11/9/2017, 7:13:01 PM
    Target: /home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/unitysimpleroom.sln

OmniSharp server started wth Mono
    Path: /home/ideo/.vscode/extensions/ms-vscode.csharp-1.13.0/.omnisharp/omnisharp/OmniSharp.exe
    PID: 9616

锘縖info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 15.0 - "/usr/lib/mono/msbuild/15.0/bin"
            2: StandAlone 15.0 - "/home/ideo/.vscode/extensions/ms-vscode.csharp-1.13.0/.omnisharp/omnisharp/msbuild/15.0/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 15.0 - "/usr/lib/mono/msbuild/15.0/bin"
            CscToolPath = /home/ideo/.vscode/extensions/ms-vscode.csharp-1.13.0/.omnisharp/omnisharp/msbuild/15.0/Bin/Roslyn
            CscToolExe = csc.exe
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.DotNet.DotNetProjectSystem
        Initializing in /home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom
[info]: OmniSharp.DotNet.DotNetProjectSystem
        Auto package restore: False
[info]: OmniSharp.DotNet.DotNetProjectSystem
        Update workspace context
[info]: OmniSharp.DotNet.DotNetProjectSystem
        Resolving projects references
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
        Detecting projects in '/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/unitysimpleroom.sln'.
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
        Loading project: /home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp.csproj
[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
        Failed to load project file '/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp.csproj'.
/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp.csproj(1,1)
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at OmniSharp.MSBuild.MSBuildProjectSystem.LoadProject (System.String projectFilePath) [0x00038] in <b33b7bcd685c4ae4bb5069e4d26c1bf0>:0 

[info]: OmniSharp.MSBuild.MSBuildProjectSystem
        Loading project: /home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp-Editor.csproj
[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
        Failed to load project file '/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp-Editor.csproj'.
/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp-Editor.csproj(1,1)
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at OmniSharp.MSBuild.MSBuildProjectSystem.LoadProject (System.String projectFilePath) [0x00038] in <b33b7bcd685c4ae4bb5069e4d26c1bf0>:0 

[info]: OmniSharp.MSBuild.MSBuildProjectSystem
        Loading project: /home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp-Editor-firstpass.csproj
[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
        Failed to load project file '/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp-Editor-firstpass.csproj'.
/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom/Assembly-CSharp-Editor-firstpass.csproj(1,1)
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
File name: 'Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
  at OmniSharp.MSBuild.MSBuildProjectSystem.LoadProject (System.String projectFilePath) [0x00038] in <b33b7bcd685c4ae4bb5069e4d26c1bf0>:0 

[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.Stdio.Program
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.Stdio.Program
        Configuration finished.
[info]: OmniSharp.Stdio.Program
        Omnisharp server running using Stdio at location '/home/ideo/Documents/workspaces/unity_workspace/unitysimpleroom' on host 9536.

* Everything worked great before update to 1.18.0 *

update: I have to notice: VSCode integration plugin for Unity doesn't work anymore.

Bug Resolved-Fixed

Most helpful comment

This looks the same as https://github.com/OmniSharp/omnisharp-vscode/issues/1847. Try running sudo apt-get install msbuild

All 3 comments

This looks the same as https://github.com/OmniSharp/omnisharp-vscode/issues/1847. Try running sudo apt-get install msbuild

Everything get work!
Thank you :)

Not a problem. Good luck!

Was this page helpful?
0 / 5 - 0 ratings