Hi,
I am a beginner, am unable to create python addins.
I am using SharpDevelop 5.0.0.4755 and IronPython 2.7.5
Even tried to follow this link: http://community.sharpdevelop.net/blogs/mattward/archive/2007/11/18/IronPythonAddInInternals.aspx
but still unable to do it properly.
SharpDevelop Version : 5.0.0.4755-c848dc28
.NET Version : 4.5.51209
OS Version : Microsoft Windows NT 6.1.7600.0
Current culture : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 151732kb
GC Heap Memory : 40086kb
Unhandled WPF exception
Exception thrown:
System.InvalidCastException: The AddInTreeNode <Directory id='Python'> returned an instance of System.String but the type ICSharpCode.SharpDevelop.Templates.TemplateBase is expected.
at ICSharpCode.Core.AddInTreeNode.BuildChildItems[T](Object parameter, IEnumerable`1 additionalConditions)
at ICSharpCode.Core.AddInTreeImpl.BuildItems[T](String path, Object parameter, Boolean throwOnNotFound)
at ICSharpCode.SharpDevelop.Templates.TemplateService.LoadProjectAndFileTemplates()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at ICSharpCode.SharpDevelop.Templates.TemplateService.get_TemplateCategories()
at ICSharpCode.SharpDevelop.UIService.ShowNewFileDialog(IProject project, DirectoryName directory, IEnumerable`1 templates)
at ICSharpCode.SharpDevelop.Commands.CreateNewFile.Run()
at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
at ICSharpCode.Core.CommandWrapper.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
10:58:56.168 [8] DEBUG - Git: OverlayIconManager Thread started
10:58:56.185 [1] INFO - Initialize DirectoryNode C:\Program Files (x86)\SharpDevelop\5.0\AddIns\BackendBindings\Python\Python.Build.Tasks\Project
10:58:56.206 [1] INFO - Initialize DirectoryNode C:\Program Files (x86)\SharpDevelop\5.0\AddIns\BackendBindings\Python\Python.Build.Tasks\Test
10:58:56.238 [1] INFO - Initialize DirectoryNode C:\Program Files (x86)\SharpDevelop\5.0\AddIns\BackendBindings\Python\PythonBinding\Project
10:58:56.274 [1] INFO - Initialize DirectoryNode C:\Program Files (x86)\SharpDevelop\5.0\AddIns\BackendBindings\Python\PythonBinding\Test
10:58:56.291 [8] DEBUG - Git: OverlayIconManager Thread finished
10:58:56.339 [1] INFO - Initialize DirectoryNode C:\Program Files (x86)\SharpDevelop\5.0\AddIns\BackendBindings\Python\PyWalker
10:58:56.339 [6] DEBUG - Git: OverlayIconManager Thread started
10:58:56.846 [1] DEBUG - CompilerMessageView: Combined 2 appends.
10:58:56.847 [1] DEBUG - CompilerMessageView: Combined 2 appends.
10:58:56.990 [1] DEBUG - CompilerMessageView: Combined 4 appends.
10:58:57.157 [LoadSolutionProjects] DEBUG - LoadSolutionProjectsThread finished after 00:00:01.6758679
10:58:57.245 [6] DEBUG - Git: OverlayIconManager Thread finished
10:59:00.490 [1] INFO - CurrentProject changed to PyWalker
10:59:00.527 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
10:59:00.578 [1] INFO - Loading addin ASP.NET MVC Binding
10:59:00.583 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IClipboard
10:59:06.311 [1] INFO - CurrentProject changed to Python.Build.Tasks
10:59:07.479 [1] INFO - CurrentProject changed to Python.Build.Tasks.Tests
10:59:08.680 [1] INFO - CurrentProject changed to PythonBinding
10:59:09.710 [1] INFO - CurrentProject changed to PythonBinding.Tests
10:59:17.538 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.IUIService
10:59:17.538 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Templates.ITemplateService
10:59:17.616 [1] INFO - Loading addin Cpp Binding
10:59:17.616 [1] ERROR - Unhandled WPF exception
--> Exception:
System.InvalidCastException: The AddInTreeNode <Directory id='Python'> returned an instance of System.String but the type ICSharpCode.SharpDevelop.Templates.TemplateBase is expected.
at ICSharpCode.Core.AddInTreeNode.BuildChildItems[T](Object parameter, IEnumerable`1 additionalConditions)
at ICSharpCode.Core.AddInTreeImpl.BuildItems[T](String path, Object parameter, Boolean throwOnNotFound)
at ICSharpCode.SharpDevelop.Templates.TemplateService.LoadProjectAndFileTemplates()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at ICSharpCode.SharpDevelop.Templates.TemplateService.get_TemplateCategories()
at ICSharpCode.SharpDevelop.UIService.ShowNewFileDialog(IProject project, DirectoryName directory, IEnumerable`1 templates)
at ICSharpCode.SharpDevelop.Commands.CreateNewFile.Run()
at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
at ICSharpCode.Core.CommandWrapper.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Post-error application state information:
Installed 3rd party AddIns: [Python Binding 0.0.0.0]
ProjectService.CurrentSolution: [Solution C:\Program Files (x86)\SharpDevelop\5.0\AddIns\BackendBindings\Python\PythonBinding.sln with 13 projects]
ProjectService.CurrentProject: [CSharpProject: PythonBinding.Tests]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad