-
Notifications
You must be signed in to change notification settings - Fork 129
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
Lu file's content altered and wrong error when using unavailable features #1292
Comments
Long versionFirst part: content alteredContent of However, this causes a wrong re-creation of the content if the result of this line is The wrong re-creation is due to the fact that these steps are executed:
This causes the output of the wrong error specified above. Possible fix: Second part: missing culture in function's callThis call passes empty This may cause unexpected behavior in Possible fixes
|
@munozemilio could you take a look at this ticket? |
@cosmicshuai could you please take a look at the lubuilder piece, please? |
@munozemilio, @cosmicshuai, is there any progress on this? |
It still need some time to figure out the root cause. Can we move it to R16. I will do it ASAP. |
Versions
What CLI version are you using: 4.14.1
What Nodejs version are you using: 14.17.1
What command-line interpreters are you using: CMD (Windows' command prompt)
What OS are you using: Win10 x64
Describe the bug
TL;DR (details and possible fixes in first comment)
Content of
.lu
file is altered based on result of this method call during loading of file content, causing wrong error on subsequent passes ifBuilder
class (defined here) is constructed passing a log functionThis call passes empty
luis_culture
tobuild
function (defined here) and the value is never updated down the road (thus, remaining empty).This may cause unexpected behavior in
parseLuAndQnaWithAntlr
because culture falls back toen-us
Notice that this bug affects BotFramework Composer that outputs a wrong error in cases like this one
To Reproduce
First one is easily reproducible following the steps below, while to address the second issue you must enter debug mode and go along the path until you'll find the bug
.lu
file (e.g.:MyLUISFile.lu
)Notice that I explicitly inserted an error: I used
geographyV2
with cultureit-it
even if it isn't available for Italian (Italy) at the time I'm writing the issue.js
file and execute it using Node:Expected behavior
It should throw an error saying the feature isn't available and stop the execution, as it does if log function isn't passed in
Builder
constructor.Screenshots
Not applicable
Additional context
Not applicable
[bug]
The text was updated successfully, but these errors were encountered: