[MonoDevelop] Re^3: F#

Makoto Sakurai makoto at ms.u-tokyo.ac.jp
Sun Feb 13 03:59:45 EST 2011


To be more precise, monodevelop 2.4 in Windows say:

Unhandled Exception. (--- in detail ---)
-------------------------------------------------------------------
System.TypeInitializationException: The type initializer for
'FSharp.MonoDevelop.LanguageService' threw an exception. --->
System.TypeInitializationException: The type initializer for
'<StartupCode$FSharpBinding>.$LanguageService' threw an exception.
---> System.TypeInitializationException: The type initializer for
'FSharpCompiler' threw an exception. --->
System.TypeInitializationException: The type initializer for
'<StartupCode$FSharpBinding>.$FSharpCompiler' threw an exception. --->
System.IO.FileNotFoundException: Could not load file or assembly
'FSharp.Compiler, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=a19089b1c74d0809' or one of its dependencies. The
system cannot find the file specified.
File name: 'FSharp.Compiler, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=a19089b1c74d0809'
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName
assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,
Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at <StartupCode$FSharpBinding>.$FSharpCompiler..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].

   --- End of inner exception stack trace ---
   at Microsoft.FSharp.Compiler.Reflection.FSharpCompiler..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.FSharp.Compiler.Reflection.FSharpCompiler.get_InteractiveChecker()
   at Microsoft.FSharp.Compiler.SourceCodeServices.InteractiveChecker.Create(FSharpFunc`2
dirty)
   at FSharp.MonoDevelop.LanguageService..ctor()
   at <StartupCode$FSharpBinding>.$LanguageService..cctor()
   --- End of inner exception stack trace ---
   at FSharp.MonoDevelop.LanguageService..cctor()
   --- End of inner exception stack trace ---
   at FSharp.MonoDevelop.LanguageService.get_Service()
   at FSharp.MonoDevelop.FSharpLanguageBinding.idleTimer()
   at <StartupCode$FSharpBinding>.$FSharpLanguageBinding.clo at 37-47.Invoke()
   at GLib.Timeout.TimeoutProxy.Handler()
---------------------------------------------------------------------------

Also it says:

Error while updating status of command:
FSharp.MonoDevelop.FSharpCommands.SendSelection.
-------------------------------------------------------------------------------
System.Exception: oops! System.TypeInitializationException: The type
initializer for 'FSharpCompilerServerShared' threw an exception. --->
System.TypeInitializationException: The type initializer for
'<StartupCode$FSharpBinding>.$FSharpCompiler' threw an exception. --->
System.IO.FileNotFoundException: Could not load file or assembly
'FSharp.Compiler, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=a19089b1c74d0809' or one of its dependencies. The
system cannot find the file specified.
File name: 'FSharp.Compiler, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=a19089b1c74d0809'
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName
assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark,
Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at <StartupCode$FSharpBinding>.$FSharpCompiler..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].

   --- End of inner exception stack trace ---
   at Microsoft.FSharp.Compiler.Reflection.FSharpCompilerServerShared..cctor()

   --- End of inner exception stack trace ---
   at Microsoft.FSharp.Compiler.Reflection.FSharpCompilerServerShared.get_InteractiveServer()
   at Microsoft.FSharp.Compiler.Server.Shared.FSharpInteractiveServer.StartClient(String
channel)
   at FSharp.MonoDevelop.InteractiveSession..ctor()
   at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail at 587.Invoke(String
message)
   at Microsoft.FSharp.Core.PrintfImpl.go at 512-3[b,c,d](String fmt,
Int32 len, FSharpFunc`2 outputChar, FSharpFunc`2 outa, b os,
FSharpFunc`2 finalize, FSharpList`1 args, Int32 i)
   at Microsoft.FSharp.Core.PrintfImpl.run at 510[b,c,d](FSharpFunc`2
initialize, String fmt, Int32 len, FSharpList`1 args)
   at Microsoft.FSharp.Core.PrintfImpl.capture at 529[b,c,d](FSharpFunc`2
initialize, String fmt, Int32 len, FSharpList`1 args, Type ty, Int32
i)
   at <StartupCode$FSharp-Core>.$Reflect.Invoke at 617-4.Invoke(T1 inp)
   at FSharp.MonoDevelop.InteractiveSession..ctor()
   at FSharp.MonoDevelop.FSharpInteractivePad.setupSession()
   at FSharp.MonoDevelop.FSharpInteractivePad.session()
   at <StartupCode$FSharpBinding>.$FSharpInteractivePad.-ctor at 40-26.Invoke(Unit
arg10@)
   at System.Lazy`1.get_Value()
   at Microsoft.FSharp.Control.LazyExtensions.Force[T](Lazy`1 )
   at FSharp.MonoDevelop.FSharpInteractivePad..ctor()
   at FSharp.MonoDevelop.FSharpInteractivePad.get_CurrentPad()
   at FSharp.MonoDevelop.FSharpInteractivePad.get_CurrentFsi()
   at FSharp.MonoDevelop.SendSelection.Update(CommandInfo info)
   at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate(CommandInfo
info)
   at MonoDevelop.Components.Commands.CommandManager.DefaultUpdateCommandInfo(ActionCommand
cmd, CommandInfo info)
   at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo(Object
commandId, CommandTargetRoute targetRoute)
-------------------------------------------------------------------------------

I think Monodelop 2.4 in Fedora 14 is more demanding for the setup of
GAC and nunit.core.dll (unit measure DLLs: where to import?) &
fsci.exe options. My Mono is Mono JIT compiler version 2.6.7
(tarball). My FSharpBinding is 1.0 of the following:

http://functional-variations.net/addin/

After the opening of new source script file (not proeject mode but
plain text), I could edit some texts, but while working on texts
without evaluation, they say the fatal error which can be killed by
CTRL+ALT+DEL.

Unhandled Exception (not the same as the first error messages.
-------------------------------------------------------------------------------
System.AccessViolationException: Attempted to read or write protected
memory. This is often an indication that other memory is corrupt.
   at GLib.Signal.g_signal_get_invocation_hint(IntPtr instance)
   at GLib.Signal.get_Handler()
   at GLib.Object.NotifyCallback(IntPtr handle, IntPtr pspec, IntPtr gch)
-------------------------------------------------------------------------------

I'm trying monodevelop 2.4.2 since I could not remove FSharpbinding
1.0 from monodevelop 2.4.

Best,

Makoto Sakurai

----------------------------------------------------------------------------------------------------
Date: Sun, 13 Feb 2011 15:38:21 +0900
From: Makoto Sakurai <makoto at ms.u-tokyo.ac.jp>
Subject: [MonoDevelop] Re^2: F#
To: monodevelop-list at lists.ximian.com
Message-ID:
       <AANLkTimsTqSsSZK4NYQa5LikQJbL-_FMR0dUeFQt16gM at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Actually, it didn't work for me.
I tried monodevelop 2.4 with F# 2.0 (in Windows 7SP1 with Visual
Studio 2010Pro) as well as F# (fsharp.zip in Fedora 14). I can manage
to install the add-in of F# language bindings with errors, after
installing Gtk# support. The source-editor won't work after creating
new F# console projects.

>>Here is a video presentation of the features supported in >>F# and MonoDevelop:
>>
>>http://research.microsoft.com/apps/video/default.aspx?id=141406

The video explains how monodevelop 2.4 in openSUSE works, but I think
their configuration is not equal to Fedora 14 default and it might be
much more involved...

Anyone tried successfully?


More information about the Monodevelop-list mailing list