Repository navigation
Closed
Description
The error-prevention benchmark (#158, #205) writes the same 24 developer mistakes in Citry and five other frameworks and records how early each framework reports them. This issue collects the mistakes Citry does not catch early, so we can explore and close them over time. Add new gaps here as later benchmark runs find them.
Status as of the 2026-10-20 run (Citry 0.6.0). The m-numbers are the cases in benchmarks/errors/catalogue.toml.
Missed: nothing reports the mistake
- Misspelled HTML element (m11).
<dvi class="board">renders as an unknown inline element. Next.js catches this through TypeScript's JSX element types. - Misspelled HTML attribute name (m10).
titel="Board"renders as an unknown attribute, and the tooltip disappears. Next.js catches this. - Misspelled CSS class (m16).
class="bord"matches no rule and renders unstyled. No framework in the benchmark catches this. - Misspelled field in a request payload (m18). A server event called with
{amont: 1}is rejected withinvalid_args, but only inside the batch response, which the reference page does not display. Payload keys are not checked against the event's input schema before running. Next.js catches this with typed server action arguments.
Warning only
- Invalid HTML attribute value (m9).
<button type="sumbit">is reported only as a warning, socitry checkpasses. Being fixed in fix: catch more template mistakes in citry check #206, which makes it an error by default.
Caught only at runtime
- Misspelled Vue directive (m21).
v-iffis rejected only by Vue, in the browser. A misspelled server-sidec-iffis silent today; fix: catch more template mistakes in citry check #206 adds a check rule for that. - Syntax error in a browser (Vue) expression (m19).
citry checkdoes not run the Vue template compiler, so the error appears as a 500 when the page renders. - Server and browser rendering different content (m14). It shows only as a hydration error in the browser.
Caught only through a workaround
- Template type checks need
template_data()(m03, m08, m23). ty skipped a template's Python expressions when the component did not definetemplate_data(). Tracked incitry check --typesskips template type checks when a component has notemplate_data()#202; fixed in fix: catch more template mistakes in citry check #206.
Near-misses next to cases Citry does catch
These forms of the same mistakes are not measured, but they go unreported today:
- Misspelling an event in the parent's listener (
@hdie="hideCard"). The child's misspelled emit is caught (m24). - Sending a server-only value to the browser through
js_data(). Reading it in Vue code is caught (m12).
Runtime input types
-
Card(title=123)againsttitle: strrenders123with no error. Being fixed in feat: check component input types at render time #208, which checks component input types at render time.
Metadata
Metadata
Assignees
Labels
No labels
Activity
feat(benchmarks): one Missed outcome, N/A in every bar, ticks in fives
JuroOravec commentedon Oct 20, 2026
Another gap, found while reworking #208:
citry checkand the editor skip components whose base class comes from another module.Without importing the app, Citry finds a component only when its class inherits
ComponentorLibraryComponentfromcitry, or another component class in the same file. A shared base imported from elsewhere is not followed:Checking
citry_ui/components/ctabs.pyfinds 5 templates today, and 0 once its classes inherit a base imported fromcitry_ui._base. The code that does this is_ast_component_declarations(packages/py/citry/citry/analysis.py:4246-4313), and the fallback used while a file is being edited,_COMPONENT_CLASS_RE(analysis.py:4315). Any project that puts a shared base class in its own module gets no template checks, with no message saying so. This is also why #208 gives every Citry UI component its ownclass Lint:instead of one shared base.JuroOravec commentedon Oct 20, 2026
More gaps from the second benchmark round (#214), where 13 data-flow mistakes were added. Each mistake below is reported by nothing in Citry, or only once the page runs:
@hdiewhere the child emitshide, m29) and a misspelled browser event (@clik, m31). TypeScript catches both in Next.js.emits: ['hide']declares only the name, so emitting a value of the wrong type is silent.js_data()reaches the page with no warning (m42). No framework in the benchmark reports this either.js_data()is caught only at runtime (m41). The runtime error message is clear, but a static check could report it earlier.JuroOravec commentedon Oct 20, 2026
More gaps from the third benchmark round (#216), which adds a browser-side component and slot data:
opento a child, the existing m14 case (server and browser render different content) moved from runtime error to missed.:open="count"whereopenis aboolgoes unreported. Only literal values are checked.vue/no-mutating-props) and Next.js (react-hooks/immutability) both flag this in the linter.SlotInput[FooterData]; the editor doesn't report it.JuroOravec commentedon Oct 20, 2026
More gaps from the fourth benchmark round (#220), which adds forms, links, assets, a CSS variable and a translation argument:
css_data()sets goes unreported (m43).var(--acent)wherecss_data()setsaccentjust leaves the heading in its default color. Nuxt's Vue tooling catches the matching mistake inv-bind().$error('search'), which the page doesn't show. No framework in the benchmark catches this.typedRouteswould catch the route case in the editor, and Nuxt's build catches the asset case.JuroOravec commentedon Oct 21, 2026
Gaps from part 3 of the benchmark (#224), which adds 13 mistakes taken from what other frameworks' tools check:
Missed entirely:
<img>withoutalt. Django's djLint and Next.js's jsx-a11y report it.:aria-expandd.idused twice on a page.disabled="false". The browser still disables the element, and the invalid-attribute-value rule doesn't cover it.Caught only when the page renders:
#c-key.<div>inside a<p>. It fails as Vue'sInvalidEndTag./projects/alpha. It shows only as a 404.v-modelon a<form>.browser.invalid-state-binding-targetchecks only:c-*bindings, so this shows up as a render failure whose message (MODEL_HELPER_MISMATCH) doesn't point at the form.JuroOravec commentedon Oct 21, 2026
One more gap from the last benchmark round (#228):
inject()with a key no ancestor provides (m50).self.inject("bord"), when the page wraps the cards in<c-provide key="board">, fails only when the page renders, with aKeyError. The error message does suggestboard. A static check would compare literalinject()keys with the<c-provide key>values in the templates that render the component. That is cross-file, so it belongs with the B proposals.build: raise the citry wheel size cap for the #207 checks
feat(check): catch twelve more template mistakes before the app runs (#…
feat(check): catch app-level mistakes before the app runs (#207) (#230)
feat(events): check form fields and event arguments in the editor; sa…
feat(check): typed slot data and prop expressions in the editor; chec…
feat(check): run Vue's compiler over every template in citry check (#207
JuroOravec commentedon Oct 22, 2026
Status
Every proposal in
docs/design/issue_207_proposals.mdis now either merged or in an open PR.Merged:
v-directives, Vue expression syntax, block inside<p>, missingalt, ARIA names, duplicate ids, boolean attribute values,v-modeltargets, DOM and component event names).#c-key, writes to props, server-event payloads, CSS variables,js_data()values), plus theLiteralandevents.mdfixes.Open:
citry.Secret, development-only checks for hydration mismatches and duplicate ids, clearer runtime errors, and the CSS class rules.inject()keys that no ancestor provides (m50).inheritAttrs. Ships with citry-core 1.9.0.citrywheel.Benchmark: Citry built from this repository reports 54 of its 61 applicable mistakes before the app runs, up from 29 for Citry 0.6.0. That's the most of the 12 frameworks (#241). #242 to #244 don't change that count, because the remaining benchmark cases use forms those checks don't cover (see below).
What remains after #242 to #244
These are known limits rather than open proposals:
project_id: int). The link check can't see that type.emitsare typed. Array-formemitsand untyped handlers stay unchecked.citry.Secretare caught. A secret in a plain string can't be detected.citry checkwith the app loaded, but not in the editor:#c-keyrule.--staticdiscovery: following imports to find components whose base class lives in another module (proposal 1, Option 3, deferred).<c-element c-is="tr">inside a table still fails (noted in fix: render component calls inside tables, escape NUL in compiled templates, fix the landing demo (#235) #239);v-for;{ a: b }, passes the check although Vue rejects it;<c-component>inside a loop isn't checked;#c-keyclash message still has the old wording.Proposal: once #242, #243 and #244 merge, close this issue and move the list above into a new follow-up issue.
feat(check): typed emits, citry.Secret, development-only page checks,…
feat(check): warn about an inject() key no component above provides (#…
feat(core): exact Vue syntax errors, parser-marked prop writes, decla…
JuroOravec commentedon Oct 22, 2026
#242, #243 and #244 are merged. The remaining known limits moved to 248 → #248. Closing.