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:generate:cs not taking the className flag correctly #914

@manish-95

Description

@manish-95

Versions

BF CLI: @microsoft/botframework-cli/4.10.0-dev.20200721.8bb21ac
Node version: node-v14.6.0
CLI: PowerShell 6.2.2
What OS are you using : Windows 10 win32-x64

Describe the bug

For the className arg, I am passing a name which contains an underscore "EmceeSkill_DevBotLuis". However the generated output ignores the special character and gives me the class name as "EmceeSkillDevBotLuis". This causes numerous errors in code, and manually requires me to add the underscore into the generated output file.

To Reproduce

Steps to reproduce the behavior:

  1. Run the bf luis:version:export command to generate the required output .json
  2. Run the bf luis:generate:cs command giving className with an underscore
  3. Check the generated output file, it does not match the name given as an option

Expected behavior

The command must make no changes to the className provided by the user, and generate an output that will not cause code issues.

Screenshots

Note the command, containing the name desired by the user, and the actual output class name
image
image

Additional context

Switched over to nightly feeds since the fix incorporated as part of #848 is not yet released as a GA version.

[bug]

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.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