-
Notifications
You must be signed in to change notification settings - Fork 12k
Open
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix
Description
Which @angular/* package(s) are the source of the bug?
core, compiler-cli
Is this a regression?
No
Description
When creating a new project and using the space bar to select the AI best practices to generate, such as moving the indicator down to 'Cursor', pressing space, and then pressing enter to confirm, ng new
fails. See below:
ng new web
✔ Which stylesheet format would you like to use? Sass (Indented) [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]
✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? No
✔ Do you want to create a 'zoneless' application without zone.js? No
? Which AI tools do you want to configure with Angular best practices? https://angular.dev/ai/develop-with-ai
◉ None
◯ Claude [ https://docs.anthropic.com/en/docs/claude-code/memory ]
❯◉ Cursor [ https://docs.cursor.com/en/context/rules ]
◯ Gemini [ https://ai.google.dev/gemini-api/docs ]
◯ GitHub Copilot [ https://code.visualstudio.com/docs/copilot/copilot-customization#_custom-instructions ]
◯ JetBrains AI Assistant [ https://www.jetbrains.com/help/junie/customize-guidelines.html ]
◯ Windsurf [ https://docs.windsurf.com/windsurf/cascade/memories#rules ]
Above I highlighted Cursor, pressed Space
to select, then pressed Enter
to confirm.
ng new web
✔ Which stylesheet format would you like to use? Sass (Indented) [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]
✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? No
✔ Do you want to create a 'zoneless' application without zone.js? No
✔ Which AI tools do you want to configure with Angular best practices? https://angular.dev/ai/develop-with-ai None, Cursor [ https://docs.cursor.com/en/context/rules ]
Schematic input does not validate against the Schema: {"tool":["none","cursor"]}
Errors:
Data path "/tool" must NOT have more than 1 items.
The problem appears to be that None
remains selected.
If I had instead moved down to Cursor
and pressed Enter
, then still it wouldn't have selected just Cursor
. It would have accepted None
.
The only option that works is to use the Space
key to unselect None
. Move down to other entires select them with Space
, and then press Enter
.
The expected behavior would be to either:
- Unselected 'None' as soon as I make another selection.
- Even if
None
is selected, remove it from the list internally /IF/ one or more other items are selected too.
Please provide a link to a minimal reproduction of the bug
See above
Please provide the exception or error you saw
See above
Please provide the environment you discovered this bug in (run ng version
)
linux x64
node 24.6.0
npm 11.5.2
Anything else?
No response
forrest-lyman
Metadata
Metadata
Assignees
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix