-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Description
Bug Description
I recently needed to revert to using Spec-Kit on Windows, and I'm getting this error in 100% of the scripts:
.specify/scripts/powershell/setup-plan.ps1 -Json
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\setup-plan.ps1 : No
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\common.ps1:11 character:83
+ ... olve-Path -LiteralPath $StartDir -ErrorAction SilentlyContinue)?.Path
+ ~~~~~~
Unexpected token '?.Path' in expression or statement.
In C:\Users\gabriel.medeiros\AppData\Local\Temp\ps-script-b1efcb57-aefd-4412-b832-c15ec439416f.ps1:87 character:1
+ .specify/scripts/powershell/setup-plan.ps1 -Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [setup-plan.ps1], ParseException
+ FullyQualifiedErrorId : UnexpectedToken,setup-plan.ps1Steps to Reproduce
- Execute any command that performs script execution (specify, plan, etc.)
Expected Behavior
Script execution was successful (no failures).
Actual Behavior
.specify/scripts/powershell/setup-plan.ps1 -Json
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\setup-plan.ps1 : No
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\common.ps1:11 character:83
+ ... olve-Path -LiteralPath $StartDir -ErrorAction SilentlyContinue)?.Path
+ ~~~~~~
Unexpected token '?.Path' in expression or statement.
In C:\Users\gabriel.medeiros\AppData\Local\Temp\ps-script-b1efcb57-aefd-4412-b832-c15ec439416f.ps1:87 character:1
+ .specify/scripts/powershell/setup-plan.ps1 -Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [setup-plan.ps1], ParseException
+ FullyQualifiedErrorId : UnexpectedToken,setup-plan.ps1Specify CLI Version
0.4.1
AI Agent
Cursor
Operating System
Windows 11
Python Version
3.13.9
Error Logs
Specify:
.specify/scripts/powershell/create-new-feature.ps1 "Implemente o EPIC 01 — Interface e Navegação da Intranet Corporativa Multi-tenant com base em docs/BACKLOG.md. O objetivo é entregar a estrutura base da aplicação com layout autenticado, sidebar recolhível, topbar e padrão visual consistente para as telas principais." -Json -ShortName "intranet-interface-navigation"
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\create-new-feature.ps1 : No
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\common.ps1:11 caractere:83
+ ... olve-Path -LiteralPath $StartDir -ErrorAction SilentlyContinue)?.Path
+ ~~~~~~
Token '?.Path' inesperado na express�o ou instru��o.
No C:\Users\gabriel.medeiros\AppData\Local\Temp\ps-script-e5b521ea-dc97-40bd-be26-ae6f3139dbef.ps1:7 caractere:1
+ .specify/scripts/powershell/create-new-feature.ps1 "Implemente o EPIC ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [create-new-feature.ps1], ParseException
+ FullyQualifiedErrorId : UnexpectedToken,create-new-feature.ps1
Clarify:
.specify/scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\check-prerequisites.ps1 : No
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\common.ps1:11 caractere:83
+ ... olve-Path -LiteralPath $StartDir -ErrorAction SilentlyContinue)?.Path
+ ~~~~~~
Token '?.Path' inesperado na express�o ou instru��o.
No C:\Users\gabriel.medeiros\AppData\Local\Temp\ps-script-ab516a16-7540-4d1b-947e-cadfe7148335.ps1:87 caractere:1
+ .specify/scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [check-prerequisites.ps1], ParseException
+ FullyQualifiedErrorId : UnexpectedToken,check-prerequisites.ps1
Plan:
.specify/scripts/powershell/setup-plan.ps1 -Json
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\setup-plan.ps1 : No
C:\Users\gabriel.medeiros\Documents\projects\demo-curso-ia\.specify\scripts\powershell\common.ps1:11 character:83
+ ... olve-Path -LiteralPath $StartDir -ErrorAction SilentlyContinue)?.Path
+ ~~~~~~
Unexpected token '?.Path' in expression or statement.
In C:\Users\gabriel.medeiros\AppData\Local\Temp\ps-script-b1efcb57-aefd-4412-b832-c15ec439416f.ps1:87 character:1
+ .specify/scripts/powershell/setup-plan.ps1 -Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ParserError: (:) [setup-plan.ps1], ParseException
+ FullyQualifiedErrorId : UnexpectedToken,setup-plan.ps1Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.