Bug 24964 - [Sketches] Templates missing from in-project New File dialog
Summary: [Sketches] Templates missing from in-project New File dialog
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Sketches ()
Version: 5.7
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Sandy Armstrong [MSFT]
Depends on:
Reported: 2014-12-01 15:39 UTC by Sandy Armstrong [MSFT]
Modified: 2014-12-19 03:55 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 Sandy Armstrong [MSFT] 2014-12-01 15:39:09 UTC
Create any project, and try to make a sketch file within it. Notice that Xamarin.Forms templates are missing.

Also, look in the XS log file, and notice this:

ERROR [2014-12-02 01:26:46Z]: Error loading template id XamarinCSharpiOSClassicSketch in addin Xamarin.Sketches:
System.IO.FileNotFoundException: Could not find file "/Applications/Xamarin Studio.app/Contents/Resources/lib/monodevelop/AddIns/Xamarin.Sketches/Templates/CSharp/iOSClassic.xft.xml".
File name: '/Applications/Xamarin Studio.app/Contents/Resources/lib/monodevelop/AddIns/Xamarin.Sketches/Templates/CSharp/iOSClassic.xft.xml'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x0032f] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/corlib/System.IO/FileStream.cs:320 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/corlib/System.IO/FileStream.cs:132 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/corlib/System.IO/File.cs:341 
  at MonoDevelop.Ide.Codons.ProjectTemplateCodon.GetTemplate () [0x0000d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/d996e9ba/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/ProjectTemplateCodon.cs:52 
  at MonoDevelop.Ide.Templates.FileTemplate.LoadFileTemplate (Mono.Addins.RuntimeAddin addin, MonoDevelop.Ide.Codons.ProjectTemplateCodon codon) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/d996e9ba/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/FileTemplate.cs:148 
  at MonoDevelop.Ide.Templates.FileTemplate.OnExtensionChanged (System.Object s, Mono.Addins.ExtensionNodeEventArgs args) [0x00021] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-5.7-branch/d996e9ba/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/FileTemplate.cs:252 

This is due to obsolete template references in the addin manifest.
Comment 1 Shruti 2014-12-19 03:55:39 UTC
I have checked this issue and observed that Xamarin.Forms template is available in   Sketches and working fine.

Screencast :  http://www.screencast.com/t/jIDcHkEdnQVL

Environment Info :
=== Xamarin Studio ===

Version 5.7 (build 657)
Installation UUID: 67eaf3b4-f8a7-4ab4-a9df-3197350ca5dc
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: fb82d4e
Build date: 2014-12-16 22:30:17-0500

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/ixamarin78/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 507000657
Git revision: 012ec6963a2949d3773b96cee5bc4a05dbada096
Build date: 2014-12-16 15:34:30-05
Xamarin addins: 39ab76ee8d2bc1539d561fd800123124d5ee8bdb

=== Operating System ===

Mac OS X 10.10.0
Darwin XamnewiMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64