Skip to content

The suggested replacement name for a reserved v-for/v-slot alias can clash with an enclosing loop #649

Open

Description

@JuroOravec

When a v-for or v-slot name uses one of Citry's reserved prefixes, the error suggests another name. The suggestion avoids names in the same directive and the fill's Python names, but not names bound by an enclosing v-for or v-slot.

Example: for <b v-for="_ in item"> inside <li v-for="item in items">, it suggests item, which would shadow the outer loop.

The suggestion is only an example, so this is minor. Fixing it means collecting the names bound by ancestor elements.

Left as a follow-up in #628.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    next-sprint
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnext-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions