- Home /
MonoDevelop - Uncaught Exceptions
First of all, I can't open files of any kind in monodevelop. It's exactly as described in this forum topic. A problem with parsing a boolean value stored as a string is the root cause.
In addition to making it impossible to open any file, opening the Version Control dropdown menu produces a sequence of errors as the options attempt to update their status and then monodevelop crashes.
It looks like something is broken in the communication between Unity and MonoDevelop.
System.FormatException: String was not recognized as a valid Boolean.
at System.Boolean.Parse(String value)
at NGit.Util.FS.ReadPipe(FilePath dir, String[] command, String encoding) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Util\FS.cs:line 297
at NGit.Util.FS_Win32_Cygwin.Resolve(FilePath dir, String pn) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Util\FS_Win32_Cygwin.cs:line 97
at NGit.BaseRepositoryBuilder`2.LoadConfig() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 822
at NGit.BaseRepositoryBuilder`2.GetConfig() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 798
at NGit.BaseRepositoryBuilder`2.GuessWorkTreeOrFail() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 844
at NGit.BaseRepositoryBuilder`2.SetupWorkTree() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 759
at NGit.BaseRepositoryBuilder`2.Setup() in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit\BaseRepositoryBuilder.cs:line 679
at NGit.Storage.File.FileRepository..ctor(FilePath gitDir) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Storage.File\FileRepository.cs:line 111
at NGit.Storage.File.FileRepository..ctor(String gitDir) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\contrib\NGit\NGit.Storage.File\FileRepository.cs:line 127
at MonoDevelop.VersionControl.Git.LocalGitRepository..ctor(String path) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl.Git\MonoDevelop.VersionControl.Git\GitRepository.cs:line 1478
at MonoDevelop.VersionControl.Git.GitRepository..ctor(FilePath path, String url) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl.Git\MonoDevelop.VersionControl.Git\GitRepository.cs:line 71
at MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference(FilePath path, String id) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl.Git\MonoDevelop.VersionControl.Git\GitVersionControl.cs:line 61
at MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference(String path, String id) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl\VersionControlService.cs:line 199
at MonoDevelop.VersionControl.VersionControlService.GetRepository(IWorkspaceObject entry) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl\VersionControlService.cs:line 185
at MonoDevelop.VersionControl.Views.SubviewAttachmentHandler.AttachViewContents(Document document) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl.Views\SubviewAttachmentHandler.cs:line 47
at MonoDevelop.VersionControl.Views.SubviewAttachmentHandler.HandleDocumentOpened(Object sender, DocumentEventArgs e) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\addins\VersionControl\MonoDevelop.VersionControl\MonoDevelop.VersionControl.Views\SubviewAttachmentHandler.cs:line 71
at MonoDevelop.Ide.Gui.Workbench.OnDocumentOpened(DocumentEventArgs e) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 988
at MonoDevelop.Ide.Gui.Workbench.WrapDocument(IWorkbenchWindow window) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 577
at MonoDevelop.Ide.Gui.ViewCommandHandlers..ctor(IWorkbenchWindow window) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\ViewCommandHandlers.cs:line 49
at MonoDevelop.Ide.Gui.SdiWorkspaceWindow..ctor(DefaultWorkbench workbench, IViewContent content, Notebook tabControl, TabLabel tabLabel) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\SdiWorkspaceWindow.cs:line 98
at MonoDevelop.Ide.Gui.DefaultWorkbench.ShowView(IViewContent content, Boolean bringToFront) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\DefaultWorkbench.cs:line 381
at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 1093
at MonoDevelop.Ide.Gui.Workbench.RealOpenFile(FileOpenInformation openFileInfo) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 772
at MonoDevelop.Ide.Gui.Workbench.OpenDocument(FilePath fileName, Int32 line, Int32 column, OpenDocumentOptions options, String encoding, IViewDisplayBinding binding) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 390
at MonoDevelop.Ide.Gui.Workbench.OpenDocument(FilePath fileName, Int32 line, Int32 column, OpenDocumentOptions options) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 331
at MonoDevelop.Ide.IdeApp.<>c__DisplayClass10.<OpenFiles>b__d(Object , WorkspaceItemEventArgs ) in c:\BuildAgent\work\fc2773206889b0da\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide\Ide.cs:line 334
Answer by Captain Ford · Jan 31, 2013 at 05:33 AM
Problem is caused by using github. You can workaround it by disabling github support.
In MonoDevelop:
Tools > Add-in Manager
Expand 'Version Control'
Disable Git Support
In $$anonymous$$onoDevelop:
I don't understand this. With this problem, $$anonymous$$onodevelop crashes on startup, so how can I follow these steps?
@Dubious, @Captain Ford any solution on this? As the above steps can't be implemented because $$anonymous$$onodevelop is now working.
Answer by TheMellowism · Aug 03, 2015 at 07:12 PM
I had the same problem. Tried reinstall but still did not work. I now uninstalled gtk-sharp and now it works again.