This project is read-only.

Shape Tracing is broken in Orchard v. source code drop.

Topics: Troubleshooting
Jul 30, 2013 at 11:37 PM
Edited Jul 30, 2013 at 11:39 PM
Steps to Reproduce:
  • Do a source drop.
  • Run in Visual Studio.
  • Install Orchard.DesignerTools.
  • Use NuGet to install ClaySharp in Orchard.DesignerTools, because it's missing.
  • Rebuild Orchard.DesignerTools.
  • Refresh Orchard in the browser. ClaySharp should resolve.
  • Navigate to the default Orchard Home Page.
  • Open up the Shape Tracer.
  • The Shape Tracer will give very little information (understatement).
  • Open FireBug, refresh the page, and view the console errors.
SyntaxError: syntax error
Line 534
  • Follow the console error to where it occurs in the code.
shapeTracingMetadataHost[] = {};
  • That's it.
Jul 30, 2013 at 11:39 PM
Do not install ClaySharp. It is not missing, it has been removed.
Jul 31, 2013 at 5:45 AM
Edited Jul 31, 2013 at 5:46 AM
Fix it with these steps:

Remove ClaySharp from Orchard.DesignerTools
  • Visual Studio > Tools > Package Manager Console
  • Uninstall-Package ClaySharp -ProjectName Orchard.DesignerTools
Delete code that is in the ClaySharp namespace
  • Open Modules\Orchard.DesignerTools\Services\ObjectDumper.cs
  • Delete the following lines:
  • Ln 7
using ClaySharp; 
  • Ln 199
((IClayBehaviorProvider)(dynamic)shape).Behavior.GetMembers(() => null, shape, members);
Build Orchard.DeisgnerTools.
Shape Tracing now works again. Hooray!

Jul 31, 2013 at 8:41 AM
I don't understand why you'd need to do that: designer tools as they are currently in the source code package do not depend on ClaySharp. I'm suspecting that you downloaded an old version instead of using the one that's already there.
Jul 31, 2013 at 10:30 AM
Yeah I just checked and there is no ClapSharp namespace/reference etc within the code drop. I think you grabbed an old version :(
Aug 1, 2013 at 2:48 AM
I suspect that I downloaded an old version too. I haven't pulled in Mercurial for quite some time now.
Dec 3, 2013 at 10:28 AM
I just went through the same problem.
The DesignerTools was already installed, but from the dashboard gallery I've clicked "Install" by mistake... It was impossible to stop the process...
Now I also have the ClaySharp stuff.

I've checked the DesignerTools module in a clean Orchard 1.7.1 and the module version is 1.7.1, while the gallery-available last version is 1.6 !!
How is it possible??

I'd like to restore the right version by copying the folder from the clean download, please help me to proceed.
How can I uninstall a module PROPERLY and then reinstall the same by using the above folder??

Many Thanks.
Dec 3, 2013 at 11:21 AM
Could you try deleting the DesignerTools module folder and copy back the latest version?
Dec 3, 2013 at 5:52 PM
Everything is ok now. Thanks.