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.

Undefined error when parsing QnA file using LU parser #1276

@chrimc62

Description

@chrimc62

Versions

@microsoft/botframework-cli/4.15.0-dev.20210723.bf1f054 win32-x64 node-v14.16.0

Describe the bug

This was reported by a customer. If you have a QnA file with a link across multiple lines then you will get an 'undefined' error rather than any useful diagnostics.

To Reproduce

  1. Create a QnA File foo.qna like:
**Prompts:**
- [Files that Cannot Sync
](#1)

<a id = "1"/>

## ? Files that Cannot Sync
```
Files that cannot sync.
```
  1. bf orchestrator:create -i foo.qna -m basemodel
  2. You will get an undefined error in BuildDialognostic because context is a string and not a structure.
    else if (context !== undefined) {
        const startPosition = new Position(context.start.line, context.start.column);

Expected behavior

An error message indicating the line.

[bug]

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.customer-reportedIssue is created by anyone that is not a collaborator in the repository.needs-triageThe issue has just been created and it has not been reviewed by the team.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions