Bug 14770 - XS crashes after creating F# console project.
Summary: XS crashes after creating F# console project.
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 4.1.10
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-15 21:10 UTC by César
Modified: 2013-09-16 13:29 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DOWNSTREAM

Description César 2013-09-15 21:10:37 UTC
Steps to reproduce:

- Create F# console project
- Visit Project.fs, remove all the code
- Add the follwing code: let square x = x * x
- Right click on it.
- Boom, XS crahes with:

System.TypeLoadException: Could not load type '<StartupCode$FSharpBinding>.$FSharpResolverProvider+ivar@155' from assembly 'FSharpBinding, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.GetLanguageItem (Int32 offset, ICSharpCode.NRefactory.TypeSystem.DomRegion& region) [0x00052] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:485 
  at MonoDevelop.SourceEditor.SourceEditorView.GetLanguageItem (Int32 offset) [0x0000f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:2258 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler.GetResolveResult (MonoDevelop.Ide.Gui.Document doc) [0x0001f] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:84 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler.GetItem (MonoDevelop.Ide.Gui.Document doc, ICSharpCode.NRefactory.Semantics.ResolveResult& resolveResult) [0x00003] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:90 
  at MonoDevelop.Refactoring.CurrentRefactoryOperationsHandler.Update (MonoDevelop.Components.Commands.CommandArrayInfo ainfo) [0x0004c] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoryCommands.cs:229 
  at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00003] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:52 
  at MonoDevelop.Components.Commands.CommandManager.DefaultUpdateCommandInfo (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info) [0x0006d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1269 
  at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, MonoDevelop.Components.Commands.CommandTargetRoute targetRoute) [0x001c5] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1237 


And:


System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type '<StartupCode$FSharpBinding>.$FSharpResolverProvider+ivar@155' from assembly 'FSharpBinding, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
  at MonoDevelop.FSharp.FSharpResolverProvider.MonoDevelop-Ide-Gui-Content-ITextEditorResolverProvider-GetLanguageItem (MonoDevelop.Ide.Gui.Document doc, Int32 offset, System.String identifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.GetLanguageItem (Int32 offset, System.String expression) [0x0002d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:518 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.GetTemplateContext () [0x0002a] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:499 
  at MonoDevelop.SourceEditor.SourceEditorView.GetCodeTemplateContext () [0x00007] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1799 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.ShowCodeSurroundingsCommand (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext) [0x00031] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:361 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.OnUpdateShowCodeTemplatesWindow (MonoDevelop.Components.Commands.CommandInfo info) [0x00052] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:272 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:230 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00069] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.2/mcs/class/corlib/System.Reflection/MonoMethod.cs:238 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.2/mcs/class/corlib/System.Reflection/MethodBase.cs:114 
  at MonoDevelop.Components.Commands.CommandUpdaterInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.CommandInfo info) [0x000f8] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:2042 
  at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, MonoDevelop.Components.Commands.CommandTargetRoute targetRoute) [0x000d4] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.1.10-branch/e88e6ef4/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1200
Comment 1 Mikayla Hutchinson [MSFT] 2013-09-16 13:29:05 UTC
This is a bug in the third-party F# binding, please report it to them: https://github.com/fsharp/fsharpbinding/issues