Bug 2570 - When creating a new .xib file an error is displayed to the user when another .xib is open in Xcode
Summary: When creating a new .xib file an error is displayed to the user when another ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: Macintosh Mac OS
: Low normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2011-12-19 13:44 UTC by Eric Beisecker
Modified: 2012-01-04 10:25 UTC (History)
4 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 Eric Beisecker 2011-12-19 13:44:28 UTC
Current Behavior: While adding a new .xib file to a MonoTouch project an Error dialog is shown to the User when Xcode has another .xib File loaded

Expected Behavior: While adding a new .xib to a MonoTouch project an Error should not be displayed to the user.

To Reproduce: http://www.screencast.com/t/rqYNoAw0kiZ

Versions:

Internal MonoDevelop build (d8fefb1c4dbb84528560090a633875b6dc207e65)  
(https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=84&host_id=1&revision_id=8461)

MonoTouch: 5.0.4

Mono: 2.10.6


Stack Trace:
System.Exception: Error ScriptError: 
  at MonoDevelop.MacInterop.AppleScript.Run (Boolean compile, MonoDevelop.MacInterop.AEDesc& scriptData) [0x00012] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacInterop/AppleScript.cs:107 
  at MonoDevelop.MacInterop.AppleScript.Run (System.String scriptSource) [0x00010] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacInterop/AppleScript.cs:83 
  at MonoDevelop.MacInterop.AppleScript.Run (System.String scriptSourceFormat, System.Object[] args) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MacPlatform/MacInterop/AppleScript.cs:74 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.OpenProject () [0x00006] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:342 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.CheckFileChanges (MonoDevelop.Projects.ProjectFileEventArgs e) [0x00101] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:271 
  at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.FileAddedToProject (System.Object sender, MonoDevelop.Projects.ProjectFileEventArgs e) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:224 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ProjectFileEventArgs (object,MonoDevelop.Projects.ProjectFileEventArgs)
  at MonoDevelop.Projects.Project.OnFileAddedToProject (MonoDevelop.Projects.ProjectFileEventArgs e) [0x00012] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:947 
  at MonoDevelop.IPhone.IPhoneProject.OnFileAddedToProject (MonoDevelop.Projects.ProjectFileEventArgs args) [0x00068] in /private/tmp/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:520 
  at MonoDevelop.Projects.Project.NotifyFileAddedToProject (IEnumerable`1 objs) [0x00084] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:879 
  at MonoDevelop.Projects.Project.OnItemsAdded (IEnumerable`1 objs) [0x00007] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:814 
  at MonoDevelop.Projects.DotNetProject.OnItemsAdded (IEnumerable`1 objs) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:1038 
  at MonoDevelop.IPhone.IPhoneProject.OnItemsAdded (IEnumerable`1 objs) [0x00063] in /private/tmp/source/md-addins/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneProject.cs:175 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectItem].NotifyAdded (IEnumerable`1 items, Boolean comesFromParent) [0x0009a] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:153 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectItem].MonoDevelop.Projects.IItemListHandler.InternalAdd (IEnumerable`1 objs, Boolean comesFromParent) [0x00041] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:127 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectFile].NotifyAdded (IEnumerable`1 items, Boolean comesFromParent) [0x00082] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:151 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectFile].OnItemAdded (MonoDevelop.Projects.ProjectFile item) [0x00017] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:113 
  at MonoDevelop.Projects.ItemCollection`1[MonoDevelop.Projects.ProjectFile].InsertItem (Int32 index, MonoDevelop.Projects.ProjectFile item) [0x00008] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ItemCollection.cs:39 
  at System.Collections.ObjectModel.Collection`1[MonoDevelop.Projects.ProjectFile].Add (MonoDevelop.Projects.ProjectFile item) [0x0000c] in /private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Collections.ObjectModel/Collection.cs:74 
  at MonoDevelop.Projects.Project.AddFile (System.String filename, System.String buildAction) [0x00069] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:333 
  at MonoDevelop.Ide.Templates.SingleFileDescriptionTemplate.AddFileToProject (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String directory, System.String name) [0x00038] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs:116 
  at MonoDevelop.Ide.Templates.SingleFileDescriptionTemplate.AddToProject (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String directory, System.String name) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs:108 
  at MonoDevelop.Ide.Templates.FileTemplate.CreateFile (MonoDevelop.Ide.Templates.FileDescriptionTemplate newfile, MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String directory, System.String language, System.String name) [0x00006] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/FileTemplate.cs:366 
  at MonoDevelop.Ide.Templates.FileTemplate.Create (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String directory, System.String language, System.String name) [0x0002b] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/FileTemplate.cs:309 
  at MonoDevelop.Ide.Projects.NewFileDialog.OpenEvent (System.Object sender, System.EventArgs e) [0x000ab] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewFileDialog.cs:469
Comment 1 Mikayla Hutchinson [MSFT] 2011-12-19 15:34:58 UTC
What version of MD is it?

Also, your screencast doesn't look list it's the correct one for this bug, it appears to show a C# binding bug in the new resolver.
Comment 2 Eric Beisecker 2011-12-19 15:42:24 UTC
Good Catch: 

Here is the correct Screencast URL: http://www.screencast.com/t/F1cswNGs
Comment 3 Eric Beisecker 2011-12-19 15:43:57 UTC
The MD Version is listed at 2.8.5 but it is an unreleased Version from Wrench. (Link in Bug Description)
Comment 4 Alan McGovern 2012-01-04 10:25:35 UTC
I fixed this one before christmas but pushed it a few days ago.