Tests fail on main branch

Đang mở Phù hợp với người mới
#227 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@BryanCuneo đang làm issue này rồi.

Từ ngày 29/10/2026.

  • #228 của @BryanCuneo — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell
Lĩnh vực
testing-qa

Hướng nghiên cứu

Bắt đầu với syntax_test_TheBigTestFile.ps1, tệp báo lỗi ở dòng 114 và 117, rồi truy tìm các phạm vi mong đợi cho $error và $home trong các bài kiểm tra ngữ pháp PowerShell. Chạy .\build.ps1 -Test để tái hiện; công việc hoàn tất khi cả hai biến nhận được phạm vi mong đợi support.constant.variable.powershell và bộ kiểm thử chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Steps to reproduce

Using the most current LTS version of NodeJS (26.13.0) and the current main branch, run

.\build.ps1 -Test
Expected behavior
Finished in 6.121 seconds
382 tests, 3673 assertions, 0 failures, 0 skipped
Actual behavior
PowerShell Grammar
  Automated tests
    syntax_test_TheBigTestFile.ps1

        [-] It should parse line 114: $error
          Expected to find support.constant.variable.powershell at 114:3,
          instead found source.powershell, variable.other.constant.powershell

        [-] It should parse line 117: $home
          Expected to find support.constant.variable.powershell at 117:3,
          instead found source.powershell, variable.other.constant.powershell



Finished in 6.121 seconds
382 tests, 3673 assertions, 2 failures, 0 skipped
Error details
Exception             :
    Type                        : System.Management.Automation.RuntimeException
    ErrorRecord                 :
        Exception             :
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : One or more tests failed.
            HResult : -2146233087
        CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
        FullyQualifiedErrorId : RuntimeException
    WasThrownFromThrowStatement : True
    Message                     : One or more tests failed.
    HResult                     : -2146233087
TargetObject          : One or more tests failed.
CategoryInfo          : OperationStopped: (One or more tests failed.:String) [], RuntimeException
FullyQualifiedErrorId : One or more tests failed.
InvocationInfo        :
    ScriptLineNumber : 89
    OffsetInLine     : 13
    HistoryId        : 42
    ScriptName       : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1
    Line             : throw "One or more tests failed."

    Statement        : throw "One or more tests failed."
    PositionMessage  : At C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1:89 char:13
                       +             throw "One or more tests failed."
                       +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PSScriptRoot     : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools
    PSCommandPath    : C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1
    CommandOrigin    : Internal
ScriptStackTrace      : at RunSpecs, C:\Users\bcuneo\source\bryancuneo\EditorSyntax\tools\build-helpers.ps1: line
89
                        at <ScriptBlock>, C:\Users\bcuneo\source\bryancuneo\EditorSyntax\build.ps1: line 69
                        at <ScriptBlock>, <No file>: line 1
Environment data
Name                           Value
----                           -----
PSVersion                      7.6.9
PSEdition                      Core
GitCommitId                    7.6.9
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.4
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
Version

Current main branch at commit 23eed76

Visuals

No response

Ngôn ngữ chính
PowerShell
Star
149
Fork
55
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PowerShell/EditorSyntax

Tất cả issue của PowerShell/EditorSyntax

Issue tương tự

Thêm issue về Testing & QA

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.