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

Errors during solution loading #3102

Closed
SuddenGunter opened this issue Jun 7, 2019 · 2 comments
Closed

Errors during solution loading #3102

SuddenGunter opened this issue Jun 7, 2019 · 2 comments

Comments

@SuddenGunter
Copy link

Issue Description

If I look to Output tab in vscode, and after some projects are loaded, other fails to load with same error (see logs attached).
May it be caused ~300 projects in same solution?
May it be caused that path for referenced projects in csproj looks like windows-specific (\ - with this char instead of /)?
All projects in solution are .Net Core 2.1 + some .Net Standard 2.0 libraries.

Is there are any useful info I can provide?

Steps to Reproduce

1 Open folder with solution in vscode
2 Open output tab

Expected Behavior

No errors in output tab

Actual Behavior

Errors in output tab

Logs

OmniSharp log

[info]: OmniSharp.MSBuild.ProjectManager Update project: _PROJ_NAME_.PhoneVerification.API [fail]: OmniSharp.MSBuild.ProjectManager Exception thrown while calling event sinks System.InvalidOperationException: object_op ---> System.EntryPointNotFoundException: SystemNative_RealPath at (wrapper managed-to-native) Interop+Sys.RealPath(string) at System.IO.CoreFX.FileSystemWatcher+RunningInstance.Start () [0x00000] in <3f22ea5f607241f9a072ae168e2509e2>:0 at System.IO.CoreFX.FileSystemWatcher.StartRaisingEvents () [0x00067] in <3f22ea5f607241f9a072ae168e2509e2>:0 at System.IO.CoreFX.FileSystemWatcher.StartRaisingEventsIfNotDisposed () [0x00019] in <3f22ea5f607241f9a072ae168e2509e2>:0 at System.IO.CoreFX.FileSystemWatcher.set_EnableRaisingEvents (System.Boolean value) [0x0001d] in <3f22ea5f607241f9a072ae168e2509e2>:0 at (wrapper remoting-invoke-with-check) System.IO.CoreFX.FileSystemWatcher.set_EnableRaisingEvents(bool) at System.IO.CoreFXFileSystemWatcherProxy+<>c.b__9_0 (System.IO.CoreFX.FileSystemWatcher internal_fsw, System.IO.FileSystemWatcher fsw) [0x00048] in <3f22ea5f607241f9a072ae168e2509e2>:0 at System.IO.CoreFXFileSystemWatcherProxy.Operation (System.Action`4[T1,T2,T3,T4] map_op, System.Action`2[T1,T2] object_op, System.Object handle, System.Action`2[T1,T2] cancel_op) [0x00184] in <3f22ea5f607241f9a072ae168e2509e2>:0 --- End of inner exception stack trace --- at System.IO.CoreFXFileSystemWatcherProxy.Operation (System.Action`4[T1,T2,T3,T4] map_op, System.Action`2[T1,T2] object_op, System.Object handle, System.Action`2[T1,T2] cancel_op) [0x001a6] in <3f22ea5f607241f9a072ae168e2509e2>:0 at System.IO.CoreFXFileSystemWatcherProxy.StartDispatching (System.Object handle) [0x00004] in <3f22ea5f607241f9a072ae168e2509e2>:0 at System.IO.FileSystemWatcher.Start () [0x0001b] in <3f22ea5f607241f9a072ae168e2509e2>:0 at System.IO.FileSystemWatcher.set_EnableRaisingEvents (System.Boolean value) [0x0003d] in <3f22ea5f607241f9a072ae168e2509e2>:0 at (wrapper remoting-invoke-with-check) System.IO.FileSystemWatcher.set_EnableRaisingEvents(bool) at Microsoft.AspNetCore.Razor.OmniSharpPlugin.MSBuildProjectDocumentChangeDetector.ProjectLoaded (OmniSharp.MSBuild.Notification.ProjectLoadedEventArgs loadedArgs) [0x00266] in :0 at OmniSharp.MSBuild.ProjectManager.ProcessQueue (System.Threading.CancellationToken cancellationToken) [0x00198] in :0 [info]: OmniSharp.MSBuild.ProjectManager Update project: _PROJ_NAME_.Common.Models [fail]: OmniSharp.MSBuild.ProjectManager Exception thrown while calling event sinks

Environment information

VSCode version: 1.35.0
C# Extension: 1.19.1

Mono Information OmniSharp using global mono :5.20.1
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 2.2.107 Commit: 2212cac826

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.14
OS Platform: Darwin
RID: osx.10.14-x64
Base Path: /usr/local/share/dotnet/sdk/2.2.107/

Host (useful for support):
Version: 2.2.5
Commit: 0a3c9209c0

.NET Core SDKs installed:
2.1.700 [/usr/local/share/dotnet/sdk]
2.2.103 [/usr/local/share/dotnet/sdk]
2.2.107 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
csharp ms-vscode 1.19.1
markdown-all-in-one yzhang 2.3.1
material-icon-theme PKief 3.8.0
Material-theme zhuangtongfa 2.24.1
rainbow-csv mechatroner 1.1.1
vscode-docker PeterJausovec 0.6.2
vscode-icons vscode-icons-team 8.7.0
vscode-yaml redhat 0.4.1
@rchande
Copy link

rchande commented Jun 10, 2019

@SuddenGunter Can you try setting omnisharp.useGlobalMono to never and see if that helps? I wonder if this is an issue with the specific mono installation on your machine (given that it's crashing in .net framework code)

@SuddenGunter
Copy link
Author

SuddenGunter commented Jun 11, 2019

hmm
maybe this is the issue, yeah. I forget that there are several .Net FW projects in that solution. If I'm not interest in them - so can I just ignore this crash warnings?

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