My favorites | Sign in
Project Logo
                
Search
for
Updated Aug 21, 2008 by wildart
Labels: Featured, Phase-Deploy
FSharpBinding  
F# support for Monodevelop

F# support for Monodevelop

F# support provided through addin for Monodevelop (2.0 Alpha). You could find new version of Monodevelop in Mono 2.0 Preview

Source Code

Checkout source code from repository: svn checkout http://wildart.googlecode.com/svn/trunk/FSharpBinding

Compilation

This addin should be compiled in new version of Monodevelop (2.0 Alpha):

Installation

To install F# support for Monodevelop, copy compiled binary MonoDevelop.FSharpBinding.dll to ~/.config/MonoDevelop/addin

Open Monodevelop and go to Edit -> Properties -> Other -> F#. There you could find global setting for F# compiler. You have to setup following options:

Project compilation options

For opened project you could change compilation options, such as:

F# project compilation

Because F# compiler has some annoying issue calculating dependencies by providing order of source files during compilation, please add source files to project in order acceptable for compiler. To change source files order in existing project - edit project file manually.

Update: New version supports file ordering in project. Use right-click menu on project or project file for:

Syntax Highlighting

File FSharpSyntaxMode.xml contains color scheme for F# syntax. Copy this file to ~/.config/MonoDevelop/syntaxstyles to get syntax highlighting in source editor.

Note: Syntax highlighting does not work out-of-box in Mono 2.0 preview release. You need to compile Monodevelop from sources to get it work.


Comment by davnul, Mar 31, 2009

Thanks for you work...

Unfortunately, i'm new to monodevelop and i don't manage to build the FSharpbinding solution with Monodevelop : i get 6 errors about "cannot find metadata file... " concerning MonoDevelop?..dll files

I'm using Monodevelop 1.9.1 (2.0 Alpha) as i'm using Mac OS X.

Comment by joandrade, Apr 09, 2009

Hi! I am having the same problem that davnul. Only I get 6 "cannot find metadata file" for files supposedly on my home directory and 4 for other files. Sorry but I am really new to MonoDevelop? (and Mono/.Net in general). Any help will be appreciated.

Comment by zorglub421, May 08, 2009

for the MonoDevelop?.Projects.Parser error, modify the three files to reflect this change:

using MonoDevelop?.Projects.Parser; -> using MonoDevelop?.Projects.Dom.Parser;

Comment by p.westcott, May 09, 2009

Another newbie to Mono/MonoDevelop??...

I have "fixed" references, updated the using statements (as per zorglub421's instructions), but now I'm getting the following error:

.../FSharpBinding/Gui/CodeGenerationPanel??.cs(51,47): error CS0030: Cannot convert type MonoDevelop?.Projects.ConfigurationParameters?' to FSharpBinding.FSharpCompilerParameters' .../FSharpBinding/Gui/CompilerOptionsPanelWidget??.cs(44,72): error CS0030: Cannot convert type MonoDevelop?.Projects.ConfigurationParameters?' to FSharpBinding.FSharpCompilerParameters'

I'm using the 2.0 distribution with Ubuntu 9.04

Any help would be appreciated.

Comment by zorglub421, May 11, 2009

Got the same cast issue than the gentleman right above. I'm using monodevelop 2.1 snapshot of around 2009-05-05, the one used to issue the precompiled .DMG for MAC OSX. Mono is release 2.4. Such a pitty. Would like to learn F# on this platform. I'm a GUI frustrated OCaml'ers :-)

Comment by makotosa...@yahoo.co.jp, May 16, 2009

Line=51, Column=73, Type=Error, Priority=Normal, Description=Cannot convert type `MonoDevelop.Projects.ConfigurationParameters' to `FSharpBinding.FSharpCompilerParameters'(CS0030)?

There seems no copy constructor from `MonoDevelop?.Projects.ConfigurationParameters?' (public ConfigurationParameters? {get; set;}) to `FSharpBinding.FSharpCompilerParameters'.

In the C# source file CompilerOptionsPanelWidget?.cs, the programmar is likely to cast in two steps.

DotNetProject? project -> DotNetProjectConfiguration?

-> FSharpCompilerParameters

As my environment is Fedora 11 development, mono 2.4 (new!, not 2.0), and MonoDevelop? 2.0 (not alpha), there might exists a slight language change of C# for mono (gmcs).

Comment by st...@live.ru, Sep 19, 2009

Line=51, Column=72, Type=Error, Priority=Normal, Description=Cannot convert type `MonoDevelop.Projects.ConfigurationParameters' to `FSharpBinding.FSharpCompilerParameters'(CS0030)??

Comment by st...@live.ru, Sep 19, 2009

Line=44, Column=98, Type=Error, Priority=Normal, Description=Cannot convert type `MonoDevelop.Projects.ConfigurationParameters' to `FSharpBinding.FSharpCompilerParameters'(CS0030)?

Comment by st...@live.ru, Sep 19, 2009

Will tell more please dostpney how to fix it?

Thank you for plugin.

Comment by rsdpisuy, Sep 29, 2009

I have same question as p.westcott. Can you please provide information how can I fix this problem?


Sign in to add a comment
Hosted by Google Code