.NET Core SDK (reflecting any global.json):
Version: 2.2.203
Commit: e5bab63eca
Runtime Environment:
OS Name: ubuntu
OS Version: 19.04
OS Platform: Linux
RID: linux-x64
Base Path: /opt/dotnet/sdk/2.2.203/
Host (useful for support):
Version: 2.2.4
Commit: f95848e524
.NET Core SDKs installed:
2.2.203 [/opt/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.4 [/opt/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.4 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.4 [/opt/dotnet/shared/Microsoft.NETCore.App]
Version: 1.33.1
1.19.0
When i open an C# file
Don't receive de message
[fail]: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /.../Unity3D/Teste/Assembly-CSharp.csproj
@rodrigofbm Please share your complete omnisharp log as well as the output of
dotnet --info and mono --version.
@rchande
omnisharp:
Starting OmniSharp server at 06/05/2019 18:02:03
Target: /home/rodrigo/Documentos/Unity3D/Teste/Teste.sln
OmniSharp server started with Mono 5.18.0.
Path: /home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/omnisharp/OmniSharp.exe
PID: 3674
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on ubuntu 19.4 (x64)
[info]: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 15.0 - "/home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to '/home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 15.0 - "/home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/omnisharp/.msbuild/Current/Bin"
MSBuildExtensionsPath = /usr/lib/mono/xbuild
BypassFrameworkInstallChecks = true
CscToolPath = /home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/omnisharp/.msbuild/Current/Bin/Roslyn
CscToolExe = csc.exe
MSBuildToolsPath = /home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/omnisharp/.msbuild/Current/Bin
TargetFrameworkRootPath = /usr/lib/mono/xbuild-frameworks
[info]: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/home/rodrigo/Documentos/Unity3D/Teste'.
[info]: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
[info]: OmniSharp.WorkspaceInitializer
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
[info]: OmniSharp.MSBuild.ProjectSystem
Detecting projects in '/home/rodrigo/Documentos/Unity3D/Teste/Teste.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
Queue project update for '/home/rodrigo/Documentos/Unity3D/Teste/Assembly-CSharp.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/home/rodrigo/Documentos/Unity3D/Teste'.
[info]: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: /home/rodrigo/Documentos/Unity3D/Teste/Assembly-CSharp.csproj
[info]: OmniSharp.WorkspaceInitializer
Configuration finished.
[info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/home/rodrigo/Documentos/Unity3D/Teste' on host 3554.
[warn]: OmniSharp.MSBuild.ProjectLoader
Unable to create directory "/Debug/". Access to the path "/Debug/" is denied.
[warn]: OmniSharp.MSBuild.ProjectLoader
Could not write state file "/Debug/Assembly-CSharp.csprojAssemblyReference.cache". Could not find a part of the path "/Debug/Assembly-CSharp.csprojAssemblyReference.cache".
[fail]: OmniSharp.MSBuild.ProjectLoader
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".
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file '/home/rodrigo/Documentos/Unity3D/Teste/Assembly-CSharp.csproj'.
/home/rodrigo/Documentos/Unity3D/Teste/Assembly-CSharp.csproj
/home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1144,5): Error: Unable to create directory "/Debug/". Access to the path "/Debug/" is denied.
/home/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/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/rodrigo/.vscode/extensions/ms-vscode.csharp-1.19.0/.omnisharp/1.32.19-beta.43/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".
[fail]: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /home/rodrigo/Documentos/Unity3D/Teste/Assembly-CSharp.csproj
dotnet:
.NET Core SDK (reflecting any global.json):
Version: 2.2.203
Commit: e5bab63eca
Runtime Environment:
OS Name: ubuntu
OS Version: 19.04
OS Platform: Linux
RID: linux-x64
Base Path: /opt/dotnet/sdk/2.2.203/
Host (useful for support):
Version: 2.2.4
Commit: f95848e524
.NET Core SDKs installed:
2.2.203 [/opt/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.4 [/opt/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.4 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.4 [/opt/dotnet/shared/Microsoft.NETCore.App]
mono:
Mono JIT compiler version 5.18.0.240 (Debian 5.18.0.240+dfsg-2ubuntu2 Wed Apr 17 23:39:09 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: supported, not enabled.
Suspend: preemptive
GC: sgen (concurrent by default)
I also have this problem since upgrading to ubuntu 19.04
Did you find a fix?
@lonix1 still in the same. I've tried something but unsuccessfully. I'm waiting here for support.
I fixed my problem - maybe it'll help you. I added the official mono repository, and updated to the latest mono-devel from there.
@lonix1 it works! Thanks man!
@ionix1 it worked for me too. I had the same issue since upgrading to Ubuntu 19.04. Thanks!
Most helpful comment
I fixed my problem - maybe it'll help you. I added the official mono repository, and updated to the latest
mono-develfrom there.