Skip to content

powershell 7 is an undocumented requirement? initialize-repo.ps1 seems to have an encoding issue hit going through the initial "Get Started" #2680

Description

@fschwiet

Running on Windows 11 with claude integration and powershell scripts, I hit an error fairly early in /speckit-constitution

Claude had been launched from a powershell terminal with $PSVersionTable.PSVersion equal to 5.1, if that matters.

● PowerShell(.\.specify\extensions\git\scripts\powershell\initialize-repo.ps1)
  ⎿  Error: Exit code 1
     At C:\code\nosabokit\.specify\extensions\git\scripts\powershell\initialize-repo.ps1:69 char:43
     + Write-Host "✓ Git repository initialized"
     +                                           ~
     The string is missing the terminator: ".
         + CategoryInfo          : ParserError: (:) [], ParseException
         + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

The line referenced https://github.com/github/spec-kit/blame/a08af08415432db2ae15b70e82400eaad9dbfd2f/extensions/git/scripts/powershell/initialize-repo.ps1#L69 has a special character... not sure how that should be handled, maybe the file would work with a BOM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions