Questions tagged [fsi]

fsi is the REPL (read-eval-print-loop) for the F# programming language.

fsi is the REPL (read-eval-print-loop) for the F# programming language.

fsi can either mean standalone console application or F# Interactive embedded in Visual Studio , that allow you to interactively send F# commands that are subsequently compiled and executed. The interface then replies with the type signature and result values, if any.

After which you are presented with a prompt and can start all over again (previously defined functions and variables are retained until you reset the session).

This is a good way to spike functions or do exploratory development.

MSDN info: http://msdn.microsoft.com/en-us/library/dd233175.aspx

81 questions
1
vote
1 answer

Identical F#.NET solution works in FSI under 32-bit OS, but not under 64-bit OS

I have an F#.NET solution with one project in VS 2013 that contains some managed C#.NET and unmanaged C++ DLL references. This solution runs perfectly in FSI under 32-bit Windows 7 Enterprise. However, if I copy everything in the solution to a…
bugfoot
  • 667
  • 7
  • 20
1
vote
1 answer

Visual Studio and F#

F# can be installed and used without visual studio. My questions concern the other side of the coin. Is it possible to upgrade F# keeping the same version of Visual Studio? How to do that? The language is fast moving. The F# ecosystem has already…
NoIdeaHowToFixThis
  • 4,484
  • 2
  • 34
  • 69
1
vote
1 answer

C# class - System.MissingMethodException when in FSI

I have run in a weird behavior. I am tring to use a C# library: the Neo4jClient My code in FSI looks like this: #r "Neo4jClient.dll" #r "Newtonsoft.Json" open System open Neo4jClient // Define your library scripting code here let client = new…
NoIdeaHowToFixThis
  • 4,484
  • 2
  • 34
  • 69
1
vote
1 answer

F# FSI - Is there a limit to the script length? String Literal appears too long

On transferring a F# file -- Jira.fs to a script file -- Jira.fsx I am encountering a problem with a constant string that uses triple quotes and within it contains double quotes (example below) Jira.fs = success Jira.fsx = fails with error FS0010:…
Chris McKelt
  • 1,378
  • 2
  • 17
  • 38
1
vote
1 answer

invoke fsi on memory (not file)

Let's say we have a fsi script like this: #r "System.Core.dll" let script = "Console.WriteLine(\"Hello, World!\")" // fsi script ??? We can use #load to invoke fsi on a file, but is it possible to somehow invoke fsi on an in-memory string without…
The Fiddler
  • 2,726
  • 22
  • 28
1
vote
1 answer

MonoDevelop reset F# interactive pad

Simple question: Is there a way to reset the F# interactive pad in MonoDevelop (not clear it) so that it starts over with a fresh session? And if so, how?
Jwosty
  • 3,497
  • 2
  • 22
  • 50
0
votes
1 answer

proxy in fsi.exe (fsharp interactive)

I am trying to use the Build demo. After adding to the config files of devenv.exe and of fsi.exe, I dont have pb loading dll's anymore. While I could modify the twitter samples to use my company's proxy, the freebase type provider does not seem to…
nicolas
  • 9,549
  • 3
  • 39
  • 83
0
votes
1 answer

FSharp interactive on CentOS 6.2 with Mono 2.10.2 won't run as non-root

Hopefully this has not been asked/answered before, but I haven't found anything that fits my issue. I installed mono on CentOS 6.2 as described here using an rpm and then downloaded FSharp-2.0.0.0. I got it all set up and fsi works great (as long…
Taylor Southwick
  • 1,456
  • 13
  • 14
0
votes
1 answer

Huge performance difference running f# same code on fsi 4.0.30319.1 and 2.0.0.0

I am running the same F# code with the two versions of fsi.exe which I can find under my FSharp-2.0.0.0 install: C:\Program Files\FSharp-2.0.0.0\bin\fsi.exe - Microsoft (R) F# 2.0 Interactive build 2.0.0 C:\Program…
ioss
  • 105
  • 1
  • 10
0
votes
0 answers

FSI : Bind but do not display

Issue If I use let with a long array in fsi, FSI outputs a lot of data: - let abc = System.IO.Directory.GetFiles("c:/Windows/System32");; val abc: string array = [|"c:/Windows/System32\07409496-a423-4a3e-b620-2cfb01a9318d_Hype"+[21 chars]; …
dharmatech
  • 8,979
  • 8
  • 42
  • 88
0
votes
0 answers

fsharp fsi - sprintf function fails with System.MissingMethodException: Method not found: 'Void Microsoft.FSharp.Core.PrintfFormat`5..ctor

I'm running dotnet core 6 (6.0.406) on ubuntu. I've got various dev projects all working fine but I have this annoying issue with fsx scripts where fsharp interactive seems to have issues referencing the base dotnet core classes - as…
onemorecupofcoffee
  • 2,237
  • 1
  • 15
  • 21
0
votes
0 answers

Exception when trying to load FsXaml.Wpf with F# interactive

I'm trying to use load the FsXAml package in an F# interactive session. I used the following directive: #r "nuget: FsXaml.Wpf, 3.1.6" But I get following error: Project.fsproj.fsx(11,1): error FS3053: The type provider 'FsXaml.XamlTypeProvider'…
rpacz
  • 1
0
votes
1 answer

F# Interactive with nuget reference: namespace not defined

I am trying to use the Select.HtmlToPdf library https://www.nuget.org/packages/Select.HtmlToPdf/20.2.0 #r "nuget: Select.HtmlToPdf, 20.2.0" open Select.HtmlToPdf After sending the reference to the FSI, it returns a path to ...\Project.fsproj.fsx…
nanuuq
  • 169
  • 9
0
votes
1 answer

Where to keep nuget packages for .fsi scripts? (F#)

I know that I can use #r but without a directory to hold a project where should I install /keep the dependencies? I mean, if I'm using F# I can dotnet add package from the project folder but with .fsx I was expecting to not have a…
geckos
  • 5,687
  • 1
  • 41
  • 53
0
votes
1 answer

Help embedding FSI

Starting here - Embedding F# interactive - I've been trying to embed FSI in my application. However, I'm getting weird stuff back from StandardOutput. for example, in standard FSI, if I send this: let a = 3;; I get this back: [empty line here] val…
Benjol
  • 63,995
  • 54
  • 186
  • 268