MonoDevelop 2.6(beta) does not accept installaing FSharp AddIn

102 views
Skip to first unread message

Youhei Kondou

unread,
Mar 4, 2011, 8:19:27 PM3/4/11
to fsharp
MonoDevelop 2.6(beta) does not accept installaing FSharp AddIn both by
AddIn Manager and by building source.

At first, I try to install FSharp AddIn by AddIn Manager. But it fails
with dialog like http://plixi.com/p/81622965 .
It occurs both in openSUSE and in Mac OS X.

Then, I try to install with http://chrismarinos.com/f-on-ubuntu-linux-with-mono-and-monodevelop/
, but, it also fails with compile error like below:
/Users/youhei/source_codes/fsharpbinding/src/Services/
LanguageService.fs(167,23): error FS0039: The field, constructor or
member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/Services/
LanguageService.fs(172,64): error FS0039: The field, constructor or
member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/Services/
LanguageService.fs(178,12): error FS0039: The field, constructor or
member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/Services/
LanguageService.fs(181,16): error FS0039: The field, constructor or
member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/Services/
LanguageService.fs(181,47): error FS0039: The field, constructor or
member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/Services/
LanguageService.fs(415,79): error FS0039: The field, constructor or
member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/Services/
LanguageService.fs(415,7): error FS0041: No overloads match for method
'Parse'. The available overloads are shown below (or in the Error List
window).
Possible overload: 'ProjectDomService.Parse(fileName: string,
getContent: Func<string>) : ParsedDocument'.
Possible overload: 'ProjectDomService.Parse(project: Project,
fileName: string) : ParsedDocument'.
Possible overload: 'ProjectDomService.Parse(project: Project,
fileName: string, content: string) : ParsedDocument'.
Possible overload: 'ProjectDomService.Parse(project: Project,
fileName: string, getContent: Func<string>) : ParsedDocument'.
Type constraint mismatch. The type
string
is not compatible with type
Project
The type 'string' is not compatible with the type 'Project'
Type constraint mismatch. The type
string
is not compatible with type
Project
The type 'string' is not compatible with the type 'Project'

/Users/youhei/source_codes/fsharpbinding/src/
FSharpInteractivePad.fs(34,49): error FS0039: The field, constructor
or member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/
FSharpInteractivePad.fs(35,38): error FS0039: The field, constructor
or member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/
FSharpInteractivePad.fs(126,49): error FS0039: The field, constructor
or member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/
FSharpInteractivePad.fs(134,50): error FS0039: The field, constructor
or member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/
FSharpInteractivePad.fs(135,50): error FS0039: The field, constructor
or member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/
FSharpInteractivePad.fs(144,49): error FS0039: The field, constructor
or member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/
FSharpSyntaxMode.fs(10,21): error FS1108: The type 'Context' is
required here and is unavailable. You must add a reference to assembly
'Mono.Cairo, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=0738eb9f132ed756'.

/Users/youhei/source_codes/fsharpbinding/src/
FSharpLanguageBinding.fs(32,62): error FS0039: The field, constructor
or member 'TextEditor' is not defined

/Users/youhei/source_codes/fsharpbinding/src/FSharpParser.fs(13,3):
error FS0501: The member or object constructor 'AbstractParser' takes
0 argument(s) but is here given 2. The required signature is
'AbstractParser() : unit'.

/Users/youhei/source_codes/fsharpbinding/src/
FSharpTextEditorCompletion.fs(57,49): error FS0039: The field,
constructor or member 'TextEditor' is not defined

Youhei Kondou

unread,
Mar 4, 2011, 8:21:17 PM3/4/11
to fsharp
I notice that FSharp in Mono 2.10 is alread 2.0, not 1.0.

Tomas Petricek

unread,
Mar 5, 2011, 8:56:42 PM3/5/11
to fsharp-o...@googlegroups.com
Hi,
This is correct - F# was never officially 1.0 :-) I guess it is the only
project that started with the second version. As we all know, second version
is usually the first one that's usable, which is definitely the case with
F#.

(The version that comes with Visual Studio 2010 is 2.0)

Tomas

Tomas Petricek

unread,
Mar 5, 2011, 9:00:23 PM3/5/11
to fsharp-o...@googlegroups.com, Federico Di Gregorio
Hi, thanks for reporting this.

The problem is that the MonoDevelop extensibility API has changed a bit. I
think this is essentially the same issue as what Federico Di Gregorio
reported to me directly when building F# plugin against the latest Git
sources of MonoDevelop.

We definitely need to do the changes in the plugin at some point
(unfortunatelly, I'm terribly busy at the moment). I'm not sure what is the
best approach to support both versions. Would it be a good idea to add some
"#define" and use "#if" in the sources so that people can choose which
version to compile (and maintain both stable and latest version in the same
repository)?

If anybody makes some progress with trying to build it against the 2.6 beta
version, let me know - I'll be happy to add more people as collaborators to
the project.

Tomas

-----Original Message-----
From: fsharp-o...@googlegroups.com
[mailto:fsharp-o...@googlegroups.com] On Behalf Of Youhei Kondou

Gábor Bakos

unread,
Apr 20, 2011, 5:52:12 PM4/20/11
to fsharp-o...@googlegroups.com, Federico Di Gregorio
Hi Tomas,

   I have just found this list. So if anyone is interested in a(n almost) buildable (at least on Windows) version of the MonoDevelop plugin they might want to take a look at the issue 17. (It is just a pull request, hopefully that is the way to provide patches. I know that you will have to change if you want to support both 2.4 and 2.6 at source level.)
Bests, gabor

elYase

unread,
Apr 28, 2011, 8:06:51 AM4/28/11
to fsharp
It doesn't compile for me on mac os 10.6.7, F# 2.0, this is what I
did:

git clone https://github.com/aborg0/fsharpbinding
cd fsharpbinding/
./configure.sh

The configure script will then complain on not being able to find some
dlls(gtk-sharp,pango,...), even when I have a standard installation
in /Library/Frameworks/Mono.framework:

"Successfully found MonoDevelop root directory.
Successfully found F# root directory.
File 'mscorlib.dll' was not found in any of /usr/lib/mono/2.0 /Library/
Frameworks/Mono.framework/Versions/2.8/lib/mono/2.0. Please enter Mono
installation directory:"

I searched for this files manually within my Mono directory, (they
where in really weird places deep under the "gac" directory) and
entered them, so the configure script was able to finish correctly.
Then:

make

and I receive a number of errors:
"
mkdir -p bin
gmcs -debug+ -out:bin/FSharpBinding.Gui.dll -target:library -r:/
Library/Frameworks/Mono.framework/Versions/2.10.2/lib/mono/2.0/
mscorlib.dll -r:System.dll -r:System.Xml.dll -r:/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Core.dll -r:/Applications/MonoDevelop.app/Contents/MacOS/
lib/monodevelop/bin/MonoDevelop.Ide.dll -r:/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.TextEditor.dll
-r:/usr/lib/fsharp/FSharp.Core.dll -r:/usr/lib/fsharp/
FSharp.Compiler.dll -r:/usr/lib/fsharp/
FSharp.Compiler.Interactive.Settings.dll -r:/usr/lib/fsharp/
FSharp.Compiler.Server.Shared.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/atk-sharp/
2.12.0.0__35e10195dab3c99f/atk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/pango-sharp/
2.12.0.0__35e10195dab3c99f/pango-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gtk-sharp/
2.12.0.0__35e10195dab3c99f/gtk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gdk-sharp/
2.12.0.0__35e10195dab3c99f/gdk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/glib-sharp/
2.12.0.0__35e10195dab3c99f/glib-sharp.dll src/Gui/
FSharpBuildOrderWidget.cs src/Gui/FSharpSettingsWidget.cs src/Gui/
FSharpCompilerOptionsWidget.cs src/Gui/gtk-gui/
FSharp.MonoDevelop.Gui.FSharpBuildOrderWidget.cs src/Gui/gtk-gui/
FSharp.MonoDevelop.Gui.FSharpSettingsWidget.cs src/Gui/gtk-gui/
FSharp.MonoDevelop.Gui.FSharpCompilerOptionsWidget.cs src/Gui/gtk-gui/
generated.cs
fsharpc --noframework --debug --optimize- --target:library -r:bin/
FSharpBinding.Gui.dll --out:bin/FSharpBinding.dll -r:/Library/
Frameworks/Mono.framework/Versions/2.10.2/lib/mono/2.0/mscorlib.dll -
r:System.dll -r:System.Xml.dll -r:/Applications/MonoDevelop.app/
Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Core.dll -r:/
Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Ide.dll -r:/Applications/MonoDevelop.app/Contents/MacOS/
lib/monodevelop/bin/Mono.TextEditor.dll -r:/usr/lib/fsharp/
FSharp.Core.dll -r:/usr/lib/fsharp/FSharp.Compiler.dll -r:/usr/lib/
fsharp/FSharp.Compiler.Interactive.Settings.dll -r:/usr/lib/fsharp/
FSharp.Compiler.Server.Shared.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/atk-sharp/
2.12.0.0__35e10195dab3c99f/atk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/pango-sharp/
2.12.0.0__35e10195dab3c99f/pango-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gtk-sharp/
2.12.0.0__35e10195dab3c99f/gtk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gdk-sharp/
2.12.0.0__35e10195dab3c99f/gdk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/glib-sharp/
2.12.0.0__35e10195dab3c99f/glib-sharp.dll --resource:src/Resources/
FSharpBinding.addin.xml --resource:src/Resources/
EmptyFSharpSource.xft.xml --resource:src/Resources/
EmptyFSharpScript.xft.xml --resource:src/Resources/
FSharpConsoleProject.xpt.xml --resource:src/Resources/fsharp-
icon-32.png --resource:src/Resources/fsharp-script-32.png --
resource:src/Resources/fsharp-file-icon.png --resource:src/Resources/
fsharp-project-icon.png --resource:src/Resources/fsharp-script-
icon.png --resource:src/Resources/FSharpSyntaxMode.xml src/PowerPack/
CodeDomVisitor.fs src/PowerPack/CodeDomGenerator.fs src/PowerPack/
CodeProvider.fs src/PowerPack/LazyList.fsi src/PowerPack/LazyList.fs
src/Services/Mailbox.fs src/Services/Parameters.fs src/Services/
FSharpCompiler.fs src/Services/CompilerLocationUtils.fs src/Services/
Common.fs src/Services/Parser.fs src/Services/LanguageService.fs src/
Services/CompilerService.fs src/Services/InteractiveSession.fs src/
FSharpInteractivePad.fs src/FSharpOptionsPanels.fs src/
FSharpSyntaxMode.fs src/FSharpResourceIdBuilder.fs src/
FSharpLanguageBinding.fs src/FSharpParser.fs src/
FSharpTextEditorCompletion.fs src/FSharpResolverProvider.fs
Microsoft (R) F# 2.0 Compiler build 2.0.0.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

warning FS0217: The referenced or default base CLI library 'mscorlib'
is binary-incompatible with the referenced library '/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Core.dll'. Consider recompiling the library or making an
explicit reference to a version of this library that matches the CLI
version you are using.

warning FS0217: The referenced or default base CLI library 'mscorlib'
is binary-incompatible with the referenced library '/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Ide.dll'. Consider recompiling the library or making an
explicit reference to a version of this library that matches the CLI
version you are using.

warning FS0217: The referenced or default base CLI library 'mscorlib'
is binary-incompatible with the referenced library '/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
Mono.TextEditor.dll'. Consider recompiling the library or making an
explicit reference to a version of this library that matches the CLI
version you are using.

/Users/yaser/fsharpbinding/src/PowerPack/CodeDomGenerator.fs(248,44):
warning FS0044: This construct is deprecated

error FS0193: The module/namespace 'System.Func`1' from compilation
unit 'mscorlib' did not contain the namespace, module or type 'Func`1'

/Users/yaser/fsharpbinding/src/Services/LanguageService.fs(415,7):
error FS1109: A reference to the type 'System.Func`1' in assembly
'mscorlib' was found, but the type could not be found in that assembly

/Users/yaser/fsharpbinding/src/FSharpSyntaxMode.fs(10,21): error
FS1108: The type 'Cairo.Context' is required here and is unavailable.
You must add a reference to assembly 'Mono.Cairo, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
make: *** [all] Error 1"

I tried this both with official mono developer package and normal mono
package.
Regards
Yaser Martinez



Jason McCampbell

unread,
Apr 28, 2011, 9:56:22 AM4/28/11
to fsharp-o...@googlegroups.com
Hi Yaser, 

Last I checked the fsharp binding had an issue running with newer versions of MonoDevelop.  Chris Marinos has a fork of the project that fixed the issues for me.  The git repository is here: git://github.com/ChrisMarinos/fsharpbinding.git

It might be worth a try.

Regards,
Jason
Reply all
Reply to author
Forward
0 new messages