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
Closed
Description
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
- Create a QnA File foo.qna like:
**Prompts:**
- [Files that Cannot Sync
](#1)
<a id = "1"/>
## ? Files that Cannot Sync
```
Files that cannot sync.
```
- bf orchestrator:create -i foo.qna -m basemodel
- 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]