Skip to content

Регрессионный тест: QueryParseError больше не даёт FP на запросе с функцией СТРОКА#3979

Merged
nixel2007 merged 2 commits into
developfrom
copilot/fix-query-parser-error
May 30, 2026
Merged

Регрессионный тест: QueryParseError больше не даёт FP на запросе с функцией СТРОКА#3979
nixel2007 merged 2 commits into
developfrom
copilot/fix-query-parser-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 30, 2026

Issue #3169 сообщал о ложном срабатывании QueryParseError на запросе с функцией СТРОКА() в условии соединения и полями, передаваемыми через параметры (&ар_Валюта, &Период).

Воспроизведение на текущем develop (bsl-parser 0.34.1) показало, что FP больше не воспроизводится — точный запрос из issue корректно парсится и не подсвечивается. Проблема устранена на стороне bsl-parser. Изменения фиксируют это регрессионным тестом.

Изменения

  • QueryParseErrorDiagnostic.bsl — добавлен полный запрос из issue как валидный кейс; число ожидаемых диагностик не меняется (3), что подтверждает отсутствие срабатывания.
  • QueryParseErrorDiagnosticTest — пояснительный комментарий со ссылкой на issue.

Производственный код не затронут.

Copilot AI changed the title [WIP] Fix query parse error with temporary tables Регрессионный тест: QueryParseError больше не даёт FP на запросе с функцией СТРОКА May 30, 2026
Copilot AI requested a review from nixel2007 May 30, 2026 14:10
@nixel2007 nixel2007 marked this pull request as ready for review May 30, 2026 14:15
Copilot AI review requested due to automatic review settings May 30, 2026 14:15
@nixel2007 nixel2007 enabled auto-merge May 30, 2026 14:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a regression test ensuring QueryParseError does not report a false positive for a valid query using СТРОКА() in a join condition with parameterized fields, matching issue #3169.

Changes:

  • Added the issue query as a valid fixture case.
  • Added a test comment documenting the regression scenario and issue reference.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/test/resources/diagnostics/QueryParseErrorDiagnostic.bsl Adds the valid query sample from issue #3169 to the diagnostic fixture.
src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/QueryParseErrorDiagnosticTest.java Documents that the expected diagnostic count must remain unchanged for this regression case.

@nixel2007 nixel2007 merged commit 6515d30 into develop May 30, 2026
35 checks passed
@nixel2007 nixel2007 deleted the copilot/fix-query-parser-error branch May 30, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants