Skip to content

FCS solution tests fail on Mono #8766

@auduchinok

Description

@auduchinok

It looks related to #8721. cc @KevinRansom @cartermp

Tests.Service.ProjectAnalysisTests.Test project28 all symbols in signature

System.TypeInitializationException : The type initializer for '<StartupCode$FSharp-Compiler-Service-Tests>.$Tests.Service.ProjectAnalysisTests' threw ...

System.TypeInitializationException : The type initializer for '<StartupCode$FSharp-Compiler-Service-Tests>.$Tests.Service.ProjectAnalysisTests' threw an exception.
  ----> System.TypeLoadException : Could not load type of field 'Microsoft.Interactive.DependencyManager.AssemblyResolveHandlerCoreclr:handler' (1) due to: Could not resolve type with token 01000013 from typeref (expected class 'System.Runtime.Loader.AssemblyLoadContext' in assembly 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') assembly:System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:System.Runtime.Loader.AssemblyLoadContext member:(null)
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Tests.Service.ProjectAnalysisTests.Test project28 all symbols in signature () [0x00000] in /Users/eugene/Developer/fsharp/tests/service/ProjectAnalysisTests.fs:3944 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 
--TypeLoadException
  at Microsoft.Interactive.DependencyManager.DependencyProvider..ctor (Microsoft.Interactive.DependencyManager.AssemblyResolutionProbe assemblyProbingPaths, Microsoft.Interactive.DependencyManager.NativeResolutionProbe nativeProbingRoots) [0x00014] in /Users/eugene/Developer/fsharp/src/fsharp/Interactive.DependencyManager/DependencyProvider.fs:239 
  at Microsoft.Interactive.DependencyManager.DependencyProvider..ctor (Microsoft.Interactive.DependencyManager.NativeResolutionProbe nativeProbingRoots) [0x00000] in /Users/eugene/Developer/fsharp/src/fsharp/Interactive.DependencyManager/DependencyProvider.fs:298 
  at FSharp.Compiler.CompileOps+TcConfigBuilder.CreateNew (FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage, System.String implicitIncludeDir, System.Boolean isInteractive, System.Boolean isInvalidationSupported, FSharp.Compiler.CompileOps+CopyFSharpCoreFlag defaultCopyFSharpCore, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot) [0x00399] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:2431 
  at FSharp.Compiler.CompileOps+ScriptPreprocessClosure.CreateScriptTextTcConfig[a] (FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, System.String filename, FSharp.Compiler.CompileOps+CodeContext codeContext, System.Boolean useSimpleResolution, System.Boolean useFsiAuxLib, Microsoft.FSharp.Core.FSharpOption`1[T] basicReferences, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] applyCommandLineArgs, System.Boolean assumeDotNetFramework, System.Boolean useSdkRefs, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage) [0x00036] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:5205 
  at FSharp.Compiler.CompileOps+ScriptPreprocessClosure.GetFullClosureOfScriptText (FSharp.Compiler.AbstractIL.Internal.Library+CompilationThreadToken ctok, FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, System.String filename, FSharp.Compiler.Text.ISourceText sourceText, FSharp.Compiler.CompileOps+CodeContext codeContext, System.Boolean useSimpleResolution, System.Boolean useFsiAuxLib, System.Boolean useSdkRefs, FSharp.Compiler.Lexhelp+LexResourceManager lexResourceManager, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] applyCommandLineArgs, System.Boolean assumeDotNetFramework, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage) [0x00000] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:5459 
  at FSharp.Compiler.CompileOps+LoadClosure.ComputeClosureOfScriptText (FSharp.Compiler.AbstractIL.Internal.Library+CompilationThreadToken ctok, FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, System.String filename, FSharp.Compiler.Text.ISourceText sourceText, FSharp.Compiler.CompileOps+CodeContext implicitDefines, System.Boolean useSimpleResolution, System.Boolean useFsiAuxLib, System.Boolean useSdkRefs, FSharp.Compiler.Lexhelp+LexResourceManager lexResourceManager, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] applyCompilerOptions, System.Boolean assumeDotNetFramework, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage) [0x0000b] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:5500 
  at <StartupCode$FSharp-Compiler-Service>.$Service+GetProjectOptionsFromScript@775-2.Invoke (FSharp.Compiler.SourceCodeServices.ErrorScope _arg27) [0x000ac] in /Users/eugene/Developer/fsharp/src/fsharp/service/service.fs:799 
  at FSharp.Compiler.AbstractIL.Internal.Library+CancellableBuilder.Using[c,d] (c resource, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] e) [0x00000] in /Users/eugene/Developer/fsharp/src/absil/illib.fs:811 
  at FSharp.Compiler.AbstractIL.Internal.Library+CancellableModule+delay@746[T].Invoke (System.Threading.CancellationToken ct) [0x00000] in /Users/eugene/Developer/fsharp/src/absil/illib.fs:746 
  at <StartupCode$FSharp-Compiler-Service>.$Reactor+EnqueueAndAwaitOpAsync@181-2[T].Invoke (FSharp.Compiler.AbstractIL.Internal.Library+CompilationThreadToken ctok) [0x00000] in /Users/eugene/Developer/fsharp/src/fsharp/service/Reactor.fs:184 
--- End of stack trace from previous location where exception was thrown ---

  at Microsoft.FSharp.Control.AsyncResult`1[T].Commit () [0x0002c] in <5c64a986dff9fae1a745038386a9645c>:0 
  at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronouslyInCurrentThread[a] (System.Threading.CancellationToken cancellationToken, Microsoft.FSharp.Control.FSharpAsync`1[T] computation) [0x00028] in <5c64a986dff9fae1a745038386a9645c>:0 
  at Microsoft.FSharp.Control.AsyncPrimitives.RunSynchronously[T] (System.Threading.CancellationToken cancellationToken, Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout) [0x00013] in <5c64a986dff9fae1a745038386a9645c>:0 
  at Microsoft.FSharp.Control.FSharpAsync.RunSynchronously[T] (Microsoft.FSharp.Control.FSharpAsync`1[T] computation, Microsoft.FSharp.Core.FSharpOption`1[T] timeout, Microsoft.FSharp.Core.FSharpOption`1[T] cancellationToken) [0x0006e] in <5c64a986dff9fae1a745038386a9645c>:0 
  at <StartupCode$FSharp-Compiler-Service-Tests>.$Tests.Service.ProjectAnalysisTests..cctor () [0x01a93] in /Users/eugene/Developer/fsharp/tests/service/ProjectAnalysisTests.fs:4511 



-----

One or more child tests had errors
  Exception doesn't have a stacktrace



System.TypeInitializationException : The type initializer for '<StartupCode$FSharp-Compiler-Service-Tests>.$Tests.Service.ProjectAnalysisTests' threw an exception.
  ----> System.TypeLoadException : Could not load type of field 'Microsoft.Interactive.DependencyManager.AssemblyResolveHandlerCoreclr:handler' (1) due to: Could not resolve type with token 01000013 from typeref (expected class 'System.Runtime.Loader.AssemblyLoadContext' in assembly 'System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') assembly:System.Runtime.Loader, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:System.Runtime.Loader.AssemblyLoadContext member:(null)  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at Tests.Service.ProjectAnalysisTests.Test project28 all symbols in signature () [0x00000] in /Users/eugene/Developer/fsharp/tests/service/ProjectAnalysisTests.fs:3944 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-10/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 
--TypeLoadException
  at Microsoft.Interactive.DependencyManager.DependencyProvider..ctor (Microsoft.Interactive.DependencyManager.AssemblyResolutionProbe assemblyProbingPaths, Microsoft.Interactive.DependencyManager.NativeResolutionProbe nativeProbingRoots) [0x00014] in /Users/eugene/Developer/fsharp/src/fsharp/Interactive.DependencyManager/DependencyProvider.fs:239 
  at Microsoft.Interactive.DependencyManager.DependencyProvider..ctor (Microsoft.Interactive.DependencyManager.NativeResolutionProbe nativeProbingRoots) [0x00000] in /Users/eugene/Developer/fsharp/src/fsharp/Interactive.DependencyManager/DependencyProvider.fs:298 
  at FSharp.Compiler.CompileOps+TcConfigBuilder.CreateNew (FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage, System.String implicitIncludeDir, System.Boolean isInteractive, System.Boolean isInvalidationSupported, FSharp.Compiler.CompileOps+CopyFSharpCoreFlag defaultCopyFSharpCore, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot) [0x00399] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:2431 
  at FSharp.Compiler.CompileOps+ScriptPreprocessClosure.CreateScriptTextTcConfig[a] (FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, System.String filename, FSharp.Compiler.CompileOps+CodeContext codeContext, System.Boolean useSimpleResolution, System.Boolean useFsiAuxLib, Microsoft.FSharp.Core.FSharpOption`1[T] basicReferences, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] applyCommandLineArgs, System.Boolean assumeDotNetFramework, System.Boolean useSdkRefs, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage) [0x00036] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:5205 
  at FSharp.Compiler.CompileOps+ScriptPreprocessClosure.GetFullClosureOfScriptText (FSharp.Compiler.AbstractIL.Internal.Library+CompilationThreadToken ctok, FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, System.String filename, FSharp.Compiler.Text.ISourceText sourceText, FSharp.Compiler.CompileOps+CodeContext codeContext, System.Boolean useSimpleResolution, System.Boolean useFsiAuxLib, System.Boolean useSdkRefs, FSharp.Compiler.Lexhelp+LexResourceManager lexResourceManager, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] applyCommandLineArgs, System.Boolean assumeDotNetFramework, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage) [0x00000] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:5459 
  at FSharp.Compiler.CompileOps+LoadClosure.ComputeClosureOfScriptText (FSharp.Compiler.AbstractIL.Internal.Library+CompilationThreadToken ctok, FSharp.Compiler.ReferenceResolver+Resolver legacyReferenceResolver, System.String defaultFSharpBinariesDir, System.String filename, FSharp.Compiler.Text.ISourceText sourceText, FSharp.Compiler.CompileOps+CodeContext implicitDefines, System.Boolean useSimpleResolution, System.Boolean useFsiAuxLib, System.Boolean useSdkRefs, FSharp.Compiler.Lexhelp+LexResourceManager lexResourceManager, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] applyCompilerOptions, System.Boolean assumeDotNetFramework, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] tryGetMetadataSnapshot, FSharp.Compiler.AbstractIL.ILBinaryReader+ReduceMemoryFlag reduceMemoryUsage) [0x0000b] in /Users/eugene/Developer/fsharp/src/fsharp/CompileOps.fs:5500 
  at <StartupCode$FSharp-Compiler-Service>.$Service+GetProjectOptionsFromScript@775-2.Invoke (FSharp.Compiler.SourceCodeServices.ErrorScope _arg27) [0x000ac] in /Users/eugene/Developer/fsharp/src/fsharp/service/service.fs:799 
  at FSharp.Compiler.AbstractIL.Internal.Library+CancellableBuilder.Using[c,d] (c resource, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] e) [0x00000] in /Users/eugene/Developer/fsharp/src/absil/illib.fs:811 
  at FSharp.Compiler.AbstractIL.Internal.Library+CancellableModule+delay@746[T].Invoke (System.Threading.CancellationToken ct) [0x00000] in /Users/eugene/Developer/fsharp/src/absil/illib.fs:746 
  at <StartupCode$FSharp-Compiler-Service>.$Reactor+EnqueueAndAwaitOpAsync@181-2[T].Invoke (FSharp.Compiler.AbstractIL.Internal.Library+CompilationThreadToken ctok) [0x00000] in /Users/eugene/Developer/fsharp/src/fsharp/service/Reactor.fs:184 
--- End of stack trace from previous location where exception was thrown ---

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions