Try "fsi --no-gui". F# may look like a console tool but it runs a Windows Forms event loop to ensure you can do GUI things from the console.

don

By on 10/31/2007 2:52 PM ()

Great! It works very well. Thanks, Don.

Laurent.

By on 10/31/2007 4:32 PM ()

Thanks everyone for the advices.

I found this little gem which solve elegantly my problem: ledit

On ubuntu,
install it with: sudo apt-get install ledit
use it with this command line: ledit fsi.exe

Note: ledit was design to work with ocaml (I think), but it works fine with fsi

By on 11/18/2007 7:13 AM ()

Thanks a lot with ledit now arrows are working in ubuntu with fsi.

By on 2/1/2009 2:38 AM ()

Hi,

I've been using fsi through Emacs, and it worked quite well. I used the ocaml mode from Inria, which provides syntactic coloration and shortcuts for interactive mode. It's perfect (F# is not OCaml), but it's ok.

I also have a question: has anyone used fsi through ssh? I've installed libgdiplus and mono, but I get the following error message:
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variab\
le)

I think that the System.Windows.Forms shouldn't be needed for fsi (since it's a console tool). Does anyone have a solution? Or should I edit fsi.fs, and compile fsi without this dependency?

By on 10/31/2007 2:38 PM ()

The completion is provided by Windows Console and not by fsi.exe itself. I don't see any easy way to implement history other than starting fsi.exe from another process that provides history and interacts through the editor. I would suggest vim or emacs that feature such functionality in a well known way, achieving functionalities similar to those you have in Visual Studio (BTW, in emacs it is possible to modify some interactive mode or simply use M-x shell command and start the fsi from the shell.

Antonio

By on 10/31/2007 9:40 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper