You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a succinct description of the issue.
When attempting to instantiate an FsiEvaluationSession object in a dotnet core project, I get the following exception:
Unhandled Exception: System.Exception: Error creating evaluation session: StopProcessingExn None
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession..ctor(FsiEvaluationSessionHostConfig fsi, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, Boolean fsiCollectible, FSharpOption1 legacyReferenceResolver) at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession.Create(FsiEvaluationSessionHostConfig fsiConfig, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, FSharpOption1 collectible, FSharpOption`1 legacyReferenceResolver)
at Program.main(String[] argv) in A:\playground\fsc.netcore\Program.fs:line 22
Repro steps
Provide the steps required to reproduce the problem
Create a dotnet core project:
mkdir fsc.netcore
cd fsc.netcore
dotnet new console -lang F#
dotnet add package FSharp.Compiler.Service -v 14.0.2
Edit the generated Program.fs file to look like this:
open System
open System.Text
open System.IO
open Microsoft.FSharp.Compiler
open Microsoft.FSharp.Compiler.Interactive.Shell
[<EntryPoint>]
let main argv =
let sbOut = StringBuilder()
let sbErr = StringBuilder()
let inStream = new StringReader("")
let outStream = new StringWriter(sbOut)
let errStream = new StringWriter(sbErr)
let fsiConfig = FsiEvaluationSession.GetDefaultConfiguration()
let args = [|"fsi.exe";"--noninteractive";"--nologo";"--gui-"|]
let fsi = FsiEvaluationSession.Create(fsiConfig, args, inStream, outStream, errStream)
0 // return an integer exit code
But as I said, I'm not certain that testing is activated and passing right now. Perhaps @ncave or @enricosada know. I will make a note that we need to revisit this and get this under CI
Please provide a succinct description of the issue.
When attempting to instantiate an FsiEvaluationSession object in a dotnet core project, I get the following exception:
Unhandled Exception: System.Exception: Error creating evaluation session: StopProcessingExn None
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession..ctor(FsiEvaluationSessionHostConfig fsi, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, Boolean fsiCollectible, FSharpOption
1 legacyReferenceResolver) at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession.Create(FsiEvaluationSessionHostConfig fsiConfig, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, FSharpOption
1 collectible, FSharpOption`1 legacyReferenceResolver)at Program.main(String[] argv) in A:\playground\fsc.netcore\Program.fs:line 22
Repro steps
Provide the steps required to reproduce the problem
Create a dotnet core project:
Edit the generated Program.fs file to look like this:
You should see the error mentioned above
Here is the project as a zip archive:
fsc.netcore.zip
Expected behavior
I should be able to create an instance of the FSIEvaluationSession in a dotnet core project.
Actual behavior
Provide a description of the actual behaviour observed.
Known workarounds
None
Related information
Provide any related information
The text was updated successfully, but these errors were encountered: