[Monodevelop-patches-list] r2745 - in trunk/MonoDevelop/Extras/BooBinding: . Gui

Peter Johanson <latexer@gentoo.org> pjohanson at mono-cvs.ximian.com
Mon Aug 15 17:55:22 EDT 2005


Author: pjohanson
Date: 2005-08-15 17:55:22 -0400 (Mon, 15 Aug 2005)
New Revision: 2745

Modified:
   trunk/MonoDevelop/Extras/BooBinding/ChangeLog
   trunk/MonoDevelop/Extras/BooBinding/Gui/ShellTextView.boo
Log:
Fix file sharing violation which caused MD to die if using multiple instances with the boo shell enabled.


Modified: trunk/MonoDevelop/Extras/BooBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/ChangeLog	2005-08-14 06:41:21 UTC (rev 2744)
+++ trunk/MonoDevelop/Extras/BooBinding/ChangeLog	2005-08-15 21:55:22 UTC (rev 2745)
@@ -1,3 +1,8 @@
+2005-08-15  Peter Johanson  <latexer at gentoo.org>
+
+	* Gui/ShellTextvView: Fix file sharing violation that killed multiple
+	MD instances when the boo shell was enabled.
+
 2005-08-10  Peter Johanson  <latexer at gentoo.org>
 
 	* Gui/ShellTextView.boo: Fix small problem with

Modified: trunk/MonoDevelop/Extras/BooBinding/Gui/ShellTextView.boo
===================================================================
--- trunk/MonoDevelop/Extras/BooBinding/Gui/ShellTextView.boo	2005-08-14 06:41:21 UTC (rev 2744)
+++ trunk/MonoDevelop/Extras/BooBinding/Gui/ShellTextView.boo	2005-08-15 21:55:22 UTC (rev 2745)
@@ -93,8 +93,12 @@
 		# FIXME: Put the project file somewhere other than /tmp
 		monodevelopConfigDir = System.IO.Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.Personal), ".config/MonoDevelop/")
 		shellProjectFile = System.IO.Path.Combine (monodevelopConfigDir, "${Model.LanguageName}-shell-project.mdp")
+
+		// 'touch' the file so the MD parsing foo sees it as existing.
 		_fakeFileName = System.IO.Path.Combine (monodevelopConfigDir, "shell-dummy-file.${Model.MimeTypeExtension}")
-		_fileInfo  = System.IO.File.Create (_fakeFileName)
+		if not System.IO.File.Exists (_fakeFileName):
+			_fileInfo  = System.IO.File.Create (_fakeFileName)
+			_fileInfo.Close ()
 		_fakeProject = DotNetProject(Model.LanguageName, Name: "___ShellProject", FileName: shellProjectFile)
 
 		_parserService.Load(_fakeProject)




More information about the Monodevelop-patches-list mailing list