Bug 14308 - Cannot create stetic project when DISABLE_STETIC set
Summary: Cannot create stetic project when DISABLE_STETIC set
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: GTK# Designer ()
Version: Trunk
Hardware: PC Mac OS
: Lowest minor
Target Milestone: master
Assignee: Mikayla Hutchinson [MSFT]
Depends on:
Reported: 2013-08-28 23:16 UTC by Alan McGovern
Modified: 2013-08-29 02:34 UTC (History)
3 users (show)

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:

Description Alan McGovern 2013-08-28 23:16:49 UTC
1) Try to create a Gtk# 2.0

System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderProject.AddNewComponent (System.Xml.XmlElement element) [0x00008] in /Users/alan/Projects/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/GuiBuilderProject.cs:268 
  at MonoDevelop.GtkCore.WidgetFileDescriptionTemplate.AddToProject (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.Project project, System.String language, System.String directory, System.String name) [0x00150] in /Users/alan/Projects/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/WidgetFileDescriptionTemplate.cs:115 
  at MonoDevelop.Ide.Templates.ProjectDescriptor.InitializeItem (MonoDevelop.Projects.SolutionItem policyParent, MonoDevelop.Projects.ProjectCreateInformation projectCreateInformation, System.String defaultLanguage, MonoDevelop.Projects.SolutionEntityItem item) [0x00224] in /Users/alan/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs:162 

Easy repro: Use the unit test in this branch https://github.com/mono/monodevelop/tree/test_project_creation
Comment 1 Alan McGovern 2013-08-28 23:19:31 UTC
Please merge this test into master if this bug is fixed after #14300 is fixed.
Comment 2 Alan McGovern 2013-08-28 23:40:50 UTC
Actually this seems to be caused by the new DISABLE_STETIC env var. Re-prioritising and re-assigning.
Comment 3 Mikayla Hutchinson [MSFT] 2013-08-29 02:33:59 UTC
DISABLE_STETIC is a private hack to improve load/build perf when you don't need stetic. Creating a stetic project while it's set is pretty pointless.