My monodevelop just crashed and seems to be broken permanently

Hey!

I was renaming a c# script in unity, then wanted to rename it in monodevelop as well. After I hit save and returned to unity monodevolop crashed and I cannot get it to work again since then. Even multiple efforts of syncing the monodevolop project did not work out … I then returned to a backup of my project because I thought I somehow broke the solution (.sln) but even older versions of my program won’t open in monodevelop … It’s a total mess, seriously. I am now reinstalling Unity because I read that the monodevelop that comes with unity is somehow different to the one I could find on the monodevelop homepage.
I just had to write this down because right now I am sitting here in cold sweat … I’ve been working on this project for 2 months, like every day … It’s kind of terrifying … Although I know everything will be fine because my project backups always opened just fine in the past and so will this one… I just hope I get monodevelop back to work now.

Edit: Ok, re-install finished. It’s NOT working … wtf?
The unity projects open up just fine but no matter which unity project I open (even example projects), when I am trying to open a script monodevelop does not open and gives this error message:

An error has occured
Could not load solution: D:[…]\UnityProjects[…]

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at MonoDevelop.Ide.Gui.DockNotebook.RemoveTab(Int32 page, Boolean animate) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\DockNotebook.cs:line 215
   at MonoDevelop.Ide.Gui.DefaultWorkbench.RemoveTab(Int32 pageNum, Boolean animate) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\DefaultWorkbench.cs:line 1194
   at MonoDevelop.Ide.Gui.SdiWorkspaceWindow.CloseWindow(Boolean force, Boolean animate) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\SdiWorkspaceWindow.cs:line 387
   at MonoDevelop.Ide.Gui.Document.Close() in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Document.cs:line 492
   at MonoDevelop.Ide.RootWorkspace.Close(Boolean saveWorkspacePreferencies, Boolean closeProjectFiles) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\RootWorkspace.cs:line 456
   at MonoDevelop.Ide.RootWorkspace.Close(Boolean saveWorkspacePreferencies) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\RootWorkspace.cs:line 438
   at MonoDevelop.Ide.RootWorkspace.Close() in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\RootWorkspace.cs:line 433
   at MonoDevelop.Ide.RootWorkspace.OpenWorkspaceItem(String filename, Boolean closeCurrent, Boolean loadPreferences) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\RootWorkspace.cs:line 523
   at MonoDevelop.Ide.RootWorkspace.OpenWorkspaceItem(String filename, Boolean closeCurrent) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\RootWorkspace.cs:line 517
   at MonoDevelop.Ide.RootWorkspace.OpenWorkspaceItem(String filename) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\RootWorkspace.cs:line 512
   at MonoDevelop.Ide.IdeApp.OpenFiles(IEnumerable`1 files) in c:\BuildAgent\work\9ffd76bfa3f1a926\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\Ide.cs:line 388

Guess I will have to do a completely clean deinstall - reinstall … But how can I make sure I delete all monodevelop preferences files so that it is a clean install?

If you choose a different text editor, does it open successfully? If you launch Monodevelop without opening from Unity, does it still fail to open? In other words, is it a failure of Monodevelop, of Unity, or just of the link between the two?

As a long-shot attempt: perhaps trying creating a new script file within Unity, then opening Monodevelop?

Everything is working again …
I followed this advice and reset the roaming data of mono develop. That alone did not fix the issue because somehow (although I re-installed Unity and mono) a process of mono develop was still open … I killed it with the task manager, restarted Unity and everything was working again, phew!
Kinda left me with a strange feeling, though. :wink: I need a break now.
Thanks, anyway!

I know that feel, bro. Go get you a beer. (Unless you’re a recovering alcoholic or something, in which case, go take a nap or a walk or whatever it is you do)