Skip to content

citry check misses a Vue slot prop in a transparent component and a v-slot name that hides a c-for variable #558

Open

Description

@JuroOravec

Follow-up to #168.

citry check and the editor miss two scoped-slot mistakes in templates.

1. A Vue slot prop inside a transparent component

A component with transparent = True copies its slot content into the template around it, so it has no Vue slot to pass Vue data through. A <c-slot :row="row"> in such a component, or a v-slot fill for it, fails only when the page renders. citry check says nothing.

It should report the : prop (and the v-slot fill that targets that slot) with the same advice as the render error: pass Python slot data instead. <c-provide>, <c-cache> and <c-element> have the same rule, so the check should cover them too if it does not already.

2. A v-slot name that hides a <c-for> variable

<c-for each="row in rows">
  <c-Table>
    <c-fill name="cell" v-slot="{ row }">
      ...
    </c-fill>
  </c-Table>
</c-for>

Inside the fill, row now means the Vue slot prop, while the reader may expect the loop's row. citry check does not report the clash. Find out what the render does with it today, then make citry check report it the same way, with a message that names both and suggests renaming one, such as v-slot="{ row: cell }".

Pointers

  • Render-time refusal for transparent receivers: packages/py/citry/citry/_vue/direct.py (around "A transparent receiver has no Vue definition")
  • The scoped-slot checks added in PR feat(lsp): read scoped slot props in the editor and citry check (#168) #521: packages/py/citry/citry/_slot_props.py, packages/py/citry/citry/_checker.py
  • The render's own name-clash check: _validate_introduced_variables in packages/py/citry/citry/nodes/__init__.py
  • Docs: docs_site/content/vue/slots.md, "Errors when rendering"

Error mode

Today the first mistake surfaces only as a render error, and the second may render without any error. After the fix, citry check and the editor report both with a diagnostic code listed in docs_site/content/ide/diagnostics.md.

Activity

  1. added
    next-sprint
    on Nov 1, 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

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions