toddams / RazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core
Apache License 2.0
1.52k stars 259 forks source link

Error in IncludeAsync does not properly report location diagnostic #326

Closed ilushka85 closed 4 years ago

ilushka85 commented 4 years ago

Describe the bug When you have a template that uses includeasync and a razor error occurs in the child item. Diagnostic is reported for the line occurring in the parent with includeasync with no details about the child items line that causes the issue.

Expected behavior Diagnostic info should have nested error.

jzabroski commented 4 years ago

@ilushka85 Can you provide a repro? There are tests that cover IncludeAsync. Please copy one and continue on from there.

jzabroski commented 4 years ago

@ilushka85 Any details here?