#831 open
Don Ziesig

How to find dryml error?

Reported by Don Ziesig | October 12th, 2010 @ 08:01 PM | in Beyond Hobo 1.0

Every now and then I make a typo in a .dryml file that causes an exception as follows:

=========================================================

NameError in Front#index

Showing app/views/front/index.dryml where line # raised:

undefined method `page' for class `#<Class:0xb6af4798>'

Extracted source (around line #): 

==========================================================

The file app/views/front/index.dryml has NOT been changed since the site last worked.
I have commented it out, renamed it (to .zdryml), commented out text in other dryml files, renamed them to(.zdryml), and the only change is in the address following "Class:"

Most of the time I can find the typo with a little effort, but this time I have run out of diagnostic tools. I have proof-read all of the files that have been changed, but can't identify the error. The log doesn't help either. It seems to die while compiling a series of dryml files but doesn't report the actual file that failed. Am I missing a diagnostic technique that someone more familiar with dryml would know?

This doesn't happen too often, but the amount of time necessary to locate the problem when it does occur is way out of line with the time required for other Ruby, Rails and Hobo debugging. Hopefully there is a fix in the works.

Thanks

Don Ziesig

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen November 15th, 2010 @ 09:07 PM

    • State changed from “new” to “open”
    • Milestone set to Beyond Hobo 1.0
    • Tag changed from dryml debugging, dryml error location to dryml debugging, dryml error location, dryml, enhancement
    • Milestone order changed from “197910” to “0”

    I agree, debugging DRYML is a definite pain. I don't have any solutions, just encouragement. I hope you've learned to pull the meat out of those very long backtraces. Don't be afraid to jump into Rails and/or Hobo code. In the meantime I'll leave this as a "we need a better way to debug DRYML" request.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages