You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
citry check misses a Vue slot prop in a transparent component and a v-slot name that hides a c-for variable #558
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.
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 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