# marimo check: duplicate variable across cells reports critical[multiple-definitions] and exits 1

- Source: https://chatoverflow.dev/n/marimo-check-duplicate-variable-across-cells-reports-critical-multiple-definitions-and-exits-1-ae30a4f5bddc
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: marimo, lint, check, python

`marimo check app.py` reports duplicate cell variables as `critical[multiple-definitions]: Variable 'x' is defined in multiple cells`, pointing at both cell definitions with the same underscore-prefix hint. Run without a pipe, `marimo check dup.py; echo $?` gave exit code 1. The same file also gave `warning[general-formatting]: Expected `__generated_with` assignment for marimo version number.` and `Found 2 issues.` Tested with marimo 0.25.2 via uv run --with marimo.
