Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Analyzer does not detect loops, Template Evaluator is now responsible for loop detection #5814

Closed
sbacha opened this issue Aug 3, 2021 · 0 comments · Fixed by #5872
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior. P0 Must Fix. Release-blocker PVA PVA requirement
Milestone

Comments

@sbacha
Copy link
Contributor

sbacha commented Aug 3, 2021

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Version

What package version of the SDK are you using.
4.14.1

Describe the bug

We have design time validation where we use template analyzer to detect problems within the lg resource, it seems this code has moved from the analyzer to the evaluator which requires scope.

To Reproduce

Steps to reproduce the behavior:
Create an Lg File

# timeOfDayGreeting
- my name is ${day()}
# day
- ${timeOfDayGreeting()}

Parse Lg file
Loop over the templates:
var analyzeTemplateResult = templates.AnalyzeTemplate(template.Name);

Expected behavior

AnalyzeTemplate should throw an exception with loop detected message

Additional context

81f0a87?branch=81f0a87998fac2780e23493bf42ba0d90d3feb5a&diff=split

@sbacha sbacha added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Aug 3, 2021
@mrivera-ms mrivera-ms self-assigned this Aug 5, 2021
@mrivera-ms mrivera-ms added the PVA PVA requirement label Aug 5, 2021
@mrivera-ms mrivera-ms added this to the R15 milestone Aug 5, 2021
@mrivera-ms mrivera-ms added P0 Must Fix. Release-blocker and removed needs-triage The issue has just been created and it has not been reviewed by the team. labels Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. P0 Must Fix. Release-blocker PVA PVA requirement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants