Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

bf:luis convert error while generating .luis file #943

@manish-95

Description

@manish-95

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:

  1. Create an intent with whitespaces in luis portal
  2. Run the bf:luis convert command to generate the .luis file from .lu file
  3. 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.
image

The section of the LU file in question
image

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.

Post interim fix:
image

[bug]

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.bugIndicates an unexpected problem or an unintended behavior.customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions