Komodo Edit 5.2 Django Template Syntax Error - Info: <head> previously mentioned

Posted by Lance McNearney on Stack Overflow See other posts from Stack Overflow or by Lance McNearney
Published on 2010-01-10T16:24:29Z Indexed on 2010/04/27 9:43 UTC
Read the original article Hit count: 599

I am using Komodo Edit 5.2 for editing html and Django template files. It always shows a single syntax error inside the first {% block %} area on the first tag of my template.

For example:

{% extends "base.html" %}
{% load i18n %}

{% block title %}Hello{% endblock %}

{% block content %}
    <p>Hello</p> <-- Syntax error on this single line
    <p>Other lines have no errors</p>
{% endblock %}

{% block footer %}
    <p>No errors here</p>
{% endblock %}

The syntax error given is:

Info: <head> previously mentioned

I know for a fact that the error has nothing to do with my <head> tag since it occurs in the base template and in child templates (and the IDE isn't smart enough to process the base templates when in a child, etc.) All of my html tags are closed properly and everything validates for XHTML strict.

This forum post mentions a similar problem but offers no solution (and may be specific to Smarty syntax highlighting).

Any ideas on how to resolve this error (or disable it from being shown)?

© Stack Overflow or respective owner

Related posts about komodo

Related posts about komodoedit