Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when starting fsi

I have installed F# using Visual Studio Community Edition and I also installed the Visual F# 4.0 Tools

When I run fsi from a command prompt an exception is thrown

enter image description here

I also tried adding the F# to the path, but that did not solve the problem. What else should I do?

Edit:

If I run fsi directly from C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0 it works.

like image 687
thitemple Avatar asked Apr 29 '26 13:04

thitemple


1 Answers

I had my problem fixed with using the F# forum on google.

But for the reference, here's the solution.

After running where fsi I had this output:

λ where fsi
C:\Program Files\dotnet\bin\fsi.exe
C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0\Fsi.exe

For some reason fsi from dotnet core is not working. I changed the order in my system path so that the F# Tools came before dotnet core and that fixed the problem.

like image 97
thitemple Avatar answered May 03 '26 19:05

thitemple



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!