Closed
Description
Regression: Cannot use two or more open sessions in FCS 43.7.200+
Please find attached two projects, new (bad), old (good):
_231012_1018-43.7.200-regression.zip
Last good packages, see the project folder old_good
dotnet run
works fine, it creates and invokes two sessions.
<PackageReference Include="FSharp.Core" Version="7.0.0" />
<PackageReference Include="FSharp.Compiler.Service" Version="42.7.101" />
Regression starts with these packages, see the project folder new_bad
dotnet run
fails to invoke the second session.
<PackageReference Include="FSharp.Core" Version="7.0.200" />
<PackageReference Include="FSharp.Compiler.Service" Version="43.7.200" />
Error
[Loading C:\Users\roman.kuzmin\source\repos\FSCS\43.7.200-regression\new_bad\Test2\Test4.fsx]
System.TypeLoadException: Could not load type 'FSI_0001.Test3' from assembly 'FSI-ASSEMBLY, Version=0.0.0.32767, Culture=neutral, PublicKeyToken=null'.
at <StartupCode$FSI_0002>.$FSI_0002_Test4$fsx.main@()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Stopped due to error
Known workarounds
Close all opened sessions before opening and invoking a new session.
(But in my case using 2+ open sessions is the design, not a mistake).
Related information
- Operating system - Windows 10
- .NET Runtime kind .NET Core 7
- Editing Tools - Visual Studio 2022, 17.7.5
Metadata
Metadata
Assignees
Type
Projects
Status
Done