Tests fail on main branch

Offen Anfängerfreundlich
#227 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@BryanCuneo arbeitet bereits daran.

Seit 29.10.2026.

  • #228 von @BryanCuneo — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
68/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
powershell
Bereich
testing-qa

Rechercherichtung

Beginne mit syntax_test_TheBigTestFile.ps1, das die Fehler in den Zeilen 114 und 117 meldet, und verfolge die erwarteten Scopes für $error und $home in den PowerShell-Grammatiktests. Führe .\build.ps1 -Test aus, um den Fehler zu reproduzieren; fertig ist die Arbeit, wenn beide Variablen den erwarteten Scope support.constant.variable.powershell erhalten und die Testsuite besteht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
PowerShell
Sterne
149
Forks
55
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PowerShell/EditorSyntax

Alle Issues in PowerShell/EditorSyntax

Ähnliche Issues

Weitere Issues zu Testing & QA

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.