microsoft / microsoft/vscode-powerquery-sdk

Syntax Error -> Two Errors

Open
#213 0 comments 2 reactions 1 assignee View on GitHub

@albertli-msft is already working on this.

Since Dec 28, 2022.

enhancement
Dominant language
TypeScript
Stars
92
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Preflight Checklist
Power Query SDK

0.2.1

Regression From

No response

Platform

Windows

Architecture

x64

OS Version

No response

VSCode version

No response

PQSdkTool Path

No response

Bug Description

If the extension's .pq file contains a syntax error, two errors occur:

  • PQTest.exe run-test dies complaining that the extension method referenced by the .test.pq file does not exist.
  • PQTest.exe info dies complaining about the syntax error.

image

Steps to Reproduce

Create an extension defined as follows:

section BenTest;
 
shared BenTest.Data = () =>  
  1+ ; 

Define a .test.pq file as follows:

BenTest.Data()

Click "Evaluate current file" for the .test.pq file.

Actual Experience

Two errors (as described above) occur.

Expected Experience

Suggest that only one error should occur. The presence of the syntax error should keep run-test from taking place, and so keep the error run-test raises from occurring.

Additional Context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.