microsoft / microsoft/vscode-powerquery-sdk
Syntax Error -> Two Errors
@albertli-msft is already working on this.
Since Dec 28, 2022.
- Dominant language
- TypeScript
- Stars
- 92
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Preflight Checklist
- I have installed the latest version of Power Query SDK.
- I have checked existing resources, including the common issues and the release notes.
- I have searched for similar issues.
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-testdies complaining that the extension method referenced by the.test.pqfile does not exist.PQTest.exe infodies complaining about the syntax error.

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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.