Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #396 (closed defect: wontfix)

Opened 13 years ago

Last modified 12 years ago

Template line numbers are off by one line

Reported by: smurf@… Owned by: anonymous
Priority: normal Milestone: 1.0
Component: Kid Version:
Severity: normal Keywords:


When setting KID_OUTPUT_PY, line numbers for backtraces through the .py files generated from .kid templates are off by one; they report the line *before* the one thattriggered the problem.

Needless to say, this is somewhat confusing.

Change History

comment:1 Changed 13 years ago by godoy

Is this still true? Even with TurboKid? and the latest Kid? I believe this is already fixed, but I don't have a test case for it.

comment:2 Changed 13 years ago by Matt Good <tg@…>

This is actually a bug in Python itself. It doesn't count lines with __future__ imports, so since Kid's generated Python files all start with "from __future__ import generators" the line count is always shifted by one.

comment:3 Changed 13 years ago by jorge.vargas

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone set to 1.0

I'm closing this based on Matt's input.

Note: See TracTickets for help on using tickets.