soundasleep / iaml

Automatically exported from code.google.com/p/iaml
3 stars 1 forks source link

Duplicate extensions are not warned to the developer #182

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an extension X() in both Extensions.ext and GeneratorExtensions.ext
2. Make sure they return different values
3. Try and execute the templates using these duplicate extensions

What is the expected output? What do you see instead?
Expected: A warning or error is thrown
Actual: It silently ignores (or overrides?) the previous definition,
causing weird bugs that are hard to track down. See: r2071

This might be a bug with OAW or the current implementation, but a test
script to check extensions may help.

Original issue reported on code.google.com by soundasleep on 29 Apr 2010 at 4:43

GoogleCodeExporter commented 9 years ago
Added a test case in r2315. It only uses a primitive string matching algorithm, 
and
not the actual OAW parser.

Original comment by soundasleep on 2 Jun 2010 at 5:30