You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the setting SetIgnoreCaseOnKeyLookup(true), the behavior when passing an ambiguous view is inconsistent.
On the template "{{name}}"
with the view
new{ Name ="foo", name ="bar"}
the regular renderer throws an StubbleException, while the compiled one simply uses the first property, resulting in "foo"
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue. You're right this is definately an oversight and I get an argument exception on the default renderer since we're not handling this case gracefully.
I've added a new exception type StubbleAmbigousMatchException which will be thrown when this happens, on Compile for the compilation renderer and on Render for the standard renderer.
I'll get this merged shortly into master and after i've looked at your other issue i'll get a release out. Thanks for your clear reproduction cases
When using the setting
SetIgnoreCaseOnKeyLookup(true)
, the behavior when passing an ambiguous view is inconsistent.On the template
"{{name}}"
with the view
the regular renderer throws an
StubbleException
, while the compiled one simply uses the first property, resulting in"foo"
The text was updated successfully, but these errors were encountered: