-
Notifications
You must be signed in to change notification settings - Fork 123
bf:luis convert error while generating .luis file #943
Description
Versions
@microsoft/botframework-cli/4.10.0 win32-x64 node-v12.18.1
PowerShell 7.0.3
Windows 10 x64
botskills version 1.0.16
Describe the bug
While generating the .luis file using the bf:luis convert command, I get the following error:
[ERROR] line 955:19 - line 955:22: syntax error: no viable alternative at input ' All' [ERROR] line 955:19 - line 955:22: syntax error: invalid input 'All' detected. Expecting one of this - end of file, Whitespace, new line, undefined, model description, QnA definition, Intent definition, undefined, undefined, undefined, undefined
The input .lu file, the line in question has the following:
@ intent Top Ideas All Ideations usesFeature topIdeasAccrossIdeations
When I changed the name of the intent in the LUIS portal to exclude whitespaces, then the command ran successfully. This shows that if an intent is named in LUIS with whitespaces between words, then the convert command is failing
To Reproduce
Steps to reproduce the behavior:
- Create an intent with whitespaces in luis portal
- Run the bf:luis convert command to generate the .luis file from .lu file
- Notice error
Expected behavior
The command must consider intents that may have been named with whitespaces and hence got updated in the .lu file as well with whitespaces while considering the generation of the .luis file from .lu file
Screenshots
Error when running the command.

The section of the LU file in question

Additional context
I originally encountered this error while running botskills update, which seems to internally call the bf:luis convert command. Tried it as a standalone and found the same.
Was able to fix by changing the intent name in the LUIS portal, but this is just a workaround.
[bug]
