Skip to content

Regression? - Trailing comment causes parsing to die  #244

@bgribaudo

Description

@bgribaudo

Per #194 (comment), the fix for #194 was to ship in the 2.112.x version of the SdkTools package.

I'm running 2.114.4 and a .query.pq file containing just //hi still crashes pqtest. :-( Interestingly, the exception message is different than before.

To reproduce, follow the repo steps given in #194.

(I don't have access to the reopen button on this project, so am raising this in a new issue instead of reopening #194.)

[1:35:44 PM]	[Info]	[Task found] c:\...\.vscode\extensions\powerquery.vscode-powerquery-sdk-0.2.2-win32-x64\.nuget\Microsoft.PowerQuery.SdkTools.2.114.4\tools\PQTest.exe run-test
				--extension "c:\...\Test\bin\AnyCPU\Debug\Test.mez"
				--queryFile "c:\...\Test\Test.query.pq"
				--prettyPrint
[1:35:44 PM]	[Error]	[Task exited abnormally] pqtest run-test pid(53024) exit(3762504530) stderr: 
Unhandled Exception: System.InvalidOperationException: Unable to parse the document
   at PQTest.Common.Utilities.Parse(String mashupDocument)
   at PQTest.Common.Utilities.GetDocumentKind(String code)
   at PQTest.Common.QueryFileAnalyzer.PerformAnalysis()
   at PQTest.Common.Commands.PrepareTests(Configuration configuration)
   at PQTest.Common.Commands.<>c__DisplayClass14_0.<RunTestBattery>b__0()
   at PQTest.Common.Commands.ConfigureMashupEnvironmentAndRun(Configuration configuration, Action action)
   at PQTest.Console.Program.RunTestBatteryCommand(CommandLineApplication app, CommandLineApplication command, Action`1 invoke)
   at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at PQTest.Console.Program.Main(String[] args)

Metadata

Metadata

Assignees

Labels

answeredQuestions that have been answeredbugSomething isn't workingsdk toolsIssue is related to the SDK Tools external nuget packages

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions