Monday, August 11, 2008

F# Addin for Monodevelop

I just finished draft version of F# Addin for Monodevelop. This addin provides support of F# compiler in Monodevelop IDE. You could find new version of Monodevelop in Mono 2.0 Preview. Take a look!





You can find sources and brief documentation here

12 comments:

crimony said...

very cool.

rla3rd said...

I installed and compiled mono and monodevelop 2.0 previews, after fixing the references i get the following errors. Any help greatly appreciated.


FSharpBinding/Gui/CodeGenerationPanel.cs(80,44): error CS0246: The type or namespace name `MultiConfigItemOptionsPanel' could not be found. Are you missing a using directive or an assembly reference?

FSharpBinding/Project/FSharpCompilerParameters.cs(26,24): error CS0234: The type or namespace name `Serialization' does not exist in the namespace `MonoDevelop.Core'. Are you missing an assembly reference?

FSharpBinding/Gui/CompilerOptionsPanelWidget.cs(138,45): error CS0246: The type or namespace name `ItemOptionsPanel' could not be found. Are you missing a using directive or an assembly reference?

FSharpBinding/Project/FSharpResourceIdBuilder.cs(37,28): error CS0234: The type or namespace name `Formats' does not exist in the namespace `MonoDevelop.Projects'. Are you missing an assembly reference?

FSharpBinding/Gui/GlobalOptionsPanel.cs(31,56): error CS0246: The type or namespace name `OptionsPanel' could not be found. Are you missing a using directive or an assembly reference?

rla3rd said...

oops, just a reminder to everyone, remove your monodevelop 1 binaries before you build monodevelop 2.0 alpha from source

Frank Thomsen said...

I just installed MonoDevelop 2.0 alpha 2 and wanted to check out your f# binding. I managed to resolve the reference issues but still it complains that 'Parser' does not exist in the namespace 'MonoDevelop.Projects'. So I can't compile your project.

I am a complete newbie when it comes to Linux - just so you know it (if it wasn't obvious).

Gabriel Florit said...

I think you have to use MonoDevelop.Projects.Dom.Parser instead.

I still have a problem, though. Line 155 of FSharpBindingCompileManager complains about the switch expecting a variable.

Aximand said...

After fixing the references and changing
'using MonoDevelop.Projects.Parser;'
to
'using MonoDevelop.Projects.Dom.Parser;'

i get

'Cannot convert type `MonoDevelop.Projects.ConfigurationParameters' to `FSharpBinding.FSharpCompilerParameters'
in file 'CodeGenerationPanel.cs'

monodevelop 2.0
Can you help me?..

Aximand said...

Sorry, that's the full text of errors

[Task:File=/home/anti/Projects/Gui/CodeGenerationPanel.cs, Line=51, Column=73, Type=Error, Priority=Normal, Description=Cannot convert type `MonoDevelop.Projects.ConfigurationParameters' to `FSharpBinding.FSharpCompilerParameters'(CS0030)]

[Task:File=/home/anti/Projects/Gui/CompilerOptionsPanelWidget.cs, Line=44, Column=98, Type=Error, Priority=Normal, Description=Cannot convert type `MonoDevelop.Projects.ConfigurationParameters' to `FSharpBinding.FSharpCompilerParameters'(CS0030)]

HOTPOTATO said...

Got the same cast issue than the gentleman with the cyrilic letters firstname. 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 :-)

Unknown said...

I'm stuck in the same problem with casting. Some help would REALLY be appreciated.

Thanks in advance.

HansDude said...
This comment has been removed by the author.
MH said...

Will you be updating this to work with MonoDevelop 2.4?

Anonymous said...

I'm with Matt: Is there a way to make this work on MD 2.4?