Bug 2381 - Cannot open any files with MonoDevelop 2.9.1
Summary: Cannot open any files with MonoDevelop 2.9.1
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: Highest major
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-12-07 06:35 UTC by Alan McGovern
Modified: 2012-01-03 05:44 UTC (History)
2 users (show)

Tags: resolver
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 Alan McGovern 2011-12-07 06:35:49 UTC
Opening any .cs file in the MonoDevelop solution gives this stacktrace. I get a similar one when using the GoToType dialog.

System.NullReferenceException: A null value was found where an object instance was required.
  at MonoDevelop.TypeSystem.TypeSystemService.GetCompilation (MonoDevelop.Projects.Project project) [0x00016] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:957 
  at MonoDevelop.Ide.Gui.Document.get_Compilation () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:186 
  at MonoDevelop.CSharp.PathedDocumentTextEditorExtension.UpdatePath (System.Object sender, Mono.TextEditor.DocumentLocationEventArgs e) [0x00036] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs:251 
  at MonoDevelop.CSharp.PathedDocumentTextEditorExtension.<Initialize>m__72 (System.Object sender, System.EventArgs e) [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs:47 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at MonoDevelop.Ide.Gui.Document.OnDocumentParsed (System.EventArgs e) [0x0000d] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:684 
  at MonoDevelop.Ide.Gui.Document.UpdateParseDocument () [0x0004a] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:617 
  at MonoDevelop.Ide.Gui.Document.<OnDocumentAttached>m__123 () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:561 
  at Mono.TextEditor.Document.RunWhenLoaded (System.Action action) [0x0000b] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document.cs:1663 
  at MonoDevelop.Ide.Gui.Document.RunWhenLoaded (System.Action action) [0x0001f] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:579 
  at MonoDevelop.Ide.Gui.Document.OnDocumentAttached () [0x0018f] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:561 
  at MonoDevelop.Ide.Gui.Workbench.WrapDocument (IWorkbenchWindow window) [0x0004f] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:574 
  at MonoDevelop.Ide.Gui.ViewCommandHandlers..ctor (IWorkbenchWindow window) [0x0000d] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ViewCommandHandlers.cs:49 
  at MonoDevelop.Ide.Gui.SdiWorkspaceWindow..ctor (MonoDevelop.Ide.Gui.DefaultWorkbench workbench, IViewContent content, Gtk.Notebook tabControl, MonoDevelop.Components.TabLabel tabLabel) [0x0011c] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceWindow.cs:98 
  at MonoDevelop.Ide.Gui.DefaultWorkbench.ShowView (IViewContent content, Boolean bringToFront) [0x00113] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs:401 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x001d4] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1078 
  at MonoDevelop.Ide.Gui.Workbench.RealOpenFile (MonoDevelop.Ide.Gui.FileOpenInformation openFileInfo) [0x00387] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:754
Comment 1 Mike Krüger 2011-12-09 02:57:14 UTC
already fixed.
Comment 2 Saurabh 2011-12-29 00:25:18 UTC
We have verified this issue with MonoDevelop 2.8.5,.cs file can be open by clicking on .cs file or by 'Go To Type'.

Kindly close this issue.
Comment 3 Alan McGovern 2011-12-29 09:27:21 UTC
This is a regression in the 2.9 series, not the 2.8 series. Please test using 2.9.x.
Comment 5 Alan McGovern 2012-01-03 05:44:24 UTC
Whoops, that status change was an accident. I just wanted to point out that they were using the wrong version of MonoDevelop when verifying the bug was fixed therefore the comment that the issue is definitely gone was invalid.