Bug 618 - Monodevelop throws on right mouse click on *.sql file in solution pad
Summary: Monodevelop throws on right mouse click on *.sql file in solution pad
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-09-03 13:24 UTC by tomasz.kubacki
Modified: 2011-09-28 13:58 UTC (History)
2 users (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 FIXED

Description tomasz.kubacki 2011-09-03 13:24:56 UTC
if you add any file with *.sql ending and try to make any operation on it with right mouse button context menu MD throws:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at MonoDevelop.Ide.Gui.DisplayBindingService+<GetFileViewers>c__Iterator16.MoveNext () [0x000d7] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DisplayBindingService.cs:88 
  at System.Collections.Generic.List`1[MonoDevelop.Ide.Gui.FileViewer].AddEnumerable (IEnumerable`1 enumerable) [0x0001a] in /home/tomek/projekty/not_my_projects/mono/mcs/class/corlib/System.Collections.Generic/List.cs:126 
  at System.Collections.Generic.List`1[MonoDevelop.Ide.Gui.FileViewer]..ctor (IEnumerable`1 collection) [0x0002f] in /home/tomek/projekty/not_my_projects/mono/mcs/class/corlib/System.Collections.Generic/List.cs:63 
  at System.Linq.Enumerable.ToList[FileViewer] (IEnumerable`1 source) [0x00006] in /home/tomek/projekty/not_my_projects/mono/mcs/class/System.Core/System.Linq/Enumerable.cs:2847 
  at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectFileNodeCommandHandler.PopulateOpenWithViewers (MonoDevelop.Components.Commands.CommandArrayInfo info, MonoDevelop.Projects.Project project, System.String filePath) [0x00000] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFileNodeBuilder.cs:301 
  at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectFileNodeCommandHandler.OnOpenWithUpdate (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00011] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFileNodeBuilder.cs:296 
  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) [0x000d5] in /home/tomek/projekty/not_my_projects/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 
  --- 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) [0x000eb] in /home/tomek/projekty/not_my_projects/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /home/tomek/projekty/not_my_projects/mono/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at MonoDevelop.Components.Commands.DefaultCommandHandler.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00018] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1488 
  at MonoDevelop.Components.Commands.CustomCommandUpdaterAttribute.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandArrayInfo cinfo) [0x00000] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CustomCommandUpdaterAttribute.cs:75 
  at MonoDevelop.Ide.Gui.Components.MultiSelectionNodeHandlerAttribute.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandArrayInfo cinfo) [0x00007] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/NodeCommandHandler.cs:292 
  at MonoDevelop.Components.Commands.CustomCommandUpdaterAttribute.MonoDevelop.Components.Commands.ICommandArrayUpdateHandler.CommandUpdate (System.Object target, MonoDevelop.Components.Commands.CommandArrayInfo cinfo) [0x00000] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CustomCommandUpdaterAttribute.cs:56 
  at MonoDevelop.Components.Commands.CommandUpdaterInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00017] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1462 
  at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, MonoDevelop.Components.Commands.CommandTargetRoute targetRoute) [0x0007e] in /home/tomek/projekty/not_my_projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:701
Comment 1 Alan McGovern 2011-09-28 13:58:20 UTC
This is fixed in git and will be in the next release after MonoDevelop 2.8 beta 3. Thanks for filing the issue!