The latest release of .Net Core (2.1.400) finally includes a working FSI:
dotnet "C:\Program Files\dotnet\sdk\2.1.400\FSharp\fsi.exe"
Microsoft (R) F# Interactive version 10.2.3 for F# 4.5
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
>
How do I set it in FSharp.fsiFilePath?
TIA
.NET SDK 2.1.400 does not include a working FSI - you'll find soon that anything beyond trivial code execution will fail, such as using an API from an assembly. It's an artifact of the build of the F# compiler SDK for .NET Core. When F# Interactive works properly for .NET Core, we'll make an announcement and have commands such as dotnet fsi available.
As such there won’t be any effort to integrate it with Ionide in its current shape - we will wait for any true public preview / beta / release candidate.
Was running some simple scripts, did not know it is not official yet.
Sorry about that.
@boyedarat if you are adventurous, create a /usr/bin/fsharpi file that is on your PATH, (remember to chmod +x it) that contains:
dotnet ~/.dotnet/sdk/`dotnet --version`/FSharp/fsi.exe
To extend @abk-x 's comment, for windows:
Create a .cmd file that contains:
dotnet "{path to fsi.exe within dotnet-sdk }"
dotnet "C:\Users\darien.shannon\scoop\apps\dotnet-sdk\2.1.403\sdk\2.1.403\FSharp\fsi.exe"
In VS Code settings, set the 'Fsi File Path' to reference this .cmd file:
"FSharp.fsiFilePath": "C:\\Users\\darien.shannon\\scoop\\apps\\dotnet-sdk\\2.1.403\\sdk\\2.1.403\\FSharp\\fsharpi\\fsi.cmd"
dotnet fsi is a thing these days. I put this in /usr/local/bin/fsharpi on my mac:
#!/usr/bin/env bash
dotnet fsi
EDIT: Just found the “Use Sdk Scripts: Use 'dotnet fsi' instead of 'fsi.exe'/'fsharpi'” checkbox. It works!
Most helpful comment
dotnet fsiis a thing these days. I put this in/usr/local/bin/fsharpion my mac:EDIT: Just found the “Use Sdk Scripts: Use 'dotnet fsi' instead of 'fsi.exe'/'fsharpi'” checkbox. It works!